sorting

package
v0.0.0-...-ba256d5 Latest Latest
Warning

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

Go to latest
Published: May 19, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BubbleSort

func BubbleSort[V int | float64](list []V)

BubbleSort is the simplest sorting algorithm that works by repeated swapping the adjacent elements if they are in the wrong order.

func InsertionSort

func InsertionSort(list []int)

InsertionSort is a simple sorting algorithm that works similar to the way you sort playing cards in your hands. The array is virtually split into a sorted and an unsorted part. Values from the unsorted part are picked and placed at the correct position in the sorted part.

func SelectionSort

func SelectionSort(list []int)

SelectionSort ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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