Skip to content

This is an interactive Java application that demonstrate various sorting algorithms through graphical interface. It is built using Java, Swing and AWT, this tool offers a clear, step-by-step visualization of how different sorting methods operate, making it an excellent resource for learning and teaching.

Notifications You must be signed in to change notification settings

KajalMishra-29/Sorting-Algorithm-Visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sorting-Algorithm-Visualizer

This is an interactive Java application that demonstrate various sorting algorithms through graphical interface. It is built using Java, Swing and AWT, this tool offers a clear, step-by-step visualization of how different sorting methods operate, making it an excellent resource for learning and teaching.

You can download the latest version of the Sorting Algorithm Visualizer JAR file from here.

FEATURES

  1. Visualization of multiple sorting algorithms including :
    • Bubble Sort
    • Insertion Sort
    • Selection Sort
    • Counting Sort
    • Merge Sort
    • Quick Sort
    • Radix Sort
  2. Real-time graphical representation of sorting process.
  3. Adjustable sorting speed.
  4. Highlighting of active elements during the sorting process with different colors.

TECHNOLOGIES USED

JAVA : core language used for implementing sorting algorithms ans visualizations.
SWING and AWT : used for creating the GUI

FILE STRUCTURE

-> CONTROLLERS

  • SortingVisualizer.java :- Main class to run the sorting visualizer
  • SortingPanel.java :- panel to visualize sorting process
  • CountingPanel.java :- Panel to show frequency of elements (used in counting sort)
  • SortingAlgorithm.java :- Interface for sorting algorithms

-> ALGORITHMS

  • BubbleSort.java
  • InsertionSort.java
  • SelectionSort.java
  • CountingSort.java
  • MergeSort.java
  • QuickSort.java
  • RadixSort.java

HOW TO RUN

Via command line

  1. clone the project repository to your local machine

    git clone https://github.com/KajalMishra-29/Sorting-Algorithm-Visualizer.git
  2. navigate to project directory

    cd Sorting-Algorithm-Visualizer
  3. compile the code

    javac -d bin src/controllers/*.java src/algorithms/*.java
  4. run the SortingVisualizer class to launch the application

    java -cp bin controllers.SortingVisualizer

Run from an IDE

  1. Import the project into your IDE
  2. Run the SortingVisualizer.java class directly

SCREENSHORTS / VIDEOS

Recording.2025-03-20.151657.mp4

image

image

image

image

About

This is an interactive Java application that demonstrate various sorting algorithms through graphical interface. It is built using Java, Swing and AWT, this tool offers a clear, step-by-step visualization of how different sorting methods operate, making it an excellent resource for learning and teaching.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages