ArticleslgStudy

mathematics

Function problem

Function problem is a mathematics 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 Function problem rather than just read about it. In short: In computational complexity theory, a function problem is a computational problem where a single output is expected for every input, but the output is more complex than that of a decision problem. For function problems, the output is not simply 'yes' or 'no'.

Key takeaways

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

Reference excerpt

In computational complexity theory, a function problem is a computational problem where a single output is expected for every input, but the output is more complex than that of a decision problem. For function problems, the output is not simply 'yes' or 'no'.

Definition A function problem P {\displaystyle P} is defined by a relation R {\displaystyle R} over strings of an arbitrary alphabet Σ {\displaystyle \Sigma } :

R ⊆ Σ ∗ × Σ ∗ . {\displaystyle R\subseteq \Sigma ^{*}\times \Sigma ^{*}.}

Note that R {\displaystyle R} does not have to be a functional binary relation. An algorithm solves P {\displaystyle P} if for every input x {\displaystyle x} such that there exists a y {\displaystyle y} satisfying ( x , y ) ∈ R {\displaystyle (x,y)\in R} , the algorithm produces one such y {\displaystyle y} , and if there are no such y {\displaystyle y} , it rejects. A promise function problem permits the algorithm to do anything (thus may not terminate) if no such y {\displaystyle y} exists.

Examples A well-known function problem is given by the functional Boolean satisfiability problem, FSAT for short. The problem, which is closely related to the SAT decision problem, can be formulated as follows:

Given a propositional formula φ {\displaystyle \varphi } with variables x 1 , … , x n {\displaystyle x_{1},\ldots ,x_{n}} , find an assignment x i → { TRUE , FALSE } {\displaystyle x_{i}\rightarrow \{{\text{TRUE}},{\text{FALSE}}\}} such that φ {\displaystyle \varphi } evaluates to TRUE {\displaystyle {\text{TRUE}}} or decide that no such assignment exists. In this case the relation R {\displaystyle R} is given by pairs of suitably encoded propositional formulas and satisfying assignments. While a SAT algorithm, fed with a formula φ {\displaystyle \varphi } , only needs to return "unsatisfiable" or "satisfiable", an FSAT algorithm needs to return some satisfying assignment in the latter case. Other notable examples include the travelling salesman problem, which asks for the route taken by the salesman, and the integer factorization problem, which asks for the list of factors.

Relationship to other complexity classes Consider an arbitrary decision problem L {\displaystyle L} in the class NP. By the definition of NP, there is a system of certificates such that each problem instance x {\displaystyle x} that is answered 'yes' has a polynomial-size certificate y {\displaystyle y} that serves as a proof for the 'yes' answer (and problem instances answered 'no' have no such certificates). Thus, the set of these pairs ( x , y ) {\displaystyle (x,y)} forms a relation, representing the function problem "given x {\displaystyle x} in L {\displaystyle L} , find a certificate y {\displaystyle y} for x {\displaystyle x} ". This function problem is called a function variant of L {\displaystyle L} ; it belongs to the class FNP. Conversely, every problem R in FNP induces a (unique) corresponding decision problem: given x, decide if there exists some y such that R(x,y) holds. FNP can be thought of as the function class analogue of NP, in that solutions of FNP problems can be efficiently (i.e., in polynomial time in terms of the length of the input) verified, but not necessarily efficiently found. In contrast, the class FP, which can be thought of as the function class analogue of P, consists of function problems for which solutions can be found in polynomial time.

Self-reducibility Observe that the problem FSAT introduced above can be solved using only polynomially many calls to a subroutine that decides the SAT problem: An algorithm can first ask whether the formula φ {\displaystyle \varphi } is satisfiable. After that the algorithm can fix variable x 1 {\displaystyle x_{1}} to TRUE and ask again. If the resulting formula is still satisfiable the algorithm keeps x 1 {\displaystyle x_{1}} fixed to TRUE and continues to fix x 2 {\displaystyle x_{2}} , otherwise it decides that x 1 {\displaystyle x_{1}} has to be FALSE and continues. Thus, FSAT is solvable in polynomial time using an oracle deciding SAT. In general, a problem in FNP is called self-reducible if it can be solved in polynomial time using an oracle for its induced decision problem. Every function variant of every NP-complete problem is self-reducible. There are several (slightly different) notions of self-reducibility.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Function problem

Start with the simplest possible case. Write down what Function problem claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, 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 Function 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 Function 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 Function problem

In research
Function problem appears in mathematics 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 Function 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
Function problem is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computational problems, Functions and mappings, so understanding it makes those chapters shorter.
In everyday life
Look for Function 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.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Function problem” →

Affiliate

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

How to study Function problem in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Function 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 Function problem out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Function problem in simple terms?

In computational complexity theory, a function problem is a computational problem where a single output is expected for every input, but the output is more complex than that of a decision problem. For function problems, the output is not simply 'yes' or 'no'.

Why does Function problem matter?

Because it connects several mathematics 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 Function 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 Function problem.

Tags

  • Computational problems
  • Functions and mappings

Keep exploring