Skip to content
Loopfunder
All projects
Being built

Interactive animated algorithm step-through lessons

Short, interactive browser walkthroughs and prediction micro-lessons for classic algorithms, checked against reference solvers.

Ask us to open it

An animated weighted graph showing Dijkstra's shortest-path algorithm updating node distances step by step.
An example: a step-by-step Dijkstra shortest-path animation on a small weighted graph. Ibmua (Wikimedia Commons) · Public domain

Contributors design small, surprising graph and sorting examples—such as a zero-weight transfer where fewest-hops and cheapest-fare paths disagree—and encode every step as a plain JSON trace. A reference algorithm verifies every state transition and tie rule before a teacher selects the clearest examples for an interactive browser player.

How one piece works

  1. Pick a misconception

    Choose an algorithm pair or edge case such as zero-weight edges, negative weights, or tied shortest paths.

  2. Write one JSON trace

    Encode a compact graph, step-by-step snapshots, plausible wrong answers, and a plain CC BY-SA explanation under 48 KB.

  3. Reference solver checks steps

    A program replays the reference algorithm to verify every single step and tie rule; an educator checks clarity.

What you would make

One declarative JSON trace and prediction question under 48 KB covering a small graph, step snapshots, distractors, and a short explanation.

What it becomes

An interactive computer-science lesson site where students predict what an algorithm will do in under a minute, scrub step by step, and embed exercises in classes.

Why it is worth doing

  • Active one-minute prediction puzzles teach algorithms more effectively than passively watching generic animations.
  • Decoupling verified JSON traces from rendering raised visualization reliability from 82.5% to 99.8% in the ALGOGEN study.
  • Open algorithm sites draw large audiences: Algorithm Visualizer has 49,598 GitHub stars and CP-Algorithms has 11,571 stars.
  • Declarative traces render in one shared browser player with zero contributed code running on servers.

How a piece is checked

A program validates JSON bounds, replays reference algorithms to check every single transition, tie branch, and final output, and blocks duplicate graphs. A teacher still checks whether the example illuminates a real misconception.

Before this can open

Reference transition verifiers for six to eight classic algorithms, a shared interactive browser trace player, and an embedded player for educator review.

Read more

Ask us to open it

Tell us why you would like this project to open.