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