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
Show file Open project: WildGums/Orc.Sort

Public Methods

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

Method Details

BubbleSorter() public method

public BubbleSorter ( ) : System.Collections
return System.Collections

BubbleSorter() public method

public BubbleSorter ( IComparer comparer, ISwap swapper ) : System.Collections
comparer IComparer
swapper ISwap
return System.Collections

Sort() public method

public Sort ( IList list ) : void
list IList
return void