Skip to content

Learning

DSA Visualizer: watch algorithms and data structures work, step by step

Pick merge sort, Dijkstra or a breadth-first search on your own graph, press play, and watch every step with the state highlighted. Pause, scrub backwards, change the input and run it again. Built for students meeting data structures for the first time and candidates who know the code but want the intuition.

  • Step-by-step playback
  • Trees & graphs
  • Free in browser

What it does

Watch algorithms and data structures work, step by step.

Interactive simulations of sorting, trees, graphs and more — built for students, teachers and interview preparation.

  1. 01

    Sorting, step by step

    Watch a sort such as merge sort work with comparisons and moves highlighted, and run two sorts side by side on the same data to compare them.

  2. 02

    Trees and graphs

    Build a graph or tree, then run a breadth-first search or Dijkstra's shortest path and watch the frontier move.

  3. 03

    Playback controls

    Play, pause, step forward, step back and change speed, because each algorithm is instrumented to record a snapshot at every meaningful step.

  4. 04

    Free in the browser

    Nothing to install and no account. Open the page on a laptop, a tablet or a classroom display.

Who it's for

Students learning data structures and algorithms, teachers who want a clear picture on the projector, and interview candidates revising.

Getting started

How to use DSA Visualizer.

  1. 01

    Open dsa-visualizer.laxmi.solutions; nothing to install.

  2. 02

    Choose an algorithm: a sort, a tree operation or a graph search.

  3. 03

    Use the default input or enter your own array, or build your own graph or tree.

  4. 04

    Press play, then pause, step forward or step back to examine a single comparison or move.

  5. 05

    Run two sorts side by side on the same data to compare how many steps each takes.

How it works

Each algorithm is instrumented to record a snapshot of its state at every meaningful step. The renderer replays those snapshots at the speed you choose, which is what makes stepping backwards possible: you see state transitions, not just the final answer.

Good to know

  • Visualisations are designed for inputs small enough to follow by eye; they are for intuition, not benchmarking.

FAQ

About DSA Visualizer.

Something else? Ask us directly.

Is DSA Visualizer free?

Yes. It is free in the browser, with no sign-up.

Which algorithms can I visualise?

Sorting algorithms, tree and graph algorithms including breadth-first search and Dijkstra's shortest path, and more. The list grows with requests from students and teachers.

Can I use my own input?

Yes. Change the array, build your own graph or tree, and replay the algorithm on it.

Learning

More from learning.

Hands-on ways to practise code, visualise algorithms and build early literacy.

All products
Learning

Code Sprout

Learn to code with tutorials you can run and problems judged for real.

  • Runs on ls-judge
  • Runnable tutorials
  • DSA problems in 10 languages
  • English & Hindi
Learning

Omni Compiler

Compile and judge code in 65 languages.

  • Runs on ls-judge
  • 65 languages · 118 runtimes
  • Isolated sandbox per run
  • Up to 100 tests per run
Learning

ScribbleMate

Draw over any screen while you teach or present.

  • Overlay any app
  • Undo / redo
  • Free, no paywall

Try DSA Visualizer now.

Free at the core, no account to create, and your work stays on your device.