How lucaspilla/sorting-algorithms-visualizer works
This is a Pygame sorting visualizer. The principal workflow is to choose an algorithm and array settings, start the animation, and watch sorting steps represented by moving bars. The graph shows the documented user workflow and the sampled entry-point and registry relationships. Most algorithm implementations are grouped because their files are listed in the source index but were not excerpted; their individual internal calls are not inferred.
Main entry points: algs.py Algorithm registry · main.py Visualizer entry point · display.py Algorithm and settings controls · timSort.py Timsort
Components 16
User interface
- Algorithm and settings controls
src/display.py - Input widgets
src/display.py - Window rendering
src/display.py
Visualization runtime
- Visualizer entry point
src/main.py - Algorithm registry
src/algs.py - Animation steps
src/main.py
Sorting algorithms
- General sorting algorithms
src/algorithms - Divide-and-merge sorts
src/algorithms/mergeSort.py - Heap sort
src/algorithms/heapSort.py - Radix sort
src/algorithms/radixSort.py - Shell sort
src/algorithms/shellSort.py - Strand sort
src/algorithms/strandSort.py - Tree sort
src/algorithms/treeSort.py - Timsort
src/algorithms/timSort.py - Binary insertion helper
src/algorithms/binaryInsertionSort.py
Other components
- User
Connections 15
- User → Algorithm and settings controls: sets options
README.md - Algorithm and settings controls → Input widgets: uses controls
src/display.py - User → Visualizer entry point: starts app
README.md - Visualizer entry point → Window rendering: uses display
src/main.py - Visualizer entry point → Algorithm registry: imports registry
src/main.py - Visualizer entry point → Animation steps: drives animation
README.md - Algorithm registry → General sorting algorithms: dispatches sorts
src/algs.py - Algorithm registry → Divide-and-merge sorts: dispatches sorts
src/algs.py - Algorithm registry → Heap sort: dispatches sort
src/algs.py - Algorithm registry → Radix sort: dispatches sort
src/algs.py - Algorithm registry → Shell sort: dispatches sort
src/algs.py - Algorithm registry → Strand sort: dispatches sort
src/algs.py - Algorithm registry → Tree sort: dispatches sort
src/algs.py - Algorithm registry → Timsort: dispatches sort
src/algs.py - Timsort → Binary insertion helper: calls search
src/algorithms/timSort.py