Hubbry Logo
search
logo

Function problem

logo
Community Hub0 Subscribers
Write something...
Be the first to start a discussion here.
Be the first to start a discussion here.
See all
Function problem

In computational complexity theory, a function problem is a computational problem where a single output (of a total function) 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'.

A function problem is defined by a relation over strings of an arbitrary alphabet :

An algorithm solves if for every input such that there exists a satisfying , the algorithm produces one such , and if there are no such , it rejects.

A promise function problem permits the algorithm to do anything (thus may not terminate) if no such exists.

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:

In this case the relation is given by pairs of suitably encoded boolean formulas and satisfying assignments. While a SAT algorithm, fed with a formula , 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.

Consider an arbitrary decision problem in the class NP. By the definition of NP, each problem instance that is answered 'yes' has a polynomial-size certificate which serves as a proof for the 'yes' answer. Thus, the set of these pairs forms a relation, representing the function problem "given in , find a certificate for ". This function problem is called the function variant of ; it belongs to the class FNP.

See all
User Avatar
No comments yet.