Skip to content
Surf Wiki
Save to docs
general/complexity-classes

From Surf Wiki (app.surf) — the open knowledge base

FP (complexity)

Complexity class


Complexity class

In computational complexity theory, the complexity class FP is the set of function problems that can be solved by a deterministic Turing machine in polynomial time (and for which the function problem also represents a predicate decidable in polynomial time). It is the function problem version of the decision problem class P. Roughly speaking, it is the class of functions that can be efficiently computed on classical computers without randomization.

The difference between FP and P is that problems in P have one-bit, yes/no answers, while problems in FP can have any output that can be computed in polynomial time. For example, adding two numbers is an FP problem, while determining if their sum is odd is in P. So any decision problem in P can be thought of as a function that outputs 0 or 1, so it’s trivially in FP. In short: \mathsf P \subseteq \mathsf{FP}.

Polynomial-time function problems are fundamental in defining polynomial-time reductions, which are used in turn to define the class of NP-complete problems.

Formal definition

FP is formally defined as follows:

:A binary relation R is in FP if and only if

  • there is a deterministic polynomial-time algorithm that, given x, either finds some y such that R(x,y) holds, or signals that no such y exists,

  • and there is a deterministic algorithm that, given x and y, checks whether R(x,y) holds and runs in time polynomial in the size of x.

(The latter condition may seem redundant, but it is added to ensure that every FP problem is in FNP, since there may be multiple y values for which R(x,y) holds, and without the second condition the algorithm is not required to be able to check each of these values in polynomial time.)

References

References

  1. https://complexityzoo.net/Complexity_Zoo:F#fp Complexity Zoo: FP
  2. Bürgisser, Peter. (2000). "Completeness and reduction in algebraic complexity theory". [[Springer-Verlag]].
  3. Rich, Elaine. (2008). "Automata, computability and complexity: theory and applications". Prentice Hall.
Info: Wikipedia Source

This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page.

Want to explore this topic further?

Ask Mako anything about FP (complexity) — get instant answers, deeper analysis, and related topics.

Research with Mako

Free with your Surf account

Content sourced from Wikipedia, available under CC BY-SA 4.0.

This content may have been generated or modified by AI. CloudSurf Software LLC is not responsible for the accuracy, completeness, or reliability of AI-generated content. Always verify important information from primary sources.

Report