A verifier for a decision problem is an algorithm that takes an instance and a word , the certificate, such that is a yes-instance if and only if accepts for some . The class NP is the set of problems that have a verifier running in time polynomial in the size of (so only certificates of polynomial length matter). A nondeterministic Turing machine may have several transitions for the same state and symbol; it accepts when some sequence of choices leads to acceptance.
search_vs_verify.py. At the search computes 4,194,304 sums.