This program implements several sorting algorithms and visualizes their execution using Matplotlib. The user can select a sorting algorithm and see a step-by-step visualization of how the algorithm sorts the input list.
- Radix Sort
- Bubble Sort
- Quick Sort
- Merge Sort
- Shell Sort
- Selection Sort
- Insertion Sort
- Binary Insertion Sort
- Heap Sort
- Run the program.
- Choose a sorting algorithm by entering the corresponding number.
- View the visualization of the sorting process.
- After the sorting is complete, the program will ask if you want to visualize another sorting algorithm.
- Python 3.x
- Matplotlib
BubbleSort
: Implements the Bubble Sort algorithm and visualizes the sorting process.InsertionSort
: Implements the Insertion Sort algorithm and visualizes the sorting process.SelectionSort
: Implements the Selection Sort algorithm and visualizes the sorting process.ShellSort
: Implements the Shell Sort algorithm and visualizes the sorting process.MergeSort
: Implements the Merge Sort algorithm and visualizes the sorting process.QuickSort
: Implements the Quick Sort algorithm and visualizes the sorting process.RadixSort
: Implements the Radix Sort algorithm and visualizes the sorting process.BinaryInsertSort
: Implements the Binary Insertion Sort algorithm and visualizes the sorting process.HeapSort
: Implements the Heap Sort algorithm and visualizes the sorting process.
The program uses Matplotlib to visualize the sorting process. Each bar represents an element in the list, and the height of the bar represents the value of the element. The bars move and change color as the sorting algorithm progresses, providing a visual representation of the sorting process.
This program is licensed under the MIT License.