❯algorithms

algorithm

see the algorithm, not just the picture.

Step through 5 algorithms line by line: the reference code, the math behind each step, and a timeline you control. Every trace is generated from the implementation you are reading and conformance-checked at build time.

Data structures and hashing

0/6 live

Where values live: slots, trees, heaps and disjoint sets.

planned · hash table

Hashing

Turn a key into a slot index with a hash function.

planned · hash table

Hash Table Lookup

Resolve collisions and find the slot that holds the key.

planned · tree

Binary Search Tree Operations

Insert, search and delete while keeping the search-tree invariant.

planned · tree

Heap and Priority Queue Operations

Sift up and sift down to keep the heap property.

planned · tree

Union-Find (Disjoint Set Union)

Track components with parent links and path compression.

planned · tree

Trie Operations

Walk a prefix tree to store and find words.

Graph algorithms

0/10 live

Traversal, shortest paths, spanning trees and flow on nodes and edges.

planned · graph

Breadth-First Search

Explore a graph in rings, one frontier at a time.

planned · graph

Depth-First Search

Follow one path to its end, then backtrack.

planned · graph

Dijkstra's Shortest Path

Grow the shortest-path tree outward from the source.

planned · graph

Bellman-Ford

Relax every edge n−1 times and catch negative cycles.

planned · table

Floyd-Warshall

Fill a distance matrix one intermediate vertex at a time.

planned · graph

A* Search

Dijkstra guided by a heuristic that points at the goal.

planned · graph

Topological Sorting

Order a DAG so every edge points forward.

planned · graph

Kruskal's Minimum Spanning Tree

Add the cheapest edge that does not close a cycle.

planned · graph

Prim's Minimum Spanning Tree

Grow a minimum spanning tree from a single vertex.

planned · graph

Ford-Fulkerson

Push flow along augmenting paths until none remain.

Problem-solving techniques

0/10 live

The patterns behind the algorithms: recursion, tables, pruning and windows.

planned · tree

Recursion

Solve a problem with smaller copies of itself.

planned · tree

Divide and Conquer

Split, solve each part, then combine the answers.

planned · stacked rows

Greedy Algorithms

Take the best local choice and prove it is safe.

planned · table

Dynamic Programming

Cache overlapping subproblems in a table.

planned · table

Backtracking

Build candidates and undo the ones that fail.

planned · tree

Branch and Bound

Prune any branch that cannot beat the current bound.

planned · text

Sliding Window

Slide a range and update its statistics in O(1).

planned · bars & tiles

Two Pointers

Walk two indices toward each other or together.

planned · bars & tiles

Binary Search on the Answer

Binary search a monotone predicate over the answer space.

planned · bars & tiles

Prefix Sums

Precompute cumulative sums for O(1) range queries.

String and text processing

0/6 live

Matching, comparing and editing text without rescanning what you already know.

planned · text

Knuth-Morris-Pratt (KMP)

Match a pattern with a failure table that skips rechecks.

planned · text

Rabin-Karp

Compare rolling hashes, then verify the match.

planned · text

Boyer-Moore String Search

Skip ahead using the bad-character rule.

planned · table

Regular Expression Matching

Decide a match with recursive states or a DP table.

planned · table

Edit Distance

Turn one string into another at minimum cost.

planned · table

Longest Common Subsequence

Find the longest subsequence two strings share.

Mathematical and numerical algorithms

0/5 live

Number theory, primes and the transforms behind fast computation.

planned · numbers

Euclidean Algorithm (GCD)

Repeated remainders collapse to the greatest common divisor.

planned · table

Sieve of Eratosthenes

Cross out multiples to leave the primes standing.

planned · numbers

Fast Exponentiation

Square the base and halve the exponent.

planned · plot

Fast Fourier Transform

Turn a signal into frequencies by divide and conquer.

planned · table

Matrix Multiplication

Combine rows and columns, and divide blocks to go faster.

AI, machine learning and optimization

0/5 live

Learning and search: gradients, trees, clusters and populations.

planned · plot

Gradient Descent

Follow the negative gradient downhill.

planned · graph

Backpropagation

Send the error backwards to update every weight.

planned · scatter

K-Means Clustering

Assign points to the nearest centroid, then move the centroids.

planned · tree

Decision Tree Learning

Split on the question that lowers impurity the most.

planned · scatter

Genetic Algorithm

Evolve a population with selection, crossover and mutation.

pace under your control

Granular stepping, a scrubbable timeline, and a projector mode. Pace control is the highest-value interaction feature in the algorithm-visualization research.

math on every step

The invariant, the comparison count, the halving argument — cross-highlighted against the exact operation running in the code.

verified traces

Traces are produced at build time by the instrumented Python source shown in the editor, then conformance-checked in CI.