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.
- Real-time visualization of sorting algorithms
- Understand algorithm behavior step by step
- Compare performance of multiple algorithms
- Interactive GUI β intuitive and easy to use
- Java β Primary programming language
- Maven β Build automation and dependency management
- Swing/AWT β For graphical interface
- Any IDE β IntelliJ, Eclipse, or your preferred text editor
Ensure the following are installed:
- Java JDK (version 8 or later)
java -version
- Maven
mvn -version
If not installed, download Java JDK and Maven.
git clone https://github.com/your-username/sorting-visualizer.git
cd sorting-visualizer
Or download the ZIP and extract it.
mvn clean install
mvn exec:java
java -jar target/Sorting-Visualizer-1.0-SNAPSHOT.jar
Ensure the version in the filename matches the version in your pom.xml
.
- Launch the application
- Select a sorting algorithm (e.g., Bubble Sort, Quick Sort)
- Click "Start" to begin visualizing the sorting process
- Watch the elements as they are compared and swapped in real-time
Pull requests are welcome.
To contribute:
# Fork the repo
# Make changes
# Push to your branch
# Open a PR
This project is licensed under the MIT License.
- Bubble Sort
- Selection Sort
- Insertion Sort
- Merge Sort
- Quick Sort