/Sorting-Visualizer

"Sorting Visualizer: Java GUI project showcasing real-time sorting algorithms with an interactive interface. Explore the magic of sorting! 🚀"

Primary LanguageJava

Sorting Visualizer - Java GUI Project

Introduction

Sorting Visualizer is a Java-based project that allows users to visualize various sorting algorithms in action using a Graphical User Interface (GUI). It provides an interactive and educational way to understand how different sorting algorithms work by visually demonstrating their step-by-step sorting process.

Features

  • Graphical User Interface (GUI): The project comes with a user-friendly GUI that enables users to interact with the sorting algorithms visually.

  • Sorting Algorithms: The visualizer supports a variety of sorting algorithms, including but not limited to:

    • Bubble Sort
    • Selection Sort
    • Insertion Sort
    • Merge Sort
    • Quick Sort
    • Heap Sort
  • Real-Time Visualization: Users can observe the sorting algorithms in real-time, as the visualizer animates the sorting process step by step.

  • Adjustable Speed: The visualizer allows users to control the speed of the sorting animation, enabling them to slow down or speed up the visualization as per their preference.

Getting Started

Follow the steps below to get the Sorting Visualizer project up and running:

  1. Clone the Repository: Clone this GitHub repository to your local machine using the following command:

    git clone https://github.com/basicrhovic/Sorting-Visualizer.git
    
  2. Open the Project: Use an Integrated Development Environment (IDE) that supports Java to open the project.

  3. Run the Application: Locate the main Java file and run the application. This will launch the Sorting Visualizer GUI.

How to Use

  1. Upon launching the application, you will be presented with the Sorting Visualizer GUI.

  2. Select a sorting algorithm from the available options (Bubble Sort, Selection Sort, etc.) using the provided dropdown menu.

  3. Adjust the speed of the sorting animation using the speed control feature to suit your preference.

  4. Click on the "Visualize" button to start the sorting process. The visualizer will animate the chosen algorithm, displaying each step of the sorting process.

  5. Observe the elements being sorted and the changes happening in real-time on the graphical display.

  6. Once the sorting is complete, you can try other sorting algorithms or modify the input data to further explore the sorting algorithms.

Contribution

Contributions to this project are welcome and encouraged. If you want to contribute to the Sorting Visualizer, follow these steps:

  1. Fork the repository on GitHub.

  2. Create a new branch with a descriptive name for your feature or bug fix.

  3. Make your changes and improvements to the code.

  4. Test your changes thoroughly.

  5. Create a pull request to merge your changes into the main repository.

Acknowledgments

We would like to thank all the contributors and open-source projects that made this Sorting Visualizer possible. Your dedication and effort are greatly appreciated.

Happy Sorting!

  • Array before sorting. Screenshot 2023-08-05 232945

  • Array while sorting. Screenshot 2023-08-05 233116

  • Sorted Array. Screenshot 2023-08-05 233157