ArticleslgStudy

science

FNP (complexity)

FNP (complexity) is a 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 FNP (complexity) rather than just read about it. In short: In computational complexity theory, the complexity class FNP is the function problem extension of the decision problem class NP. The name is somewhat of a misnomer, since technically it is a class of binary relations, not functions, as the following formal definition explains: A binary relation P(x,y), where y is at most polynomially longer than x, is in FNP if and only if there is a deterministic polynomial-time al…

Key takeaways

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

Reference excerpt

In computational complexity theory, the complexity class FNP is the function problem extension of the decision problem class NP. The name is somewhat of a misnomer, since technically it is a class of binary relations, not functions, as the following formal definition explains:

A binary relation P(x,y), where y is at most polynomially longer than x, is in FNP if and only if there is a deterministic polynomial-time algorithm that can determine whether P(x,y) holds given both x and y. This definition does not involve nondeterminism and is analogous to the verifier definition of NP. There is an NP language directly corresponding to every FNP relation, sometimes called the decision problem induced by or corresponding to said FNP relation. It is the language formed by taking all the x for which there exists some y such that P(x,y) holds; however, there may be more than one FNP relation that induces a particular decision problem. Many problems in NP, including many NP-complete problems, can be specified by asking whether a particular object exists, such as a satisfying assignment, a graph coloring, or a clique of a certain size. These problems often correspond to relations in FNP that ask not only whether an object exists but what value or values such an object can have. When an FNP relation corresponds in this way to an NP-complete problem, the relation is self-reducible. Bellare and Goldwasser showed in 1994 using some standard complexity-theoretic assumptions that there exist problems in NP such that none of their FNP versions are self-reducible, implying that they are harder than their corresponding decision problem. For each P in FNP, the search problem associated with P is: given x, find a y such that P(x,y) holds, or state that no such y exists. The search problem for every relation in FNP can be solved deterministically in polynomial time if and only if P = NP. This result is usually stated as "FP = FNP if and only if P = NP"; however, for this statement to be true, it is necessary to redefine FP and FNP so that the members of FP and FNP are not relations, but are instead search problems associated with relations.

Reductions Let P1 and P2 be two problems in FNP, with associated verification algorithms A1, A2. A reduction P1 and P2 is defined as two polynomial-time computable functions, f and g, such that

f maps inputs x of P1 to inputs f(x) of P2 ; g maps outputs y of P2 to outputs g(y) of P1 ; For all x and y: if A2(f(x),y) returns true, then A1(x, g(y)) returns true; For all x: if A2(f(x),y) returns false for all y, then A1(x, g(y)) returns false for all y.

Related complexity classes FP is the set of binary relations for which there is a polynomial-time algorithm that, given x, finds some y for which P(x,y) holds. The relation between FNP and FP is analogous to the relation between NP and P. TFNP is a subset of FNP: it contains those relations in FNP for which, for every x, there exists at least one y for which P(x,y) holds.

References

External links Complexity Zoo: FNP

Worked examples

Example 1 — a first encounter with FNP (complexity)

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

In research
FNP (complexity) appears in 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 FNP (complexity) 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
FNP (complexity) is common in secondary-school and first-year university syllabi. It links to neighbouring topics Binary relations, Complexity classes, so understanding it makes those chapters shorter.
In everyday life
Look for FNP (complexity) 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 “FNP (complexity)” →

How to study FNP (complexity) in 20 minutes

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

Frequently asked questions

What is FNP (complexity) in simple terms?

In computational complexity theory, the complexity class FNP is the function problem extension of the decision problem class NP. The name is somewhat of a misnomer, since technically it is a class of binary relations, not functions, as the following formal definition explains: A binary relation P(x…

Why does FNP (complexity) matter?

Because it connects several 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 FNP (complexity)?

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 FNP (complexity).

Tags

  • Binary relations
  • Complexity classes

Keep exploring