GolangSortingVisualization
GolangSortingVisualization copied to clipboard
examples of various sorting algorithms in golang (with visualization)
GolangSortingVisualization
this sorting visualization is not intended to recommend any algorithm, if you need a recommendation go somewhere else.
if you like, feel free to add more Sorting Algorithm examples. Many thanks to all contributors.
Sorting Algorithms
BogoSort
BubbleSort
CocktailSort
CombSort
CountingSort
CycleSort
GnomeSort
HeapSort
InsertionSort
MergeSort
OddEvenSort
PancakeSort
QuickSort
ShellSort
SelectionSort
StoogeSort
HowTo
./start.sh
$ go run gsv.go --help
Usage of gsv:
-algo="bubble": Select sorting algorithm all/bogo/[bubble]/comb/counting/gnome/insertion/oddEven/selection/sleep
-count=30: number of values
-fps=10: frames per second
-max=9: highest value
-mode=1: visualization mode
-vis="stdout": Select output: [stdout]/gif