AlgoFlow
39 visualizations · deterministic step engine

Learn algorithms by watching them run

AlgoFlow turns every data structure and algorithm into a step-by-step animation with explanations, variable inspection and matching Java, C++ and Python code. Scrub forward, step back, and see exactly why each line does what it does.

No sign-up Runs entirely in the browser Reduced-motion friendly
bubble sort · step 7 of 42i = 2 · j = 3
42
0
i
15
1
j
78
2
swap
23
3
61
4
9
5
34
6
…
7

Compare 15 and 78. 15 is smaller, so the pair is already in order — no swap needed, the pointers advance.

current comparing swapping finalised

How the visualizer works

Nothing is faked during playback. The algorithm executes once, records every meaningful moment, and the player simply reads those snapshots back.

1

Describe the input

Type an array, an edge list, a tree or a stack of values — or hit Randomize and let the engine pick one.

2

Generate every step

The run produces a deterministic list of snapshots before you press play, complete with explanations and variable states.

3

Scrub and inspect

Move forwards, backwards or jump to the end. The canvas, pseudocode, code and variables all stay in sync.

Good places to start

Six entries that show off what the engine can do.

Built to explain, not just animate

Most visualizers show motion. AlgoFlow ties that motion to the exact source line, the variables behind it, and a plain-English explanation of why the algorithm made that choice.

Try Two Pointers

A real execution engine

Every algorithm runs against a recorder that captures data, highlights, variables and the source line. Steps are computed once, so stepping backwards is an exact index move — never an approximation.

Pseudocode plus real code

Each step maps to a pseudocode line and to the corresponding line in Java, C++ or Python, so the animation and the implementation always agree.

Variables in view

i, j, low, mid, distances, DP cells — the values that matter are shown beside the structure, updating on every step.

Keyboard first

Arrow keys step, space plays, ⌘K searches. Playback speed runs from 0.5× to 2× so you can slow a tricky rotation down or skim a long sort.

Open the visualizer and run your first algorithm

Start with Bubble Sort if you are new, or jump straight to Dijkstra if you want the weighted shortest-path walkthrough.