项目作者: phuang1024

项目描述 :
Visualize sorting algorithms.
高级语言: Python
项目地址: git://github.com/phuang1024/sorting_visualizer.git
创建时间: 2020-11-02T20:25:24Z
项目社区:https://github.com/phuang1024/sorting_visualizer

开源协议:GNU General Public License v3.0

下载


Sorting Visualizer

by Patrick Huang

This Python program allows you to visualize different sorting algorithms. You can see how they work, as well as their complexity.


Version 2

Algorithms:

  • Bubble
  • Optimized bubble
  • Cocktail
  • Optimized cocktail
  • Gnome
  • Insertion
  • Selection
  • Shell
  • Comb
  • Cycle

Visulizations:

  • Bars
  • Scatterplot
  • Black and white
  • Color gradient
  • Pie
  • Pie scatterplot
  • Pie black and white
  • Pie color gradient
  • Custom image

Features:

  • Start and stop
  • 10 to 512 elements
  • 10 to 240 ticks per second
  • Sort stats

Version 2

Algorithms:

  • Bubble
  • Cocktail Shaker
  • Gnome
  • Insertion
  • Selection
  • Shell
  • Comb
  • Cycle

Visulizations:

  • Bars
  • Scatterplot
  • Black and white
  • Color gradient
  • Pie
  • Pie scatterplot
  • Pie black and white
  • Pie color gradient

Features:

  • Start and stop
  • 10 to 500 elements
  • 10 to 240 ticks per second
  • Sort stats

Version 1

Algorithms included:

  • Insertion
  • Cocktail
  • Selection
  • Bubble
  • Pigeonhole
  • Shell
  • Gnome

How to use:

  1. Adjust the Set Size slider to the desired size. This controls how many elements there are.
  2. Click Generate Set to create a new set of elements.
  3. Click one of the algorithms, and watch the sorting!

Additional features:

  • Click Stop to stop the algorithm at any time.
  • Click Sort to immediately sort the current elements.