Skip to content

rajanjha9235/Sorting_Visualizer

Repository files navigation

Sorting Visualizer

Sorting Visualizer is a web application that visualizes various sorting algorithms. It helps users understand how different sorting algorithms work by providing a visual representation of the sorting process.

Workflow Status

Build Status

Features

  • Visualize multiple sorting algorithms:
    • Bubble Sort
    • Selection Sort
    • Insertion Sort
    • Merge Sort
    • Quick Sort
  • Adjustable array size and sorting speed
  • Step-by-step visualization of the sorting process
  • Responsive design for different screen sizes

Technologies Used

  • React.js for the frontend
  • Tailwind CSS for styling
  • React Syntax Highlighter for code highlighting
  • React Icons for icons

Installation

  1. Clone the repository:
    git clone https://github.com/yourusername/sorting-visualizer.git
  2. Navigate to the project directory :
    cd sorting-visualizer
  3. Install the dependencies
    npm install
  4. Start the development server :
    npm run dev

Usage

  1. Open your web browser and navigate to http://localhost:5173.
  2. Select a sorting algorithm from the dropdown menu.
  3. Adjust the array size and sorting speed using the sliders.
  4. Click the "Generate New Array" button to create a new array.
  5. Click the "Start Sorting" button to visualize the sorting process.
  6. Watch the sorting algorithm in action!

Screenshots

image image image

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please follow these steps to contribute:

  1. Fork the repository.
  2. Create a new branch :
    git checkout -b feature/branch-name
  3. Make changes and commit them :
    git add .
    git commit -m "your message"
  4. Push to the main branch :
    git push origin feature/branch-name
  5. Create the pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

Contact

  • If you have any questions or feedback, feel free to contact me at Gmail.
  • LinkedIn