Expand description
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.28.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
- pancake sort
- … more later
link
Modules
- binary insertion sort algorithm.
- bitonic sort algorithm.
- bogo sort algorithm.
- bubble sort algorithm.
- cocktail shaker sort algorithm.
- comb sort algorithm.
- counting sort algorithm.
- cycle sort algorithm.
- double selection sort algorithm.
- gnome sort algorithm.
- gravity sort algorithm.
- heap sort algorithm.
- insertion sort algorithm.
- intro sort algorithm.
- merge sort algorithm.
- oddeven sort algorithm.
- pancake sort algorithm.
- quick sort algorithm.
- radix sort algorithm.
- selection sort algorithm.
- shell sort algorithm.
- sleep sort algorithm.
- smart bubble sort algorithm.
- stalin sort algorithm.
- stooge sort algorithm.
- tim sort algorithm.