Visualize an algorithm
Every entry below runs on the same deterministic execution engine: generate all steps up front, then step forwards, backwards and through the code with the exact state each moment produced.
Graphs
6 visualizationsAdjacency List
beginnerStore only the edges that actually exist.
O(V + E)O(V + E) space
Breadth-First Search
intermediateExplore in rings with a FIFO queue — shortest path on unweighted graphs.
O(V + E)O(V) space
Depth-First Search
intermediateDive down one branch, backtrack, repeat — with a stack.
O(V + E)O(V) space
Dijkstra's Algorithm
advancedSettle the closest unsettled node until every distance is final.
O((V + E) log V)O(V) space
Cycle Detection
advancedThree-colour DFS: a back edge to a grey node means a cycle.
O(V + E)O(V) space
Topological Sort
advancedOrder dependencies by repeatedly removing in-degree-0 nodes.
O(V + E)O(V) space
Not sure where to start?
Follow the guided paths — beginner, intermediate and advanced — in order.