Sorting algorithms/Quicksort: Difference between revisions

m
Reapplied prior datatype update.
(Undo revision 330495 by CNHume (talk))
m (Reapplied prior datatype update.)
Line 1,789:
public class QuickSort<T> where T : IComparable {
#region Constants
public const Int32UInt32 INSERTION_LIMIT_DEFAULT = 12;
private const Int32 SAMPLES_MAX = 19;
#endregion
 
#region Properties
public Int32UInt32 InsertionLimit { get; }
private T[] Samples { get; }
private Int32 Left { get; set; }
Line 1,803:
 
#region Constructors
public QuickSort(Int32UInt32 insertionLimit = INSERTION_LIMIT_DEFAULT) {
this.InsertionLimit = insertionLimit;
this.Samples = new T[SAMPLES_MAX];
159

edits