Skip to content

This Java program visualizes sorting algorithms like Bubble Sort , Selection Sort , Heap Sort , Insertion Sort , Quick Sort , Merge Sort . It allows customization of array size and animation speed. The interface is built using Java Swing with smooth multithreaded animation.

Notifications You must be signed in to change notification settings

DPRAHUL-2021/Sorting-Algorithm-Visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sorting Algorithm Visualizer

This Sorting Algorithm Visualizer is a Java application that provides a graphical representation of various sorting algorithms. With this tool, you can observe the step-by-step sorting process of algorithms like Bubble Sort, Selection Sort, Heap Sort, Insertion Sort, Merge Sort, and Quick Sort.

Features

  • Visualization of sorting algorithms: Bubble Sort, Selection Sort, Heap Sort, Insertion Sort, Merge Sort, Quick Sort.
  • Customization options: Adjust array size, elements, bar width, and animation speed.
  • Interactive interface built with Java Swing.
  • Real-time tracking and display of comparison counts during sorting.
  • Smooth animation powered by multithreading.

Usage

  1. Clone the repository to your local machine.
  2. Compile and run the SortingVisualizer.java file.
  3. Input your desired array size, elements, and animation settings.
  4. Choose a sorting algorithm from the dropdown menu.
  5. Click "Start" to begin visualization.
  6. Enjoy watching the sorting process step by step!

Example

Output Window

Sorting Algorithm Visualizer

Select The Sorting Technique

Sorting Algorithm Visualizer

In Between The Sorting Process

Sorting Algorithm Visualizer

After The Sorting Is Completed

Sorting Algorithm Visualizer

Contributors

About

This Java program visualizes sorting algorithms like Bubble Sort , Selection Sort , Heap Sort , Insertion Sort , Quick Sort , Merge Sort . It allows customization of array size and animation speed. The interface is built using Java Swing with smooth multithreaded animation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages