algorithms_rs/lib.rs
1#![cfg_attr(not(feature = "std"), no_std)]
2//! # Introduction to algorithms
3//! > thrid edition implement by rust programming
4//!
5//! ## Now Implement
6//! - heap sort algorithm
7//! - Max Heap
8//! - Asc sort by Max Heap,`asc_sort_with_max_sift`, `heap_sort_by_max_heap`
9//! - Min Heap
10//! - Dec sort by Min Heap, `dec_sort_with_min_sift`, `heap_sort_by_min_heap`
11//! - stack
12//! - push top element
13//! - pop top element
14//! - queue
15//! - push queue tail element
16//! - pop queue head element
17//!
18extern crate alloc;
19
20/// heap sort module
21pub mod heap;
22/// queue struct module
23pub mod queue;
24/// stack struct module
25pub mod stack;
26
27/// sort algorithm
28pub mod sort;
29
30/// search algorithm
31pub mod search;
32
33#[cfg(test)]
34mod tests;
35pub mod utils;
36
37pub mod chapter4;
38
39pub use heap::Heap;
40pub use queue::Queue;
41pub use stack::Stack;