[−][src]Crate buldak
It is a library that provides various sorting functions.
install
If cargo-edit is installed, you can install it like this:
cargo add buldak
If not, you have to manually add the dependency to Cargo.toml.
[dependencies]
buldak = "0.27.1"
use
If you have performed the installation process well, you can sort by passing the values in an array format as follows.
use buldak::*; fn main() { let mut nums = [6, 34, 3, 1, 2]; bubble::sort(&mut nums); println!("{:?}", nums); }
features
- bubble sort
- smart bubble sort
- cocktail shaker sort
- selection sort
- double selection sort
- insertion sort
- binary insertion sort
- stooge sort
- gnome sort
- gravity sort
- comb sort
- cycle sort
- oddeven sort
- quick sort
- merge sort
- heap sort
- intro sort
- tim sort
- counting sort
- radix sort
- shell sort
- bogo sort
- sleep sort
- stalin sort
- ... more later
link
Modules
binary_insertion | binary insertion sort algorithm. |
bitonic | bitonic sort algorithm. |
bogo | bogo sort algorithm. |
bubble | bubble sort algorithm. |
cocktail_shaker | cocktail shaker sort algorithm. |
comb | comb sort algorithm. |
counting | counting sort algorithm. |
cycle | cycle sort algorithm. |
double_selection | double selection sort algorithm. |
gnome | gnome sort algorithm. |
gravity | gravity sort algorithm. |
heap | heap sort algorithm. |
insertion | insertion sort algorithm. |
intro | intro sort algorithm. |
merge | merge sort algorithm. |
oddeven | oddeven sort algorithm. |
quick | quick sort algorithm. |
radix | radix sort algorithm. |
selection | selection sort algorithm. |
shell | shell sort algorithm. |
sleep | sleep sort algorithm. |
smart_bubble | smart bubble sort algorithm. |
stalin | stalin sort algorithm. |
stooge | stooge sort algorithm. |
tim | tim sort algorithm. |