ArticleslgStudy

computer science

Search problem

Search problem is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Search problem rather than just read about it. In short: In computational complexity theory and computability theory, a search problem is a computational problem of finding an admissible answer for a given input value, provided that such an answer exists. In fact, a search problem is specified by a binary relation R where xRy if and only if "y is an admissible answer given x".

Key takeaways

  • Search problem belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Search problem to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Search problem from memory before moving on to harder problems.

Reference excerpt

In computational complexity theory and computability theory, a search problem is a computational problem of finding an admissible answer for a given input value, provided that such an answer exists. In fact, a search problem is specified by a binary relation R where xRy if and only if "y is an admissible answer given x". Search problems frequently occur in graph theory and combinatorial optimization, e.g. searching for matchings, optional cliques, and stable sets in a given undirected graph. An algorithm is said to solve a search problem if, for every input value x, it returns an admissible answer y for x when such an answer exists; otherwise, it returns any appropriate output, e.g. "not found" for x with no such answer.

Definition PlanetMath defines the problem as follows: If R {\displaystyle R} is a binary relation such that field ⁡ ( R ) ⊆ Γ + {\displaystyle \operatorname {field} (R)\subseteq \Gamma ^{+}} and T {\displaystyle T} is a Turing machine, then T {\displaystyle T} calculates f {\displaystyle f} if:

If x {\displaystyle x} is such that there is some y {\displaystyle y} such that R ( x , y ) {\displaystyle R(x,y)} then T {\displaystyle T} accepts x {\displaystyle x} with output z {\displaystyle z} such that R ( x , z ) {\displaystyle R(x,z)} . (there may be multiple y {\displaystyle y} , and T {\displaystyle T} need only find one of them) If x {\displaystyle x} is such that there is no y {\displaystyle y} such that R ( x , y ) {\displaystyle R(x,y)} then T {\displaystyle T} rejects x {\displaystyle x} . Note that the graph of a partial function is a binary relation, and if T {\displaystyle T} calculates a partial function then there is at most one possible output. An R {\displaystyle R} can be viewed as a search problem, and a Turing machine which calculates R {\displaystyle R} is also said to solve it. Every search problem has a corresponding decision problem, namely L ( R ) = { x ∣ ∃ y R ( x , y ) } . {\displaystyle L(R)=\{x\mid \exists yR(x,y)\}.}

This definition can be generalized to n-ary relations by any suitable encoding which allows multiple strings to be compressed into one string (for instance by listing them consecutively with a delimiter).

See also Unbounded search operator Decision problem Optimization problem Counting problem (complexity) Function problem Search games

Notes

References

This article incorporates material from search problem on PlanetMath, which is licensed under the Creative Commons Attribution/Share-Alike License.

Worked examples

Example 1 — a first encounter with Search problem

Start with the simplest possible case. Write down what Search problem claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Search problem before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Search problem ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Search problem

In research
Search problem appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Search problem in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Search problem is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computational problems, so understanding it makes those chapters shorter.
In everyday life
Look for Search problem outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Search problem in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Search problem means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Search problem out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Search problem in simple terms?

In computational complexity theory and computability theory, a search problem is a computational problem of finding an admissible answer for a given input value, provided that such an answer exists. In fact, a search problem is specified by a binary relation R where xRy if and only if "y is an admi…

Why does Search problem matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Search problem?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Search problem.

Tags

  • Computational problems

Keep exploring