Class BucketSort
A bucket sort implementation.
Namespace: Advanced.Algorithms.Sorting
Assembly: Advanced.Algorithms.dll
Syntax
public class BucketSort : object
Methods
Sort(Int32[], Int32, SortDirection)
Sort given integers using bucket sort with merge sort as sub sort.
Declaration
public static int[] Sort(int[] array, int bucketSize, SortDirection sortDirection = null)
Parameters
Type | Name | Description |
---|---|---|
Int32[] | array | |
Int32 | bucketSize | |
SortDirection | sortDirection |
Returns
Type | Description |
---|---|
Int32[] |