aoc::year2020::day25

Function discrete_logarithm

Source
fn discrete_logarithm(public_key: u64) -> u64
Expand description

Baby-step giant-step algorithm to compute discrete logarithm. Constants are hardcoded to this specific problem.