https://github.com/razvan48/sorting-algorithms-visualizer
A simple visualizer for sorting algorithms.
https://github.com/razvan48/sorting-algorithms-visualizer
sorting-algorithms sortings visualizer
Last synced: 9 months ago
JSON representation
A simple visualizer for sorting algorithms.
- Host: GitHub
- URL: https://github.com/razvan48/sorting-algorithms-visualizer
- Owner: Razvan48
- Created: 2023-06-30T19:44:47.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-30T20:30:15.000Z (over 2 years ago)
- Last Synced: 2025-01-22T18:50:56.803Z (11 months ago)
- Topics: sorting-algorithms, sortings, visualizer
- Language: C
- Homepage:
- Size: 14.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sorting-Algorithms-Visualizer
This is a simple visualizer for sorting algorithms.
Right now it is able to simulate Bubble Sort, Quick Sort and Heap Sort.
Every two columns that are swapped at a certain frame are coloured in green, the rest of the columns are coloured from lighter blue to darker blue,
depending on the value they represent.
Once the whole array has been sorted, the program colours all the columns in green, starting from the smallest column (left) to the biggest one (right).
1. Bubble Sort, complexity O(n2)
2. Quick Sort, complexity of average case O(nlog2n)
3. Heap Sort, complexity O(nlog2n)
**Controls:**
- Esc for closing the application