C# Class Orc.Sort.NSort.QuickSorter

http://www.codeproject.com/csharp/csquicksort.asp
Inheritance: SwapSorter
显示文件 Open project: WildGums/Orc.Sort

Public Methods

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

Sorts the array.

Sort ( IList array, int lower, int upper ) : void

Private Methods

Method Description
Pivot ( IList array, int lower, int upper ) : int

Method Details

QuickSorter() public method

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

QuickSorter() public method

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

Sort() public method

Sorts the array.
public Sort ( IList array ) : void
array IList The array to sort.
return void

Sort() public method

public Sort ( IList array, int lower, int upper ) : void
array IList
lower int
upper int
return void