Skip to main content

A package to visualize various sorting algorithms.

Project description

HitCount

image image image

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

  1. ffmpeg

How to use

  1. Show the plot

    from sorting_visualizer import visualizer
    visualizer.visualize('bubblesort')
    
  2. Show and save the plot

    from sorting_visualizer import visualizer
    visualizer.visualize('bubblesort', save=True)
    
  3. Only save the plot and not show it

    from sorting_visualizer import visualizer
    visualizer.visualize('bubblesort', save=True, show=False)
    
  4. 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

This version

1.0

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 details)

Uploaded Source

Built Distribution

sorting_visualizer-1.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

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

Hashes for sorting_visualizer-1.0.tar.gz
Algorithm Hash digest
SHA256 a45825d4e4e4c7f357199bde0c624c9809590979669505ef33c5b775f59462c2
MD5 d12aa8df35c7353d58d8d6b7d1fcf787
BLAKE2b-256 81b25d9d3b8c2756632fced714e82b20c24386959ef469ab0426cadd2d346ec0

See more details on using hashes here.

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

Hashes for sorting_visualizer-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0994f49acf2eb26d1c5f9c0f8df6ada49bbfdd1db6a453391b2385151c49ce67
MD5 046c3706561a3dfa2715f9be4a4b170c
BLAKE2b-256 7904417e728b4946099fd65d51788c4a8ba7814330f767fa62fcedc874818092

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page