Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Interactive comparison of sorting algorithms

This embedded visualizer loads the hosted algo-visualizers site from GitHub Pages. Use it to compare sorting algorithms, adjust the input array, change speed, and switch between cell and bar views.

Embedded Visualizer

If the embedded view feels cramped, open the sorting visualizer in a new tab. You can also start from the algo-visualizers home page.

Suggested exploration

  1. Generate a random input and compare multiple algorithms side by side.

  2. Switch between cell and bar mode to see how the same operations are rendered differently.

  3. Try already sorted, reverse sorted, and duplicate-heavy inputs and observe how comparisons and swaps change.

  4. Record which algorithms appear efficient for nearly sorted data versus highly unsorted data.