Documentation ¶
Index ¶
- func HeapSort(a []Generic, compare Compare)
- func InsertionSort(a []Generic, compare Compare)
- func MergeSort(a []Generic, compare Compare)
- func MergeSortRec(a []Generic, compare Compare)
- func QuickSort(a []Generic, compare Compare)
- func QuickSort3Way(a []Generic, compare Compare)
- func Select(a []Generic, k int, compare Compare) Generic
- func ShellSort(a []Generic, compare Compare)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertionSort ¶
func InsertionSort(a []Generic, compare Compare)
InsertionSort implements insertion sort algorithm
func MergeSort ¶
func MergeSort(a []Generic, compare Compare)
MergeSort implements merge sort algorithm in an iterative manner
func MergeSortRec ¶
func MergeSortRec(a []Generic, compare Compare)
MergeSortRec implements merge sort algorithm in a recursive manner
func QuickSort ¶
func QuickSort(a []Generic, compare Compare)
QuickSort implements quick sort algorithm
func QuickSort3Way ¶
func QuickSort3Way(a []Generic, compare Compare)
QuickSort3Way implements 3-way quick sort algorithm
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.