AtlasLog in
Black FridayHalf off Premium, through Sunday, Nov 29.See plans

Algorithms, taken apart.

Data Structures and Algorithms

7 chapters
No. 018 pages

Analyzing algorithms

Two rows of paper tiles holding the same fifteen sorted numbers: linear search on top has darkened ten of them on its way to 72, while binary search below has reached it in four probes, its low, high and mid pointers beneath
No. 027 pages

Lists, stacks and queues

Paper nodes joined by ink arrows: a linked list with a new red node being spliced in between two others
No. 038 pages

Hash tables

A row of paper buckets with short chains of keys hanging from them, one key in red being hashed into its bucket
No. 048 pages

Trees and heaps

A binary search tree of paper discs joined by ink rods, a red path running from the root down to the key being searched for
No. 059 pages

Sorting

A row of paper tiles mid quicksort, the pivot in red and the elements smaller than it in blue on its left
No. 068 pages

Graph algorithms

A weighted graph of paper discs and ink rods, Dijkstra’s algorithm having settled the blue vertices and lighting the next one in red
No. 078 pages

Algorithm design

A dynamic programming table of paper tiles filling row by row, the cell being computed in red and the cells it reads in blue