Algorithms
30 algorithms — the ideas behind Google Maps, search, GPS, AI, compression and more — each explained in plain language with the key insight.
AI
- Recommenders: you are an arrow, and so is every movie — When Netflix, YouTube or Spotify suggests 'because you watched…'
- k-means clustering: letting data sort itself into groups — A classic way to shrink a photo to 16 or 256 colours (like a GIF), and to group similar songs, shoppers or stars
- Gradient descent: what 'learning' actually means — Every time an AI gets trained: voice assistants, photo search, chatbots, translation
- Neural networks and backpropagation: passing the blame backward — When your phone recognises your face, translates a sign, or a chatbot answers you
Games
- Conway's Game of Life — As a famous screensaver and coding challenge, and as the simplest window into how simple rules build complicated worlds
- Bézier curves: the smooth curves behind every letter — In every font on your screen, in the pen tool of drawing apps, and in the easing of smooth animations
- Game physics engines: faking Newton 60 times a second — Every time a ball bounces, a car crashes or a ragdoll flops in a video game
- Minimax: how a chess computer thinks ahead — When you play chess against an app, or tic-tac-toe against a computer that never loses
- Ray tracing: rendering by running light backward — In Pixar movies, and in video games with 'RTX' reflections and shadows
Maps
- Dijkstra's algorithm: the spreading wave of shortest paths — Inside every route planner, and in the way internet routers pick paths for your data
- A*: aiming the wave, and how real map apps go even faster — When Google Maps picks the fastest route, or a game character walks around walls toward you
- GPS: four clocks, four spheres, and Einstein — Whenever your phone shows the blue dot on a map
- The haversine formula: distance on a ball — When a map app or fitness tracker says how far apart two places are, or why flights from London to Los Angeles often…
Media
- Huffman coding: short codes for common things — Inside most .zip files, PNG images and JPEG photos
- Error-correcting codes: why a torn QR code still scans — When you scan a scratched or partly covered QR code, play a scratched disc, or get photos from a space probe
- Convolution: how photo apps blur and find edges — When your camera app blurs the background, sharpens a photo, or a filter outlines a face
- JPEG: your photos are secretly made of waves — Every photo you take, send or scroll past on the web
- The Fast Fourier Transform: hearing the notes inside a sound — Inside music streaming, phone calls, Wi-Fi, music visualisers and every audio app that shows a spectrum
- Shazam: turning songs into star maps — When you hold up your phone in a noisy café and it names the song in seconds
Search
- Edit distance: how spell-check guesses what you meant — When you type 'recieve' and your device suggests 'receive', or search says 'Did you mean…?'
- Bloom filters: a memory that can say 'definitely not' — In databases that skip pointless disk reads, and in browsers checking a website against a list of dangerous sites
- PageRank: the random surfer who ranked the web — Behind Google Search, which grew out of this idea in 1998
Security
- Hashing: how websites check your password without knowing it — Every time you log in, and every time someone checks whether a downloaded file was tampered with
- RSA: the lock anyone can close but only you can open — In the padlock icon of a website, in software updates proving they're genuine, and in signed messages
Theory
- Binary search: the 20-question superpower — When a database finds your username among millions in a blink, or you play 'guess my number' and always win
- Sorting: merge sort and quicksort — Every time a leaderboard ranks scores, a shop sorts by price, or your files line up A to Z
- Monte Carlo: finding π by throwing random darts — In weather forecasts, game AI, movie lighting and nuclear-physics simulations, which all answer hard questions with…
- A/B testing: how apps decide with statistics — When two friends see a slightly different YouTube thumbnail or app button. You're probably in dozens of experiments…
- The Mandelbrot set: infinity from z² + c — In fractal art and zoom videos, and as a classic way to test how fast a computer or graphics card is
- The traveling salesman: easy to check, brutally hard to solve — When delivery companies plan which parcel van stops where, or a drill plans its path across a circuit board