C# Class Orc.Sort.NSort.BubbleSorter

Bubble sort sequential algorithm

Bubble sort is a sequential sorting algorithm that runs in O(n^2), where n is the number of elements in the list.

Source: http://www.cs.rit.edu/~atk/Java/Sorting/sorting.html

Inheritance: SwapSorter
Afficher le fichier Open project: WildGums/Orc.Sort

Méthodes publiques

Méthode Description
BubbleSorter ( ) : System.Collections
BubbleSorter ( IComparer comparer, ISwap swapper ) : System.Collections
Sort ( IList list ) : void

Method Details

BubbleSorter() public méthode

public BubbleSorter ( ) : System.Collections
Résultat System.Collections

BubbleSorter() public méthode

public BubbleSorter ( IComparer comparer, ISwap swapper ) : System.Collections
comparer IComparer
swapper ISwap
Résultat System.Collections

Sort() public méthode

public Sort ( IList list ) : void
list IList
Résultat void