Heapsort
The in-place n log n sort built on the binary heap, introduced by J. W. J. Williams and refined by Floyd in 1964, and its cache behavior.
24 posts about algorithms
The in-place n log n sort built on the binary heap, introduced by J. W. J. Williams and refined by Floyd in 1964, and its cache behavior.
Tony Hoare's 1959 partition-based sort, invented during a machine-translation project in Moscow, its pivot strategies, and its real-world dominance.
The technique that spreads keys across changing sets of servers with minimal reshuffling, from the 1997 MIT paper to its use in Dynamo and CDNs.
The probabilistic primality test from the work of Miller and Rabin in the 1970s, its role in generating cryptographic keys, and its error bounds.
The method for drawing a fair random sample from a stream of unknown length, the elegant algorithm R, and its use in large-scale data systems.
The shortest-path algorithm that handles negative weights, developed around 1958, and its role in distance-vector internet routing.
The 1987 rolling-hash approach to string matching, how it finds multiple patterns efficiently, and its use in plagiarism and duplicate detection.
The dynamic-programming method for all-pairs shortest paths, its 1962 formulation, and its connection to Kleene's work on regular expressions.
The adaptive hybrid sort Tim Peters wrote for Python in 2002, how it exploits existing runs, and the bug formal verification later found in it.
The 1975 multi-pattern matcher built on a trie with failure links, created at Bell Labs, and its role in intrusion detection and virus scanning.
The dynamic-programming measure of string similarity defined by Vladimir Levenshtein in 1965, and its uses in spell check, DNA, and diff tools.
The 1977 string-matching algorithm that never backtracks in the text, how its failure function works, and the story of its three independent inventors.
The entropy coder that encodes a whole message as a single fraction, its development at IBM, the patent thicket it created, and its role in modern codecs.
Computing the smallest enclosing polygon of a point set, from Graham's 1972 scan to Jarvis's march, and its uses in graphics and collision detection.
Robert Floyd's constant-space method for finding loops in sequences and linked lists, how the two-pointer trick works, and where it is applied.
The dictionary-based compression of Lempel and Ziv in 1977 and 1978, the foundation of gzip, PNG, and ZIP, and the patent saga around LZW.
The ancient method for finding prime numbers attributed to Eratosthenes, its efficiency, and the modern segmented and wheel variants.
The 2014 consensus algorithm Ongaro and Ousterhout designed for understandability, its leader-election and log-replication mechanics, and its wide adoption.
The elementary quadratic sorts taught first everywhere, their tangled early naming, and why simple algorithms still matter for small inputs.
How distributed systems order events without synchronized clocks, from Lamport's 1978 paper to vector clocks, and their role in databases like Dynamo.
Finding cycles and clusters in directed graphs, from Tarjan's 1972 single-pass algorithm to Kosaraju's two-pass method, and their applications.
Two greedy methods for minimum spanning trees, their rediscovery history back to Boruvka in 1926, and their uses in network design.
The policies that decide what a cache discards, their implementation with hash maps and linked lists, and the modern adaptive policies that refined them.
The link-analysis algorithm Page and Brin devised at Stanford in the late 1990s, how the random-surfer model ranks the web, and its lasting influence.