Computer Science
Algorithms and data structures, drawn as pictures before they become code. Start with the cost model, then build the structures that make operations cheap: arrays, lists, hash tables, trees, and heaps. Finish with algorithms you can run on screen: sorting, graph search, and dynamic programming.
Start with the sorting playground
One array, four algorithms. Run the same input through bubble, insertion, merge, and quick sort and compare the operation counters instead of guessing from the clock.
Foundations
The vocabulary for talking about cost before the data structure arrives
Data Structures
Arrays, lists, hash tables, trees, and heaps: the shapes that make operations cheap
Arrays, Linked Lists, Stacks & QueuesIndexing vs traversal, dynamic-array growth, LIFO, FIFO, and the cost table
Hash TablesHash functions, collisions, chaining, open addressing, load factor, and expected O(1)
Trees & Binary Search TreesThe BST invariant, search and insert, the four traversals, and the degenerate tree
Heaps & Priority QueuesHeap property, sift-up and sift-down, build-heap, heapsort, and priority queues
Algorithms
Sorting, graph search, dynamic programming, and union-find, with the counters and paths on screen
Sorting: From O(n²) to O(n log n)Comparison sorts, merge sort, quicksort, stability, and the n log n lower bound
Graphs: BFS & DFSAdjacency lists, BFS, DFS, shortest paths in unweighted graphs, and connected components
Dynamic ProgrammingOverlapping subproblems, memoization, tabulation, grid paths, and reconstruction
Union-Find & Disjoint SetsParent pointers, path compression, union by rank, connected components, and Kruskal
Interactive playgrounds
Four solvers you can drive directly. Every comparison, visit, heap step, and table entry is computed, not typed into a table.
How to use this track
Each lesson follows the same rhythm: a picture first, then the definition and the invariant, then a worked example with the numbers checked, then practice. Code appears only when it makes the invariant clearer; the visuals and the counters carry the intuition.
The next natural additions are weighted shortest paths (Dijkstra), topological sort, balanced-tree implementations, and more dynamic-programming patterns. The sorting, graph, heap, and DP playgrounds already share the same trace-and-solver style, so a new algorithm can reuse the same format.

