C# Класс 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

Наследование: SwapSorter
Показать файл Открыть проект

Открытые методы

Метод Описание
BubbleSorter ( ) : System.Collections
BubbleSorter ( IComparer comparer, ISwap swapper ) : System.Collections
Sort ( IList list ) : void

Описание методов

BubbleSorter() публичный Метод

public BubbleSorter ( ) : System.Collections
Результат System.Collections

BubbleSorter() публичный Метод

public BubbleSorter ( IComparer comparer, ISwap swapper ) : System.Collections
comparer IComparer
swapper ISwap
Результат System.Collections

Sort() публичный Метод

public Sort ( IList list ) : void
list IList
Результат void