Tools
Algorithm visualizer
Watch linear and binary search, bubble, insertion, merge, and quicksort, and BFS and DFS work one step at a time. For the sorts, try already-sorted or reversed input to see the best and worst cases. Each step shows what was compared or moved, and the counters show where the cost comes from. You can step back as well as forward. The counters measure the work in this one run, not how fast it would be on real hardware.
- Being checked
- Middle of the range
- Still in play
- Ruled out
- Found