rsalgo

A collection of some algorithms and data-structures

1 unstable release

0.0.1-init.1 Feb 10, 2019

Apache-2.0

12KB
191 lines

Algorithms in Rust

Codacy Badge Average time to resolve an issue Percentage of issues still open

Algorithms

  • Discretization
  • Dichotomy
    • Lower bound
    • Upper bound
    • Equal range
  • Inversion pairs
  • Next subset
  • Quick pow, quick multiply
  • Matrix
  • Prime test
  • GCD, LCM
  • Inverse element (Modal meaning)
  • Linear sieve
  • Trichotomy
  • Tree diameter

Data-structures

  • Disjoint set
  • Monotonic queue
  • Sparse Table
  • Prefix sum
  • Fenwick tree
  • Segment tree
  • Leftist heap
  • Trie
  • String hash
  • Shortest path
    • Single source
    • Multi source
  • Topological sorting
  • DFS order
  • Minimum spanning tree

Development

$ cargo test

Dependencies

~580–800KB
~11K SLoC