Abstract flowing gradient in deep indigo and blue tones, smooth and luminous, evoking a modern digital learning atmosphere

Computer Science and programming articles. We do not sell courses.

Reviews

Horse Racing Betting Australia And The Rise Of Online Slots

Horse racing betting in Australia has a long history, from major events such as the Melbourne Cup to everyday wagering on thoroughbred, harness, and greyhound…

K-Means clustering: a practical guide to initialisation

K-Means clustering turns unlabelled observations into k groups by repeatedly assigning each point to its nearest group centre. That centre, called a centroid,…

Cycle sort for minimal writes

Sorting is routine in programming, yet the cost model is not uniform. Comparing two integers in CPU memory is cheap; moving a value across persistent storage…

Building a van Emde Boas tree for fast predecessor queries

A predecessor query asks which stored integer is closest to, but not greater than, a supplied key. It appears whenever an application must find the last event…

Understanding ridge regression for regularised linear models

Ridge regression is a practical way to fit a linear model when predictors are numerous, correlated or measured at different scales. It keeps the familiar…

Using Python's contextlib for custom context managers

Python's with statement turns resource management into a predictable scope. The object is acquired before the block begins, made available inside it, and…

A tutorial on the Kosaraju algorithm for strongly connected components

A directed graph contains vertices joined by one-way edges. Two vertices belong to the same strongly connected component, or SCC, when each can reach the other…

Count-Min Sketching for approximate frequency estimation

Frequency analysis is simple when every event can be retained in a dictionary. The difficulty appears when identifiers arrive faster than they can be stored,…

Understanding Simulated Annealing For Optimisation Problems

Optimisation problems ask us to find the best answer from a very large set of possibilities. The answer might be a short delivery route, a low-cost timetable,…

How to solve the rod cutting problem with dynamic programming

The rod cutting problem is a classic optimisation exercise: given a rod of a fixed length and a price for every possible piece length, determine how to cut the…