Function aoc::year2020::day25::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.