Docs.rs
algorithms_fourth-0.1.2
algorithms_fourth 0.1.2
Docs.rs crate page
MIT
Links
crates.io
Source
Owners
liluyue
Dependencies
rand ^0.8.4
normal
Versions
29.63%
of the crate is documented
Go to latest version
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
☰
Module sort
Structs
Functions
?
Module
algorithms_fourth
::
sort
source
·
[
−
]
Structs
RangeStep
用于指定步长的迭代usize元素
Functions
bubble_sort
冒泡排序
heap_sort
insert_sort
插入排序(效率竟然不如冒泡排序)
merge_sort
归并排序
quick_sort
快速排序,这里没有随机话,所以为了效率,使用者需要自己随机化数据
quick_sort_for_three_direction
三向快速排序,这里没有随机话,所以为了效率,使用者需要自己随机化数据
shell_sort
希尔排序(交换次数比插入排序少,但远未达到高效)