Library

Every concept, one click from interactive.

16 topics · 112 concepts. Filter by tag or type to narrow down. Real prototypes are landing topic-by-topic.

filter

16 topics

sort: curated

01

Sorting

Order a list — ten ways. From the textbook swap-adjacent sorts you write in a single loop, to the divide-and-conquer giants, to the non-comparison tricks that beat O(n log n), to the hybrid your language's sort() actually uses.

Intermediate10 concepts · 75 min
algorithmsarraysfundamentals
02

Trees

The branching data structure under databases, filesystems, autocompletes, and priority queues. Nine trees, from the plain binary search tree through the self-balancing workhorses to the disk-friendly B-trees and the range-query structures competitive programmers swear by.

Intermediate9 concepts · 95 min
data-structuressearchfundamentals
03

Graph Theory

Before the algorithms, the shapes. Eight kinds of graph — directed and undirected, weighted and not, complete, bipartite, cyclic, and the all-important DAG — and how each property decides what you're allowed to do with the graph.

Beginner8 concepts · 70 min
graphsfundamentalsdata-structures
04

Graph Algorithms

How computers reason about networks of things — roads, friends, packets, dependencies. Ten algorithms, from the two traversals every other algorithm is built on, to weighted shortest paths, minimum spanning trees, and the heuristic search behind every modern pathfinder.

Intermediate10 concepts · 100 min
algorithmsgraphsfundamentals
05

Bloom & Cuckoo Filters

Three probabilistic set-membership structures that answer 'have I seen this before?' in a few bytes per item. From the classic bit-array Bloom filter to the counting variant that can delete, to the cuckoo filter that does it all with a smaller memory footprint.

Intermediate3 concepts · 35 min
data-structuresmemoryprobabilistic
06

Memory Allocation

Before garbage collection ever runs, something has to hand out the memory. Six allocators — four ways to pick a hole, plus the two structured schemes real kernels actually ship.

Intermediate6 concepts · 70 min
memoryruntimeperformance
07

Garbage Collection

How a runtime reclaims memory you stopped using — without you ever calling free(). Eight algorithms, from the counter on every object to the collectors that run alongside your program.

Advanced8 concepts · 90 min
memoryruntimeperformance
08

Page Replacement

When memory is full and a new page must come in, which page do you throw out? Eight algorithms, from the simple FIFO baseline through the unbeatable Optimal to the LRU approximations real operating systems actually ship.

Intermediate8 concepts · 70 min
osmemorycaching
09

Cache Write Policies

Three ways to handle a write when you have a cache in front of the store. Each policy is a different bet about durability, throughput, and how stale your data is allowed to get.

Intermediate3 concepts · 25 min
performancememorypatterns
10

Cache Eviction

When the cache fills up, something has to go — and which one you pick decides your hit rate. Ten classic policies, side-by-side.

Intermediate10 concepts · 85 min
performancememorypatterns
11

Rate Limiting

Control request throughput so a noisy client cannot starve everyone else. Compare the five canonical algorithms side-by-side.

Intermediate5 concepts · 45 min
distributedapithroughput
12

Load Balancing

Run more than one server and something has to decide which one handles each request. Nine algorithms, from a blind counter to capacity-and-load-aware routing — built up one signal at a time.

Intermediate9 concepts · 75 min
distributedscalingthroughput
13

Consistent Hashing

Map keys to servers so that adding or removing a server moves as few keys as possible. Five methods, from the classic hash ring to the table-based hashing inside modern network load balancers.

Intermediate5 concepts · 55 min
distributedscalingpatterns
14

Circuit Breaker

When a downstream service is failing, stop hammering it — fail fast instead. Six variants, from the state machine itself to the trip-condition tweaks that production resilience libraries actually ship.

Intermediate6 concepts · 70 min
distributedresiliencepatterns
15

Consensus

How a cluster agrees on a single answer when nodes die, packets drop, and some machines may even lie. Seven algorithms, from the two-phase commit that everyone learns first to the Byzantine-fault-tolerant PBFT.

Advanced7 concepts · 90 min
distributedconsistencypatterns
16

Leader Election

How a cluster picks one node to be in charge — and how it picks again when that node falls over. Five algorithms, from the textbook ID-based shouting matches to the lease-and-watcher schemes real coordination services ship.

Intermediate5 concepts · 60 min
distributedcoordinationpatterns