Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Algo Visualizer

Interactive sorting algorithm visualizer built with React and Vite.

Live Demo React Vite

Watch classic sorting algorithms run step by step with animated bars, adjustable speed/size, and live pseudo-code display. Useful for learning how each algorithm moves data.


Supported algorithms

Algorithm Visual behavior
Selection Sort Finds minimum from unsorted region and swaps
Bubble Sort Adjacent comparisons and swaps
Insertion Sort Inserts each element into sorted prefix
Merge Sort Divide-and-conquer with merge steps
Quick Sort Partition around pivot recursively

Features

  • Adjustable array size and animation speed
  • Color themes for active / comparing / sorted bars
  • Algorithm descriptions in the UI
  • Syntax-highlighted pseudo-code panel
  • Responsive React + Bootstrap layout

Tech stack

  • React 18 + Vite
  • React Bootstrap for layout/components
  • react-syntax-highlighter for code display
  • Custom sorting implementations in src/Algorithm/

Quick start

git clone https://github.com/Znaxh/Algo-Visualizer.git
cd Algo-Visualizer
npm install
npm run dev

Open the URL printed by Vite (usually http://localhost:5173).

Production build

npm run build
npm run preview

Project structure

Algo-Visualizer/
├── src/
│   ├── Algorithm/
│   │   └── sortingAlgorithms.js
│   ├── SortingVisualizer/
│   │   ├── SortingVisualizer.jsx
│   │   ├── Pile/              # bar rendering
│   │   └── CodeDisplay/       # pseudo-code panel
│   ├── App.jsx
│   └── Visualizer.jsx
├── public/
└── vite.config.js

Live demo

https://imagine-algo.netlify.app/


Author

Anurag Pratap Singh · GitHub

License

Open source — use with attribution.

About

Interactive sorting algorithm visualizer built with React and Vite

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages