https://github.com/mishqatabid/sorting-algorithm-visualizer
Sorting Algorithm Visualizer that allows users to input an array and observe the sorting process visually
https://github.com/mishqatabid/sorting-algorithm-visualizer
cpp dsa-algorithm python sorting-algorithms sorting-visualization
Last synced: 9 months ago
JSON representation
Sorting Algorithm Visualizer that allows users to input an array and observe the sorting process visually
- Host: GitHub
- URL: https://github.com/mishqatabid/sorting-algorithm-visualizer
- Owner: mishqatabid
- Created: 2024-01-18T14:14:38.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-18T14:35:20.000Z (about 2 years ago)
- Last Synced: 2025-02-17T13:46:49.748Z (12 months ago)
- Topics: cpp, dsa-algorithm, python, sorting-algorithms, sorting-visualization
- Language: C++
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sorting Algorithm Visualizer
This project is a sorting algorithm visualizer that allows users to input an array and observe the sorting process visually. It consists of three main components:
## Files
### 1. Main GUI (main_gui.py)
- This file contains the main graphical user interface (GUI) of the sorting algorithm visualizer written in Python. Users input an array, and the GUI coordinates the interaction with the sorting algorithm implemented in C++ and the visualization component.
### 2. Sorting Algorithms (sorting_algorithms.cpp)
- The core sorting algorithms are implemented in C++ in a separate file. This file receives the input array, sorts it, and records the time taken for the sorting process. The sorted array is then returned to the GUI for display.
### 3. Visualization Module (visualization.py)
- A Python file responsible for visually representing the sorting process. It receives the input array and the steps taken during the sorting from the GUI, and it dynamically updates a bar chart to reflect the changes in the array over time.
## Integration Flow
1. User inputs an array in the GUI.
2. GUI sends the input array to both the C++ sorting algorithms and the visualization module.
3. Sorting algorithms in C++ sort the array and measure the time taken.
4. Sorted array and sorting time are returned to the GUI.
5. The visualization module visually represents the sorting process step by step.