Verifiers, Certificates and the Class NP

Context: FIT2014_MOC · swaps deciding for verifying — the same move that separates sitting the exam from showing the degree certificate; the problem catalogue lives in Standard NP Problems and Certificates and the comparison machinery in Polynomial-Time Reductions

Quick Revision

  • 🎯 Objective: a verifier for is a TM on two inputs that always halts, with the TM accepts , and every is rejected ➔ has a verifier of time complexity , .
  • 📦 Core Components: certificate ➔ the guessed evidence | verifier ➔ the polynomial-time check | NDTM ➔ the equivalent machine model that supplies the letter N.
  • ⚡ Key Constraint: the polynomial is in only — never in . That single bound silently caps the useful certificate length at symbols and is what makes provable.

📝 How It Works

1. Deciding versus verifying

  • The distinctiondeciding answers “is ?” either way; verifying only confirms a Yes, and only when handed suitable evidence.
  • Lecture’s two analogiespeople who can kick a football ➔ hand them a ball ⟹ that procedure is a decider, settling Yes and No alike. university graduates ➔ no efficient decider exists, but a degree certificate verifies membership instantly — and non-membership stays hard to verify.
  • Asymmetry is the point is a class of languages whose Yes-instances have short, checkable evidence; nothing is claimed about the No-instances (that is ).

2. Verifier, certificate,

A verifier for is a TM taking two strings that (i) always halts; (ii) if , there exists making it accept; (iii) if , every makes it reject. The string is a certificate. A polynomial-time verifier has time complexity where .

  • Acceptance restated is accepted iff it has a certificate that the verifier passes — so designing a certificate is designing the proof of membership.
  • ➔ the class of languages possessing a polynomial-time verifier; the name is Nondeterministic Polynomial time, justified in §5 — it does not stand for “non-polynomial”.
  • The four obligations of a membership proof ➔ ① specify the certificate; ② give the verifier as an algorithm; ③ prove it is a verifier (the iff chain); ④ prove it runs in polynomial time. Skipping ③ or ④ is where the marks go.

3. Worked membership proof —

  • Certificate ➔ a function , stored as a list of colours indexed by vertex.
  • Verifier ➔ for each edge : look up and ; if Reject and halt; if the loop completes with no violation, Accept and halt.

4. , and the exponential ceiling

Theorem. . Theorem. Every is decidable in time for some constant .

5. Nondeterministic TMs — where the “N” comes from

  • NDTM ➔ a Turing machine whose transition function may offer more than one action for a given (state, symbol) pair ⟹ one input spawns many possible computations. Every deterministic TM is an NDTM (the degenerate case).
  • Acceptance accepts iff some computation path reaches Accept — exactly the NFA convention lifted to tapes.
  • Nondeterministic decider halts on all inputs and the accepted language is . Polynomial-time NDTM ➔ time complexity , the maximum taken over all inputs of length and all computation paths for each.

Theorem. some polynomial-time NDTM is a nondeterministic decider for .

6. The -versus- problem

  • Conjecture: the biggest open problem in computer science and one of the biggest in mathematics, carrying a Clay Institute Millennium Prize of US$1 million. Many false solutions appear and continue to appear.
  • The disputed middle ➔ in but not known to be in : SATISFIABILITY, 3-SAT, HAMILTONIAN CIRCUIT, 3-COLOURABILITY, VERTEX COVER, INDEPENDENT SET, GRAPH ISOMORPHISM, INTEGER FACTORISATION — see Standard NP Problems and Certificates.
  • Known inside ➔ 2-SAT, EULERIAN CIRCUIT, 2-COLOURABILITY, CONNECTED GRAPHS, SHORTEST PATH, PRIMES, invertible matrices, all context-free and all regular languages ⟹ if the two pictures collapse into one.

⚠️ Common Mistakes

  • 💡 Bounding the verifier in ➔ the definition fixes . Bounding by the certificate’s length would let an exponentially long certificate smuggle in exponential time.
  • 💡 Proving only the Yes direction ➔ condition (iii) — every rejected when — is what forbids a certificate that fakes membership. A “verifier” that accepts some with verifies nothing.
  • 💡 Reading NP as “not polynomial” ➔ it abbreviates Nondeterministic Polynomial, and is a theorem, so the reading is not merely wrong but self-contradictory.
  • 💡 Claiming means “unsolvable” ➔ every language is decidable, in by brute-force certificate search. is a tractability question, not a computability one (Undecidability and the Halting Problem).
  • 💡 Over-tightening the time bound ➔ marks come from exhibiting a polynomial. Optimising to earns nothing and wastes exam minutes.

🧠 Active Recall