Documentation
¶
Index ¶
- func BubbleSort(data Interface)
- func BubbleSort1(data Interface)
- func HeapSort(data Interface)
- func InsertSort(data Interface)
- func InsertSort1(data []int)
- func MergeSort(data []int)
- func QuickSort(data []int)
- func QuickSort1(data []int)
- func SelectSort(data Interface)
- func ShellSort(data []int)
- func ShellSort1(data []int)
- type Float64Slice
- type IntSlice
- type Interface
- type StringSlice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BubbleSort ¶
func BubbleSort(data Interface)
func InsertSort ¶
func InsertSort(data Interface)
func QuickSort1 ¶
func QuickSort1(data []int)
func SelectSort ¶
func SelectSort(data Interface)
func ShellSort1 ¶
func ShellSort1(data []int)
Types ¶
type Float64Slice ¶
type Float64Slice []float64
func (Float64Slice) HeapSort ¶
func (p Float64Slice) HeapSort()
func (Float64Slice) Len ¶
func (p Float64Slice) Len() int
func (Float64Slice) Less ¶
func (p Float64Slice) Less(i, j int) bool
func (Float64Slice) Swap ¶
func (p Float64Slice) Swap(i, j int)
type StringSlice ¶
type StringSlice []string
func (StringSlice) HeapSort ¶
func (p StringSlice) HeapSort()
func (StringSlice) Len ¶
func (p StringSlice) Len() int
func (StringSlice) Less ¶
func (p StringSlice) Less(i, j int) bool
func (StringSlice) Swap ¶
func (p StringSlice) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.