Socket
Socket
Sign inDemoInstall

sorting-visualizer

Package Overview
Dependencies
1
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sorting-visualizer

A package to visualize various sorting algorithms.


Maintainers
1

Readme

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.

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc