A package to visualize various sorting algorithms.
Project description
Sorting Visualizer
A simple python project which visualizes various sorting algorithms.
How to setup
Simply open up your terminal and type
pip3 install sorting-visualizer
Algorithms Implemented
- Bubble Sort (bubblesort)
- Selection Sort (selectionsort)
- Insertion Sort (insertionsort)
- Merge Sort (mergesort)
- Quick Sort
- Heap Sort
Prerequisite
How to use
-
Show the plot
from sorting_visualizer import visualizer visualizer.visualize('bubblesort')
-
Show and save the plot
from sorting_visualizer import visualizer visualizer.visualize('bubblesort', save=True)
-
Only save the plot and not show it
from sorting_visualizer import visualizer visualizer.visualize('bubblesort', save=True, show=False)
-
Saving in a particular location
from sorting_visualizer import visualizer visualizer.visualize('bubblesort', save=True, path='path/to/directory')
The default saving location is your current working directory.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sorting_visualizer-1.0.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for sorting_visualizer-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0994f49acf2eb26d1c5f9c0f8df6ada49bbfdd1db6a453391b2385151c49ce67 |
|
MD5 | 046c3706561a3dfa2715f9be4a4b170c |
|
BLAKE2b-256 | 7904417e728b4946099fd65d51788c4a8ba7814330f767fa62fcedc874818092 |