Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

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

  • [x] Bubble Sort (bubblesort)
  • [x] Selection Sort (selectionsort)
  • [x] Insertion Sort (insertionsort)
  • [x] 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.

Files for sorting-visualizer, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size sorting_visualizer-1.0-py3-none-any.whl (5.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size sorting_visualizer-1.0.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page