Imagine standing at the entrance of a huge maze and being granted one magical power: at every fork you always guess the correct turn. With that gift you reach the exit in a single, perfect walk. This is nondeterminism — the idea that a machine can effortlessly pick the right path among exponentially many.
For time, this power looks enormous: it is exactly what separates the easy class P from the famously hard NP. But here is a stranger question. What if we don't count how long the journey takes, but how much memory we need to carry along the way — a notepad to remember where we are?
Savitch's theorem gives a beautiful, almost paradoxical answer. When you measure memory instead of time, guessing is nearly worthless. A machine that guesses its way through can be simulated by an ordinary, deterministic one using only a little more memory — the square of what the guesser used. That single fact reshapes how we think about the limits of computation.
Comments
Loading comments...