Compute discrete log modulo a prime using "meet in the middle".