Skip to content

This project is a Sorting Algorithm Visualizer that allows users to interactively visualize various sorting algorithms, including Selection Sort, Bubble Sort, Insertion Sort, Merge Sort, Quick Sort, and Heap Sort. The interface includes an adjustable array size and sorting speed for better user experience.

Notifications You must be signed in to change notification settings

arhant7617/sorting-visualizer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sorting Algorithm Visualizer

Description

This is an interactive web-based sorting algorithm visualizer that demonstrates how various sorting algorithms work in real-time. It provides options to adjust the array size and sorting speed while offering an intuitive and responsive UI.

Features

  • Selection Sort
  • Bubble Sort
  • Insertion Sort
  • Merge Sort
  • Quick Sort
  • Heap Sort
  • Adjustable array size
  • Adjustable sorting speed
  • Audio feedback during sorting

Technologies Used

  • HTML for structure
  • CSS for styling
  • JavaScript for functionality and sorting algorithms

Installation & Usage

  1. Download or clone this repository.
  2. Open index.html in a web browser.
  3. Adjust settings such as array size and speed.
  4. Click on any sorting algorithm button to visualize it.

File Structure

  • index.html - The main interface of the visualizer.
  • index.css - Styles for the user interface.
  • script.js - Contains logic for setting up the array and implementing sorting algorithms.
  • beep.js - Generates audio feedback during sorting.

How It Works

  • The array bars are generated randomly at the start.
  • Selecting a sorting algorithm animates the process.
  • Each algorithm has a distinct color scheme to indicate comparisons and swaps.
  • Users can adjust sorting speed for better visualization.

License

This project is open-source and free to use.

About

This project is a Sorting Algorithm Visualizer that allows users to interactively visualize various sorting algorithms, including Selection Sort, Bubble Sort, Insertion Sort, Merge Sort, Quick Sort, and Heap Sort. The interface includes an adjustable array size and sorting speed for better user experience.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 75.2%
  • CSS 13.2%
  • HTML 11.6%