sorts

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

author : kdgyun

link : https://st-lab.tistory.com link : https://github.com/kdgyun

Index

Constants

View Source
const (
	SIZE_THREADHOLD   = 16
	T_SIZE_THREADHOLD = 2048
)
View Source
const (
	S_THREADHOLD = 16
)

Variables

View Source
var Gap = [...]int{1, 4, 10, 23, 57, 132, 301, 701, 1750, 3937, 8858, 19930, 44842, 100894, 227011, 510774, 1149241, 2585792, 5818032, 13090572, 29453787, 66271020, 149109795, 335497038, 754868335, 1698453753}

Gap sequence is based on the Ciura sequence. The number after 1750 is obtained by multiplying by 2.25. link : https://en.wikipedia.org/wiki/Shellsort#Gap_sequences

Functions

func BinarySort

func BinarySort(a []int)

func BitonicSort

func BitonicSort(a []int)

func BottomUpMergeSort

func BottomUpMergeSort(a []int)

func BubbleSort

func BubbleSort(a []int)

func CocktailSort

func CocktailSort(a []int)

func CombSort

func CombSort(a []int)

func CycleSort

func CycleSort(a []int)

func DualPivotQuickSort

func DualPivotQuickSort(a []int)

func HeapSort

func HeapSort(a []int)

func InsertionSort

func InsertionSort(a []int)

func IntroSort

func IntroSort(a []int)

func OddEvenMergeSort

func OddEvenMergeSort(a []int)

func OddEvenSort

func OddEvenSort(a []int)

func ParallelBitonicSort

func ParallelBitonicSort(a []int)

func ParallelDualPivotQuickSort

func ParallelDualPivotQuickSort(a []int)

func ParallelIntroSort

func ParallelIntroSort(a []int)

func ParallelMergeSort

func ParallelMergeSort(a []int)

func ParallelOddEvenMergeSort

func ParallelOddEvenMergeSort(a []int)

func ParallelQuickSort

func ParallelQuickSort(a []int)

func ParallelQuickSortLP

func ParallelQuickSortLP(a []int)

func ParallelQuickSortRP

func ParallelQuickSortRP(a []int)

func QuickSort

func QuickSort(a []int)

func QuickSortLP

func QuickSortLP(a []int)

func QuickSortRP

func QuickSortRP(a []int)

func SelectionSort

func SelectionSort(a []int)

func ShellSort

func ShellSort(a []int)

func TimSort

func TimSort(a []int)

func TopDownMergeSort

func TopDownMergeSort(a []int)

Types

type TimStack

type TimStack struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL