Finding a Witness and Checking a Supplied Witness

A search procedure must obtain evidence satisfying the condition. A verifier can start from already supplied evidence and test it.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Trace a numerical example
  2. Keep the exact task explicit
  3. Compare two contracts on one graph
  4. Avoid inferring a complexity separation from different tasks

Trace a numerical example

For a list and target total, a verifier given two positions can read and add their entries, checking that positions differ. A search without them needs another procedure. See two-pointer search.

Keep the exact task explicit

Returning yes, returning a pair, and listing every pair have different output contracts. Decision and witness describe that distinction.[1]

Compare two contracts on one graph

To check that a given list is a path, inspect each consecutive vertex pair for an edge and check endpoints. Finding a path when only start and target are supplied requires deciding which neighbors to explore. Both can be efficient for basic graph reachability. See graph reachability.

Candidate A,B,D
Check endpoints A and D
Check edges A–B and B–D under the model
Search can use BFS to construct a candidate

Avoid inferring a complexity separation from different tasks

A quick verifier alone does not prove finding is hard. Analyze the specific search problem and verification input. Report whether a negative answer requires exhaustive evidence under the chosen method.

References

  1. Michael Sipser, Introduction to the Theory of Computation ↩