The Runtime Theory
AlgorithmsIn production

Hash Maps and Collision Resolution

Recording in progress
#hash-maps#data-structures#collisions

A hash map turns a key into an array index, and everything after that is collision management. This video follows a lookup through the hash function, the bucket, and the probing sequence, comparing how separate chaining and open addressing behave at the memory level and under adversarial input.

Topics covered:

  • Hashing: turning a key into an array index
  • Collisions and why they are mathematically inevitable
  • Separate chaining: linked lists and their cache misses
  • Open addressing: probing patterns and clustering
  • Load factor: the threshold that triggers a resize
  • Real maps: how Go, Java, and CPython implement theirs

Related articles

More in Algorithms

07:41
algorithms

Hash Tables Under the Hood

Load factors, collision strategies, and cache behavior — why O(1) has a constant that can be 1ns or 200ns.

Watch
In production
algorithms

Tries and String Search

Tries, radix trees, and Aho-Corasick — how prefix structures make lookups proportional to key length, not dataset size.

Details
In production
algorithms

Heaps and Priority Queues

Binary heaps as arrays — sift up, sift down, and why insert and extract-min are both O(log n) with no pointers.

Details
In production
algorithms

Graph Algorithms: BFS and DFS

BFS and DFS traced node by node — the queue versus the stack, the visited set, and what each traversal order is good for.

Details
In production
algorithms

Dynamic Programming, Visualized

Memoization and tabulation as data flow — overlapping subproblems, the DP table, and how state transitions map to code.

Details
In production
algorithms

Binary Search Explained

Binary search at the instruction level — midpoint math, cache behavior, and why it beats linear scan on sorted contiguous data.

Details
In production
algorithms

Recursion and the Call Stack

How recursive functions actually execute — stack frames, the base case, and what happens to memory when recursion goes deep.

Details
In production
algorithms

Big-O Notation, Visually Explained

What O(1), O(n), and O(log n) mean as instruction counts — growth curves drawn to scale, constants, and real workloads.

Details
In production
algorithms

Sorting Algorithms Under the Hood

Quicksort, merge sort, and insertion sort compared by the operations that matter: comparisons, swaps, cache misses, and allocations.

Details

Depth, delivered weekly

One technical dispatch a week — articles and episode notes before they go public.

One technical dispatch per week. No noise.