https://github.com/simonwaldherr/golangsortingvisualization
examples of various sorting algorithms in golang (with visualization)
https://github.com/simonwaldherr/golangsortingvisualization
example gif golang golang-examples hacktoberfest-accepted sorting
Last synced: 6 months ago
JSON representation
examples of various sorting algorithms in golang (with visualization)
- Host: GitHub
- URL: https://github.com/simonwaldherr/golangsortingvisualization
- Owner: SimonWaldherr
- License: mit
- Created: 2014-08-06T22:37:53.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2024-08-30T18:51:16.000Z (over 1 year ago)
- Last Synced: 2025-04-06T10:12:53.054Z (10 months ago)
- Topics: example, gif, golang, golang-examples, hacktoberfest-accepted, sorting
- Language: Go
- Homepage:
- Size: 869 KB
- Stars: 125
- Watchers: 3
- Forks: 17
- Open Issues: 10
-
Metadata Files:
- Readme: readme.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# GolangSortingVisualization
[](https://goreportcard.com/report/simonwaldherr.de/go/golangsortingvisualization)
[](https://codebeat.co/projects/github-com-simonwaldherr-golangsortingvisualization-master)
this sorting visualization is not intended to recommend any algorithm, if you need a recommendation go [somewhere else](https://en.wikipedia.org/wiki/Sorting_algorithm#Comparison_of_algorithms).
if you like, feel free to add more Sorting Algorithm examples. Many thanks to all [contributors](https://github.com/SimonWaldherr/GolangSortingVisualization/graphs/contributors).
## Sorting Algorithms
### BogoSort
[](https://en.wikipedia.org/wiki/Bogosort)
### BubbleSort
[](https://en.wikipedia.org/wiki/Bubble_sort)
### CocktailSort
[](https://en.wikipedia.org/wiki/Cocktail_shaker_sort)
### CombSort
[](https://en.wikipedia.org/wiki/Comb_sort)
### CountingSort
[](https://en.wikipedia.org/wiki/Counting_sort)
### CycleSort
[](https://en.wikipedia.org/wiki/Cycle_sort)
### GnomeSort
[](https://en.wikipedia.org/wiki/Gnome_sort)
### HeapSort
[](https://en.wikipedia.org/wiki/Heapsort)
### InsertionSort
[](https://en.wikipedia.org/wiki/Insertion_sort)
### MergeSort
[](https://en.wikipedia.org/wiki/Merge_sort)
### OddEvenSort
[](https://en.wikipedia.org/wiki/Odd–even_sort)
### PancakeSort
[](https://en.wikipedia.org/wiki/Pancake_sorting)
### QuickSort
[](https://en.wikipedia.org/wiki/Quicksort)
### ShellSort
[](https://en.wikipedia.org/wiki/Shellsort)
### SelectionSort
[](https://en.wikipedia.org/wiki/Selection_sort)
### StoogeSort
[](https://en.wikipedia.org/wiki/Stooge_sort)
## HowTo
```sh
./start.sh
```
```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
```
## License
[MIT](https://github.com/SimonWaldherr/GolangSortingVisualization/blob/master/LICENSE)