simplesort

package
v0.0.0-...-c4ba0da Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: MIT Imports: 2 Imported by: 0

README

Golang + Algorithm = goAlg

Sorting Algorithms

In this section I introduce Sorting Algorithms

Simple Sort
Algorithm Best Case Average Case Worst case
GnomeSort O(n) O(n²) O(n²)
InsertionSort O(n) O(n²) O(n²)
SelectionSort O(n²) O(n²) O(n²)
SlowSort O(n^(log(n)/2)) O(np) O(np)
SillySort O(n^(a log n)) O(n^(a log n)) O(n^(a log n))
LibrarySort O(n) O(nlog(n)) O(n²)
PatienceSort O(n) O(nlog(n)) O(nlog(n))

Documentation

Overview

Package of Simple Sort Algorithms

See Readme.md for more info.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GnomeSort

func GnomeSort(arr []interface{}, comp goutils.TypeComparator, low, high int)

Gnome Sort or Stupid Sort

func InsertionSort

func InsertionSort(arr []interface{}, comp goutils.TypeComparator, low, high int)

Insertion Sort

func SelectionSort

func SelectionSort(arr []interface{}, comp goutils.TypeComparator, low, high int)

Selection Sort

func SillySort

func SillySort(arr []interface{}, comp goutils.TypeComparator, low, high int)

Silly Sort

func SlowSort

func SlowSort(arr []interface{}, comp goutils.TypeComparator, low, high int)

Slow Sort or Parody Sort

Types

This section is empty.

Jump to

Keyboard shortcuts

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