This is a JavaFX application that demonstrates the Selection Sort algorithm visually. The application allows you to see the step-by-step sorting process of an array of random numbers.
To run the application, you need to have Java and JavaFX installed on your system. Follow the steps below to get started:
-
Clone this repository to your local machine: git clone https://github.com/Lelokarma/Selection_Sort-Visualization.git
-
Make sure you have Java and JavaFX installed on your system. If not, you can download and install them from the following links:
- Java Development Kit (JDK): https://www.oracle.com/java/technologies/javase-jdk11-downloads.html
- JavaFX: https://openjfx.io/
-
Open the project in your preferred Java IDE (e.g., Eclipse, IntelliJ IDEA).
-
Build and run the
SelectionSortclass, which contains themainmethod.
Once you run the application, you will see a window with a "Start" button and a "Close" button. Follow these steps to use the application:
- Click the "Start" button to start the sorting process.
- The application will generate a random array of numbers and display them on the screen.
- The sorting process will begin, and you will see the visualization of the algorithm step by step.
- Once the sorting is complete, an alert will be displayed, indicating that the sorting process is finished.
- You can click the "Close" button to exit the application.
Contributions are welcome! If you have any ideas, suggestions, or improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License.
This application was created as an educational tool to visualize the Selection Sort algorithm. It is inspired by various online resources and tutorials.