#sorting #algorithm

buldak

It is a library that provides various sorting functions

46 releases (28 breaking)

0.28.1 Oct 12, 2023
0.27.1 Nov 9, 2020

#681 in Algorithms

Download history 62/week @ 2024-02-16 31/week @ 2024-02-23 98/week @ 2024-03-29

98 downloads per month

MIT license

115KB
2.5K SLoC

buldak

GitHub license

It is a library that provides various sorting functions.


lib.rs:

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

Dependencies

~515KB