Suppose I hand you a logic puzzle and ask: is there a way to make it true? Often that's easy — you find one assignment that works, show it to me, done. But now I change one word and ask: how many ways are there?
Suddenly the trick of "just show me one" is useless. To answer how many, you seemingly have to account for every possibility, even the ones you'd happily ignore when you only needed a single witness.
That gap between "does one exist?" (a yes/no decision) and "how many exist?" (a count) is not a detail. It marks the border of a whole complexity class called #P (pronounced "sharp-P"), and it is one of the cleanest examples of a problem where checking, deciding, and counting are three very different jobs.
Comments
Loading comments...