https://github.com/extrabb/sortsuite
A Sorting suite written in C#
https://github.com/extrabb/sortsuite
mergesort parallel quicksort sort sorting
Last synced: 7 months ago
JSON representation
A Sorting suite written in C#
- Host: GitHub
- URL: https://github.com/extrabb/sortsuite
- Owner: ExtraBB
- Created: 2020-04-01T14:54:15.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-03T13:50:39.000Z (over 5 years ago)
- Last Synced: 2025-03-19T22:16:26.694Z (7 months ago)
- Topics: mergesort, parallel, quicksort, sort, sorting
- Language: C#
- Size: 32.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SortSuite
This package is written as a programming exercise for implementing sorting algorithms and publishing on NuGet.## Supported sorting algorithms
- Selection Sort (O(n^2))
- Quicksort (O(n log n))
- Mergesort (O(n log n)) (Can be run in parallel)## Nuget Package
When using the nuget package, you can use the sorting algorithms as follows:```c#
using SortSuite;class Class1 {
static void Main(string[] args) {
int[] items = new int[]{3, 9, 2, 5, 6, 1, 2, 3, 0};
ISortingAlgorithm sorter = new MergeSort();
sorter.Sort(items); // items is now sorted;
}
}
```There is also a `SortParallel` function which runs `async` and is currently implemented for MergeSort.
## SortSuiteTool
You can use this Console tool to generate data, run benchmarks, sort files etc. It can also be used from the CLI, run `./SortSuiteTool --help` to see the options.