hdu 2815 Mod Tree (扩展BSGS算法)Jul 28, 2017·463 words·1 minACM BSGS 扩展BSGS题意:k^D=n(%p),求最小的D (1<=K, P, N<=10^9) 思路:出题人英文水平捉鸡。。。。
BZOJ 2480: Spoj3105 Mod (扩展BSGS算法,模板)Jul 24, 2017·658 words·2 minsACM BSGS 扩展BSGSDescription # 已知数a,p,b,求满足a^x≡b(mod p)的最小自然数x。
BSGS(Baby steps giant steps)算法学习笔记Jul 23, 2017·1027 words·3 minsACM BSGS 分块离散对数(Discrete Logarithm)问题是这样一个问题,它是对于模方程
poj 2417 Discrete Logging (BSGS算法)Jul 23, 2017·528 words·2 minsACM BSGS题目链接 题意: Given a prime P, 2 <= P < 231, an integer B, 2 <= B < P, and an integer N, 1 <= N < P, compute the discrete logarithm of N, base B, modulo P. That is, find an integer L such that BL == N (mod P)