An open API service indexing awesome lists of open source software.

https://github.com/sjpau/sorts

Simple visualization of sorting algorithms in Go.
https://github.com/sjpau/sorts

algorithm algorithms algorithms-and-data-structures ebiten ebitengine go golang simple

Last synced: 18 days ago
JSON representation

Simple visualization of sorting algorithms in Go.

Awesome Lists containing this project

README

          

# sorts
Simple visualization of sorting algorithms.

![](example.gif)

### It's not a benchmark
This program is created strictly for visual appeal.
It does not compare real-world complexities of implemented algorithms and does not provide benchmarking tools.

### Controls
Sorting algorithms are numbered as described below.
Press SPACE to randomize matrix.

### Sorting algorithms

1 - Selection sort

2 - Gnome sort

3 - Bubble sort

4 - Heap sort

5 - Cocktail shaker sort

6 - Comb sort

7 - Quick sort

8 - Shell sort

9 - The Greatest Sorting Algorithm Known to Humankind

### Installation

`go install github.com/sjpau/sorts@latest`

### Compile manually

`go get github.com/sjpau/sorts`

`go build .` in the code directory