Skip to content

Latest commit

Β 

History

History
94 lines (59 loc) Β· 1.82 KB

File metadata and controls

94 lines (59 loc) Β· 1.82 KB

πŸ“Š Sortify - A Sorting Visualizer

This project is a web-based tool to visualize the working of different sorting algorithms. It helps users understand how various sorting algorithms work step-by-step using interactive animations.


πŸš€ Features

  • Visual representation of sorting algorithms

  • Adjustable array size and sorting speed

  • Supports the following algorithms:

    • Bubble Sort
    • Selection Sort
    • Insertion Sort
    • Merge Sort
    • Quick Sort
  • Displays time and space complexity for each algorithm

  • Code snippet display for each algorithm


🧠 Technologies Used

  • HTML
  • CSS
  • JavaScript

πŸ› οΈ How to Run the Project

  1. Clone the repository:

    git clone https://github.com/your-username/sorting-visualizer.git
  2. Navigate to the project directory:

    cd Sorting-Algorithm-Visualizer
  3. Open index.html in your web browser.


πŸ–₯️ Project Structure

/sorting-visualizer
β”‚
β”œβ”€β”€ index.html       # Main HTML page
β”œβ”€β”€ style.css        # Styling for the page
β”œβ”€β”€ script.js        # JavaScript logic for sorting and visualizations

πŸ“ˆ Time and Space Complexities

Example: Bubble Sort

  • Worst-case Time: O(NΒ²)
  • Average-case Time: Θ(NΒ²)
  • Best-case Time: Ξ©(N)
  • Space Complexity: O(1)

(Similar info is displayed for each sorting algorithm in the interface.)


πŸ“Έ Screenshot

My App Screenshot

πŸ“Œ Future Enhancements

  • Add more sorting algorithms (e.g., Radix Sort, Shell Sort)
  • Improve UI/UX with modern design
  • Add mobile responsiveness
  • Add sound effects for each comparison/swap

πŸ™Œ Acknowledgements

This project was inspired by educational visual tools and aims to help students and developers better understand how sorting algorithms function.