sorting-algorithm
various sorting algorithms implemented in Rust
The current implemented sorting algorithms are:
- Bogo Sort
- Bubble Sort
- Cocktail Shaker Sort
- Comb Sort
- Gnome Sort
- Insertion Sort
- Merge Sort
- Quick Sort
- Selection Sort
- Shell Sort
Use
The use for each algorithm is essentially the same.
- Import the module for the desired algorithm
- Call the module's
sort()function - Pass a mutable pointer as an argument
use bubble_sort;