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

Uploaded Source

Built Distribution

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

Uploaded Python 3

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