Documentation ¶
Index ¶
Constants ¶
View Source
const QuickToInsertionCutoff = 11
QuickToInsertionCutoff defines threshold when quick sort is switched to insertion sort.
Variables ¶
This section is empty.
Functions ¶
func Heap ¶
Heap sorts using *Heap sort* algorithm. https://algs4.cs.princeton.edu/24pq/
func Insertion ¶
Insertion sorts using *Insertion sort* algorithm. https://algs4.cs.princeton.edu/21elementary/
func KeyIndexedCounting ¶
KeyIndexedCounting sorts by positive integer keys in ascending order. Accepts array of keys, maximum key value and array which will be filled with sorted positions.
func Quick ¶
Quick sorts using *Quick sort* algorithm. https://algs4.cs.princeton.edu/23quicksort/
func Shell ¶
Shell sorts using *Shell sort* algorithm. https://algs4.cs.princeton.edu/21elementary/
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.