1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
/*!
It is a library that provides various sorting functions.

## install
If cargo-edit is installed, you can install it like this:
```sh
cargo add buldak
```
If not, you have to manually add the dependency to Cargo.toml.
```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.
```rust
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
- [document](https://docs.rs/buldak)
- [repository](https://github.com/myyrakle/buldak)
*/

#[path = "lib/bubble.rs"]
pub mod bubble;

#[path = "lib/smart_bubble.rs"]
pub mod smart_bubble;

#[path = "lib/cocktail_shaker.rs"]
pub mod cocktail_shaker;

#[path = "lib/selection.rs"]
pub mod selection;

#[path = "lib/insertion.rs"]
pub mod insertion;

#[path = "lib/binary_insertion.rs"]
pub mod binary_insertion;

#[path = "lib/double_selection.rs"]
pub mod double_selection;

#[path = "lib/shell.rs"]
pub mod shell;

#[path = "lib/stooge.rs"]
pub mod stooge;

#[path = "lib/gnome.rs"]
pub mod gnome;

#[path = "lib/gravity.rs"]
pub mod gravity;

#[path = "lib/comb.rs"]
pub mod comb;

#[path = "lib/cycle.rs"]
pub mod cycle;

#[path = "lib/oddeven.rs"]
pub mod oddeven;

#[path = "lib/bitonic.rs"]
pub mod bitonic;

#[path = "lib/quick.rs"]
pub mod quick;

#[path = "lib/merge.rs"]
pub mod merge;

#[path = "lib/heap.rs"]
pub mod heap;

#[path = "lib/intro.rs"]
pub mod intro;

#[path = "lib/tim.rs"]
pub mod tim;

#[path = "lib/counting.rs"]
pub mod counting;

#[path = "lib/radix.rs"]
pub mod radix;

#[path = "lib/bogo.rs"]
pub mod bogo;

#[path = "lib/sleep.rs"]
pub mod sleep;

#[path = "lib/stalin.rs"]
pub mod stalin;