Repository files navigation Algorithms and Data structures
Following stuff is already implemented:
Prime numbers and factorization
Sieve of Eratosthenes (wiki)
Sieve of Eratosthenes with linear complexity (aka Euler's sieve) (wiki)
Pollard's rho algorithm (wiki)
Other algorithms related to sortings
Quickselect (selection algorithm) (wiki)
Quickselect with O(n) worst-case complexity. Uses Median of medians (wiki)
Data Structures for RMQ and similar problems
Algorithms and Data structures for trees
Least common ancestor (LCA) and Level ancestor problem (LA)
Disjoint set union (Union find) (cp-algorithms)
Persistent stack
Queue with minimum
Hashed array tree (wiki)
Dynamic array with Θ(1) push_back complexity (no O(n) worst-case)
Longest increasing subsequence (wiki)
Longest common subsequence (wiki)
About
Some implementations of interesting algorithms and data structures that I studied.
Topics
Resources
License
Stars
Watchers
Forks
You can’t perform that action at this time.