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
Built Distribution
File details
Details for the file sorting_visualizer-1.0.tar.gz
.
File metadata
- Download URL: sorting_visualizer-1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a45825d4e4e4c7f357199bde0c624c9809590979669505ef33c5b775f59462c2 |
|
MD5 | d12aa8df35c7353d58d8d6b7d1fcf787 |
|
BLAKE2b-256 | 81b25d9d3b8c2756632fced714e82b20c24386959ef469ab0426cadd2d346ec0 |
File details
Details for the file sorting_visualizer-1.0-py3-none-any.whl
.
File metadata
- Download URL: sorting_visualizer-1.0-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0994f49acf2eb26d1c5f9c0f8df6ada49bbfdd1db6a453391b2385151c49ce67 |
|
MD5 | 046c3706561a3dfa2715f9be4a4b170c |
|
BLAKE2b-256 | 7904417e728b4946099fd65d51788c4a8ba7814330f767fa62fcedc874818092 |