Class BucketSort
A bucket sort implementation.
Inherited Members
Namespace: Advanced.Algorithms.Sorting
Assembly: Advanced.Algorithms.dll
Syntax
public class BucketSort
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 = SortDirection.Ascending)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32[] | array | |
| Int32 | bucketSize | |
| SortDirection | sortDirection |
Returns
| Type | Description |
|---|---|
| Int32[] |