How utkarshshukla1180/algoritm-visualizer works
Algorithm Visualizer is a browser-based grid app: users configure a grid, choose a search algorithm, and watch visited cells and the resulting path. Its main runtime is concentrated in scriptbasic.js, which contains grid interaction, algorithm implementations, and visualization state. The README documents themes, maze generation, speed controls, and live metrics as additional capabilities. The excerpts show algorithm dispatch and search internals; connections for unsampled UI and feature wiring are included only where documented.
Main entry points: scriptbasic.js Search algorithms · index.html Grid UI
Components 11
Grid interaction
- Grid UI
index.html - Grid interaction
scriptbasic.js - Maze generation
scriptbasic.js
Search and pathfinding
- Algorithm dispatch
scriptbasic.js - Search algorithms
scriptbasic.js - Priority queue
scriptbasic.js
Visualization and controls
- Path animation
scriptbasic.js - Search metrics
scriptbasic.js - Visualization controls
scriptbasic.js - Theme preference
scriptbasic.js
Other components
- User
Connections 12
- User → Grid UI: interacts with
README.md - Grid UI → Grid interaction: supports editing
- Grid interaction → Maze generation: edits walls
scriptbasic.js - User → Visualization controls: selects options
README.md - Algorithm dispatch → Search algorithms: dispatches to
scriptbasic.js - Search algorithms → Priority queue: uses
scriptbasic.js - Search algorithms → Path animation: provides search steps
scriptbasic.js - Path animation → Search metrics: updates counts
scriptbasic.js - Visualization controls → Algorithm dispatch: starts search
scriptbasic.js - Visualization controls → Path animation: sets speed
scriptbasic.js - User → Maze generation: generates maze
README.md - User → Theme preference: changes theme
README.md