Collection of basic algorithms for everyday development
LIst of algorithms:
Search algorithms:
- Binary search
Segment Tree:
- RSQ (Range Sum Query)
- RMQMin (Range Minimum Query)
- RMQMax (Range Maximum Query)
- RMQMin (Range Minimum Query)
String Algorithms:
- Knuth–Morris–Pratt string-searching algorithm (or KMP algorithm)
- Trie or prefix tree
Combinatorics and enumeration algorithms
- Permutation generation
Graph algorithms:
- bfs (Breadth-First Search)
- dfs (Depth-First Search)
- dijkstra
Mathematics algorithms:
- The Greatest Common Divisor (GCD)
Example
extern crate librualg;
use *;