Slice sorting in golang.
TODO: Add proper benchmarking.
Can be used as a reference point. Currently the following algorithms are implemented:
- Insertion
- Selection
- Bubble
- Quick (& Quick Optimized see diagram)
- Shell
Functions use the following type constraint:
type Ordered interface {
Integer | Float | ~string
}
The solutions provided are not garanteed to be the best implementation available!
Sources used: