AlgoViz Studio turns sorting algorithms into visible, inspectable steps. Change the input, choose an algorithm, and watch the array transform without installing a framework or sending data anywhere.
Big-O notation explains growth, but it does not always make swaps, comparisons, and intermediate states intuitive. This tiny lab makes those operations concrete for learners and instructors.
- Step-by-step bubble, insertion, and selection sort demonstrations.
- Editable numeric input and reproducible example arrays.
- Animated bars, highlighted comparisons, and operation counts.
- No build step, external dependency, account, or network request.
- Readable implementation designed to be extended with new algorithms.
A single HTML page owns the controls and renderer. Each sorting routine is implemented as a generator that yields array snapshots; the animation loop consumes those snapshots and updates the view.
algoviz-studio/
|-- README.md
|-- index.html
The starter implementation is intentionally small. Extend it in focused steps and keep the documented behavior aligned with the code.
Open index.html directly in a modern browser. For a local server, run python -m http.server 8000 in the project folder and visit http://localhost:8000.
Enter a comma-separated list such as 8, 3, 5, 1, choose Insertion Sort, then press Run. Use Reset to restore the original sequence.
Input: 8, 3, 5, 1. Insertion sort begins with 8, inserts 3 before it, then places 5 between 3 and 8. The bar view exposes each intermediate state.
This repository is an initial, working starter rather than a claim of production readiness. Review the code and test it in your own environment before relying on it in a workflow. Any feature not listed above is not implied to exist.
- Add merge sort and quicksort generators.
- Add a pause/step/continue controller.
- Display a comparison of measured operations across algorithms.
Bug reports, small improvements, documentation fixes, and focused pull requests are welcome. Include reproducible steps for issues and explain the expected behavior. Please avoid committing secrets, private data, or large generated files.
No license file has been selected yet. Until a license is added, do not assume that the code may be redistributed or used outside the permissions granted by GitHub's default terms.