Algorithms & data structures

Crates.io

alg

Search algorithms:

namecomplexitydescription
max O(n) maximum in &[T]
min O(n) minimum in &[T]
binary O(log2n) binary search in &[T]
lcs O(mn) longest common subsequence

Sort algorithms:

namecomplexity
selection O(n2)
quick O(n log2n)

ds

namedescription
Matrix two-dimensional array