C# WinForms application designed to visualize and compare various sorting algorithms. The application provides an interactive interface to observe how different sorting algorithms operate on datasets of varying sizes. It supports the visualization of Bubble Sort, Selection Sort, Insertion Sort, Quick Sort, Heap Sort, Radix Sort, and Shell Sort on datasets of 10, 25, 50, and 100 elements.
- Clone the repository
- Open the project in Visual Studio 2022
- Build and run
- Launch the application.
- Select a sorting algorithm from the dropdown menu (e.g., Bubble Sort, Quick Sort, etc.).
- Choose a dataset size (10, 25, 50, or 100 elements).
- Click "Start Visualization" to begin the sorting process.
- Observe the real-time visualization of the sorting algorithm in action.
- Bubble Sort: A simple comparison-based algorithm that repeatedly swaps adjacent elements if they are in the wrong order.
- Selection Sort: Selects the smallest element from the unsorted portion and swaps it with the first unsorted element.
- Insertion Sort: Builds the final sorted array one element at a time by inserting each element into its correct position.
- Quick Sort: A divide-and-conquer algorithm that partitions the dataset and recursively sorts the sub-arrays.
- Heap Sort: Uses a binary heap data structure to sort elements by repeatedly extracting the maximum element.
- Radix Sort: A non-comparative sorting algorithm that sorts numbers by processing individual digits.
- Shell Sort: An extension of Insertion Sort that allows the exchange of elements that are far apart.