This project is a visual representation of various sorting algorithms. It helps in understanding how different sorting algorithms work by visualizing the process step-by-step.
- Visualize popular sorting algorithms:
- Bubble Sort
- Selection Sort
- Insertion Sort
- Merge Sort
- Quick Sort
- Adjustable speed for visualization
- Customizable array size
- Step-by-step execution
Check out the live demo of the Sorting Visualizer SortDynamic.
- Node.js
- npm or yarn
- Clone the repository:
git clone https://github.com/Nitrospace2520/sorting-visualizer.git
- Navigate to the project directory:
cd sorting-visualizer - Install dependencies:
or
npm install
yarn install
To start the development server, run:
npm run devor
yarn run devOpen your browser and go to http://localhost:5173 to see the sorting visualizer in action.
- Select a sorting algorithm from the dropdown menu.
- Adjust the array size and speed using the sliders.
- Click the "Generate New Array" button to create a new array.
- Click the "Buble Sort" button to visualize the bubble sorting process.
- Click the "Selection Sort" button to visualize the selection sorting process.
- Click the "Insertion Sort" button to visualize the insertion sorting process.