Skip to content

Search Problem

A computational task that asks for an admissible output witness for each solvable encoded input, rather than only a verdict that one exists.

Core Idea

A search problem asks for an admissible output witness for an encoded input. Specify a relation \(R(x,y)\): \(x\) is an input, and \(y\) is an acceptable answer exactly when \(R(x,y)\) holds. For an input with at least one such \(y\), solving the task means producing one. The related decision question asks only whether any such \(y\) exists. It does not itself supply one.[1]

A search problem is a task specification, independent of a particular algorithm. A maximum-weight matching task requests an edge set; a factor-search task requests a divisor. Their carriers and solvers differ, but both demand a concrete witness.[2][3]

How would you explain it like I'm…

Show Me, Don't Tell Me

If your friend asks, "Is there a red block in the toy box?" you could just say yes. But if they ask you to find one, you have to hand them an actual red block. A search problem is the kind of question where you must hand over the thing itself, not just say whether it exists.

Show Me, Don't Just Tell Me

Some questions just want a yes or no: "Does this number have a smaller number that divides it evenly?" A search problem asks for more. It wants you to actually find and give back an answer that works, like the dividing number itself. Computer scientists call that answer a witness, because it proves the yes. The search problem is about what answer is wanted, not about which method you use to find it.

Witness-Producing Problems

A search problem asks you to produce an output, called a witness, that meets a stated requirement, instead of only answering whether such an output exists. Formally there is an input x, possible outputs y, and a rule R(x, y) saying which outputs are acceptable for that input. Solving the search problem means returning some y that satisfies R(x, y) whenever one exists. The matching decision problem only asks the yes-or-no question: is there any such y? For example, factoring asks you to return an actual divisor of a number, not just to say the number isn't prime. What the problem is stays the same no matter which algorithm you pick, and what to do when no witness exists is a separate choice you have to state.

 

A search problem is specified by a relation R(x, y) between encoded inputs x and candidate outputs y; on any input for which some y satisfies R, a solution must output such a y. Its associated decision problem asks only whether there exists y with R(x, y). The stable difference between the two is the demand to produce a witness, not merely certify existence. The specification is independent of any algorithm: Edmonds's maximum-weight matching task demands a matching edge set and Shor's factoring task demands a nontrivial divisor, and though their representations, validity predicates, and solvers differ, each requires a concrete admissible output. Inputs with no witness need an explicit convention if they are admitted at all. Goldreich's basic formulation sets that case aside, so a universal failure symbol is not part of what a search problem is.

Scope of Application

This entry covers formal computational tasks with represented inputs, candidate outputs and a declared admissibility relation. Polynomially bounded or efficiently checkable witnesses are additional restrictions, not requirements for every search problem. An optimization task can qualify when the admissibility relation demands an optimal witness, as Edmonds's maximum-weight matching relation does.[1][2]

When an admitted input has no witness, the response convention must be stated. Goldreich's basic formulation leaves such inputs aside; it does not make one particular failure signal universal. Composite integers have nontrivial divisors, whereas primes have none under the same proper-divisor relation.[1][3]

Clarity

For any proposed task, write down input, valid output and required response. “A matching exists” is a Boolean statement; a list of matching edges is a witness. “The integer is composite” is a verdict; a proper divisor is a witness. A procedure that checks a supplied candidate does not by itself produce one.[1][2][3]

Keep the algorithm separate. Edmonds's matching method and Shor's quantum method are ways to solve particular tasks, not clauses in the general definition.[2][3]

Manages Complexity

The \(R(x,y)\) form lets graph and arithmetic tasks be compared through the same output question while keeping their validity predicates distinct. It also prevents a complexity claim about one solver or one restricted class from being imported into all search problems. Maximum edge weight belongs to the matching predicate; divisibility belongs to the factor predicate.[1][2][3]

Abstract Reasoning

The associated decision language is \(L_R=\{x:\exists y\,R(x,y)\}\). A decision answer says whether \(x\) belongs to this set; a search answer returns a qualifying \(y\). Deriving a witness from repeated decisions can require additional structure such as self-reducibility. Goldreich treats that as conditional, not automatic for every search task.[1]

Replacing Shor's solver while retaining the proper-divisor relation leaves the factor-search problem intact. Admitting prime inputs without changing that relation instead adds no-witness cases and requires an explicit convention.[3]

Knowledge Transfer

To recognize a new search problem, identify the encoded instance family, admissibility relation and demand to return a witness. This transfers literally from weighted graphs to integers. The broader live Computational Problem entry already covers encoded inputs, acceptable outputs and success criteria; witness production gives this child its narrower identity. An everyday use of “search” without this formal output obligation is only an analogy here.[1]

Example

Maximum-weight matching. Edmonds takes a finite weighted graph. An admissible witness is a set of pairwise nonincident edges whose total weight is maximum; the task returns the edge set, not just the optimal value. Thus the graph is the input, the matching-and-weight condition is \(R\), and the edge set is the required output. Edmonds's algorithm is one optional solver.[2]

Nontrivial factor. For a composite integer \(n\), a witness is an integer \(d\) with \(1<d<n\) and \(d\mid n\). The required response is \(d\), not merely “composite.” Shor develops a quantum method for this output task, but the witness relation does not require his method.[3]

Relationships to Other Abstractions

Local relationship map for Search ProblemParents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.Search ProblemDOMAINDomain-specific abstraction: Computational problem — is a kind ofComputationalproblemDOMAIN

Current abstraction Search Problem Domain-specific

Parents (1) — outgoing typed relations

  • Search Problem is a kind of Computational problem Domain-specific

    A search problem is a computational problem distinguished by its demand for an admissible output witness.

Hierarchy path (1) — routes to 1 parentless root

Neighborhood in Abstraction Space

Search Problem sits in a sparse region of the domain-specific corpus (79th percentile for distinctiveness): few abstractions share its structure, so a faithful description tends to retrieve it precisely.

Family — Combinatorial Set Systems & Counting (9 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14

Not to Be Confused With

A decision-only existence question, a verifier of a supplied candidate and an algorithm that explores possible outputs are not the same as the witness-production task. Nor must a general search problem be total, efficiently solvable, efficiently verifiable, or an optimization problem. The strict parent is Computational Problem; particular matching and factoring tasks are instances, not broader genera.[1][2][3]

References

[1] Oded Goldreich, Introduction to Complexity Theory, 1999 draft, Lecture 1 §1.3, printed pp.3–4 (PDF pp.25–26, zero-index pp.24–25). Original full author text inspected. Defines relation-based search, distinguishes the associated decision language, and scopes polynomial balance, recognition and self-reducibility to further conditions. Its basic formulation ignores inputs with no witness. registry ↩a ↩b ↩c ↩d ↩e ↩f ↩g ↩h

[2] Jack Edmonds, “Maximum Matching and a Polyhedron With 0,1-Vertices”, Journal of Research of the National Bureau of Standards B 69B (1965), 125–130, abstract and §§1–2, printed pp.125–126 (PDF pp.1–2). Original full paper inspected. Defines matching as pairwise nonincident edges and works the maximum-weight output problem; its particular algorithm is not the general search definition. registry ↩a ↩b ↩c ↩d ↩e ↩f ↩g

[3] Peter W. Shor, “Polynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum Computer”, author paper, arXiv quant-ph/9508027v2 (1996), §5 “Prime factorization,” PDF pp.15–16 (zero-index pp.14–15). Original full paper inspected. The section seeks a nontrivial factor and develops a quantum order-finding solver with stated success conditions; this entry uses the factor-output task, not a universal complexity claim. registry ↩a ↩b ↩c ↩d ↩e ↩f ↩g ↩h