Skip to content

ahmad-masud/Sorting-Visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

54 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Sorting Visualizer

Overview

Sorting Visualizer is a Java-based GUI application that visually demonstrates how various sorting algorithms work. It provides an interactive way to learn, observe, and compare different sorting strategies in real-time.


Features

  • Real-time visualization of sorting algorithms
  • Understand algorithm behavior step by step
  • Compare performance of multiple algorithms
  • Interactive GUI – intuitive and easy to use

Tech Stack

  • Java – Primary programming language
  • Maven – Build automation and dependency management
  • Swing/AWT – For graphical interface
  • Any IDE – IntelliJ, Eclipse, or your preferred text editor

Setup Instructions

1. Prerequisites

Ensure the following are installed:

  • Java JDK (version 8 or later)
    java -version
  • Maven
    mvn -version

If not installed, download Java JDK and Maven.


2. Clone the Repository

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

Or download the ZIP and extract it.


3. Build the Project with Maven

mvn clean install

4. Run the Application

Option A: Using Maven directly

mvn exec:java

Option B: Run the JAR manually

java -jar target/Sorting-Visualizer-1.0-SNAPSHOT.jar

Ensure the version in the filename matches the version in your pom.xml.


Usage

  1. Launch the application
  2. Select a sorting algorithm (e.g., Bubble Sort, Quick Sort)
  3. Click "Start" to begin visualizing the sorting process
  4. Watch the elements as they are compared and swapped in real-time

Contributing

Pull requests are welcome.
To contribute:

# Fork the repo
# Make changes
# Push to your branch
# Open a PR

License

This project is licensed under the MIT License.


Implemented Algorithms

  • Bubble Sort
  • Selection Sort
  • Insertion Sort
  • Merge Sort
  • Quick Sort

Demo Visuals

Bubble Sort

BubbleSort

Selection Sort

SelectionSort

Insertion Sort

InsertionSort

Merge Sort

MergeSort

Quick Sort

QuickSort

Releases

No releases published

Packages

No packages published

Languages