Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

348 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿง  Sorting Visualizer

A sleek and minimal web-based sorting algorithm visualizer built with HTML, CSS, and JavaScript. This project helps users understand how sorting algorithms work step-by-step through intuitive animations.

โœจ Features

  • ๐Ÿ”„ Visualize popular sorting algorithms in real time
  • ๐Ÿ“Š Bar chart representation of the array
  • ๐ŸŸ  Orange: Comparison highlight
  • ๐Ÿ’— Pink: Swap highlight
  • ๐ŸŽ› Choose from multiple sorting algorithms
  • ๐Ÿ•น Easy-to-use controls for reset and sorting
  • ๐Ÿ’ก Clean and responsive UI (dark theme)

๐Ÿ“ฆ Built With

  • HTML5 โ€“ Structure of the page
  • CSS3 โ€“ Styling and animations
  • JavaScript (ES6) โ€“ Logic and dynamic interactions

๐Ÿš€ Live Demo

๐ŸŒ Add your live demo URL here (e.g., GitHub Pages)


๐Ÿ“ Folder Structure

๐Ÿ“ฆ sorting-visualizer/ โ”ฃ ๐Ÿ“œ index.html โ”ฃ ๐Ÿ“œ style.css โ”ฃ ๐Ÿ“œ script.js โ”ฃ ๐Ÿ“œ README.md โ”— ๐Ÿ“ธ screenshot.png (optional)


๐Ÿงฎ Supported Algorithms

  • โœ… Bubble Sort
  • โœ… Insertion Sort
  • โœ… Selection Sort
  • โœ… Merge Sort
  • โœ… Quick Sort

๐Ÿ•น How to Use

1. Clone the repository:

    ```bash
    git clone https://github.com/your-username/sorting-visualizer.git
    cd sorting-visualizer
    ```

2. Open index.html in your browser.

3. Choose an algorithm from the dropdown.

4. Click Sort to see the animation.

5. Use Reset to generate a new unsorted array.

๐Ÿง  Learning Goals

  • Visualize how classic sorting algorithms operate

  • Learn DOM manipulation using JavaScript

  • Understand animation timing and UI feedback

  • Practice clean code separation between logic and UI

๐Ÿ’ก Future Enhancements

  • ๐Ÿ•’ Display runtime and comparison counters

  • ๐Ÿ›  Adjustable array size and speed

  • ๐Ÿ“ฑ Mobile responsiveness

  • ๐Ÿ“š Add more algorithms (e.g., Heap Sort, Radix Sort)

  • ๐ŸŽจ Theme switcher (light/dark)

About

A simple Algorithm Visualizer made with Python

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages