Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Algorithm ¶
type Algorithm int
const ( QuickSort Algorithm = iota // Unstable, in-place, average O(n log n) MergeSort // Stable, O(n log n), extra memory HeapSort // Unstable, in-place, O(n log n) InsertionSort // Stable, good for small/near-sorted, O(n^2) SelectionSort // Unstable, O(n^2) BubbleSort // Stable (with swap flag), O(n^2) )
Click to show internal directories.
Click to hide internal directories.