1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
// Tideland Go Library - Sort - Export Test
//
// Copyright (C) 2009-2017 Frank Mueller / Tideland / Oldenburg / Germany
//
// All rights reserved. Use of this source code is governed
// by the new BSD license.
package sort
//--------------------
// IMPORTS
//--------------------
import (
"sort"
)
//--------------------
// EXPORTED FUNCTIONS
//--------------------
func Partition(data sort.Interface, lo, hi int) (int, int) {
return partition(data, lo, hi)
}
func InsertionSort(data sort.Interface, lo, hi int) {
insertionSort(data, lo, hi)
}
func SequentialQuickSort(data sort.Interface, lo, hi int) {
sequentialQuickSort(data, lo, hi)
}
// EOF
|