How 23abhishek2024/algosort_visualizer works
Project type and purpose
• This is a static, single-page, front-end web application whose sole purpose is to let users generate an array and watch various sorting algorithms (bubble, selection, insertion, merge, quick) run on it—animated in real time.
• Implemented entirely in HTML, CSS/SCSS, and plain JavaScript; there is no backend or database.
File structure
• Top level
– index.html: the only HTML entry point
– style.scss: source for styles, compiled down to css/style.css + css/style.css.map
– css/: holds the compiled CSS
– scripts/: holds all JavaScript code
• scripts/ directory breakdown
– main.js: The central controller (wires up UI events, triggers sorts)
– visualizations.js: The view-renderer (takes algorithm steps and animates DOM bars)
– bubble_sort.js, selection_sort.js, insertion_sort.js, merge_sort.js, quick_sort.js: Pure algorithm implementations that expose step-by-step interfaces
README for additional insights
• Confirms it’s a front-end visualizer
• Mentions key features: array generation, shuffle, dropdown for algorithm choice, smooth animated bars
• No mention of any server-side or external dependencies
– UI → Controller → Algorithm Module → Visualization → UI