A browser-based visualizer for sorting algorithms. Generate a random set of rods, pick an algorithm, and watch it sort from shortest (left) to tallest (right).
- Adjustable rod count (
5to500) - Adjustable animation speed
- Multiple algorithms:
- Bubble Sort
- Selection Sort
- Insertion Sort
- Quick Sort
- Merge Sort
- Heap Sort
- Shell Sort
- Comb Sort
- Cocktail Sort
- Mobile-friendly responsive layout
This project is a static site with no build step.
- Open
index.htmldirectly in your browser, or - Serve the folder with a local static server:
python3 -m http.server 8080Then visit http://localhost:8080.
This repo includes a GitHub Actions workflow at .github/workflows/deploy-pages.yml that deploys automatically from the main branch.
- Create a new GitHub repository.
- Push this project to the
mainbranch. - In your repository settings:
- Go to Settings -> Pages
- Under Build and deployment, choose GitHub Actions
After that, every push to main deploys the site.
git init
git add .
git commit -m "Initial commit: Rod Sort Visualizer"
git branch -M main
git remote add origin https://github.com/<your-username>/<your-repo>.git
git push -u origin mainindex.html- app markupstyles.css- app styling and responsive behaviorscript.js- sorting logic and visualization