algorithms-rs
Introduction to algorithms thrid edition implement by rust programming
算法导论
Present implement
Data Struct
- Heap
- rec build heap
- max_heapify
max_heapifyfunction
- min-heapify
min_heapifyfunction
- max_heapify
- no rec build heap
- min_sift
min_sift_upfunctionmin_sift_downfunction
- max_sift
max_sift_upfunctionmax_sift_downfunction
- min_sift
- max heap
- max_shift_up
build_max_heap_by_shift_upfunction
- max_heapify
build_max_heap_by_max_heapifyfunction
- max_shift_up
- min heap
- min_shift_up
build_min_heap_by_siftupfunction
- min_heapify
build_min_heap_by_min_heapifyfunction
- min_shift_up
- heap sort algorithms
- asc sort by Max-Heap by Max heapify
heap_sort_by_max_heapfunction
- dec sort by Min-Heap by Min Heapify
heap_sort_by_min_heapfunction
- asc sort by Max-Heap by Max shift_up and shift_down
asc_sort_with_max_siftfunction
- dec sort by Min-Heap by Min Shift_up and shift_down
dec_sort_with_min_siftfunction
- asc sort by Max-Heap by Max heapify
- rec build heap
- Stack
- push element
- pop element
- Queue
- pop head element
- push tail element
Sort algorithms
- Bubble Sort algorithms
- Insert Sort algorithms
- Select Sort algorithms
- Merge Sort algorithms, but not only support ascending order
support no-std feature
config setting:
= { = "0.1", = false }