sort

package module
v0.0.0-...-c3763d4 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2015 License: MIT Imports: 1 Imported by: 5

README

Sort Build Status

The package provides sorting algorithms.

Documentation

Contributing

  1. Fork the project.
  2. Implement your idea.
  3. Create a pull request.

Documentation

Overview

Package sort provides sorting algorithms.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Quick

func Quick(data []float64) ([]uint, []uint)

Quick sorts data in place using the Quicksort algorithm. The function returns two orderings, order1 and order2, such that order1[i] is the old position of of the new data[i], and order2[i] is the new position of of the old data[i].

https://en.wikipedia.org/wiki/Quicksort

func Unique

func Unique(data []float64) []float64

Unique sorts data in place and eliminates duplicates.

Types

This section is empty.

Jump to

Keyboard shortcuts

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