A GUI which displays the efficiency of different sorting method in Python language using Tkinter
Sorting Algorithm Visualizer This is a Python GUI application for visualizing sorting algorithms using the tkinter and matplotlib libraries. The application allows users to choose from several sorting algorithms, including Bubble Sort, Insertion Sort, Selection Sort, Mergesort, Quicksort, Median of 3 - Quicksort, and Heapsort. The user can input the size of the array to be sorted and click the "Sort" button to see the sorted array and the runtime of the selected algorithm.
Prerequisites To run this application, you need to have Python installed on your system. You also need to have the following Python libraries installed:
tkinter matplotlib
How to Use: Clone the repository or download the source code files.
Open a terminal or command prompt and navigate to the project directory.
Run the gui_sorting.py file using the following command:
Copy code python gui_sorting.py The Sorting Algorithm Visualizer window will open.
Enter the size of the array to be sorted in the entry field.
Select the sorting algorithm from the radio buttons.
Click the "Sort" button to visualize the sorting algorithm.
To clear the results and start again, click the "Refresh" button.