Algorithm and Data-Structure Visualizer
Step-by-step animation of sorting, searching, tree, heap, hash table, graph and dynamic-programming algorithms on the small data set you type, with counts and the final result.
- Free
- No sign-up
- Works on any device
About Algorithm and Data-Structure Visualizer
Pick a topic, an algorithm and your own values, then move through the run one step at a time with Next and Previous, or press Play. Sorting covers bubble, selection, insertion, merge and quick sort; searching covers linear and binary search; trees build a binary search tree and walk it in four orders; heaps show min-heap and max-heap insertion and heap sort; hash tables show chaining and linear probing; graphs run breadth-first, depth-first and Dijkstra; dynamic programming fills the tables for longest common subsequence, edit distance and knapsack. Each step is explained and counts are summarised.
How to use Algorithm and Data-Structure Visualizer
- Choose a topic and an algorithm, then type your own values, edges or strings.
- Use Next step, Previous step or Play to move through the run, or type a step number.
- Read the explanation under the picture and the final result and counts above it.
Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.
Also known as
Frequently asked questions
Why are the inputs limited in size?
Animations need a step for every comparison, so the page caps the input, for example 40 values to sort and 15 for trees, to keep every step readable and the page fast.
Which quicksort pivot is used?
The last element of each range, with the Lomuto partition scheme. This is simple to follow but slow on already sorted input, which you can see by sorting an ordered list.
How does the hash table choose a slot?
Whole numbers use the number modulo the table size. Words use the sum of their character codes modulo the size, which is easy to follow but not a production hash function.
Is Algorithm and Data-Structure Visualizer free?
Yes. Algorithm and Data-Structure Visualizer on Toolipedia is free to use, with no sign-up and no watermark.
Is it safe to use?
Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.
Does it work on my phone?
Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.
Do I need an account?
No. Just open the page and use the tool. There's no sign-up and no email needed.