A Python 3 package which renders visualizations of different sorting methods using curses
and concurrent.futures
.
A bubble sort visualization being performed.
Clone the repository:
git clone https://github.com/FFFFFF-base16/SorterLook
Run run.py
with a -t (type)
parameter of your choice: (See Compatibility for Windows)
python run.py -t bubble
The command above will visualize a bubble sort, as seen in the example image above.
A list of all supported file arguments:
Type | Function | Syntax Example |
---|---|---|
bubble |
Perform a bubble sort. | python run.py -t bubble |
insertion |
Perform an insertion sort. | python run.py -t insertion |
merge |
Perform a merge sort. | python run.py -t merge |
SorterLook makes use of the curses
module for Python in order to display screen output. For Linux systems, the program should work without any additional modules being installed, as curses
is included with Python 3.
For Windows systems, the Windows curses
module needs to be installed as curses
is not officially supported by Windows:
pip install windows-curses
- Bubble Sort
- Insertion Sort
- Merge Sort (incomplete but operational)
- Quicksort (planned)
- Selection Sort (planned)