language-icon Old Web
English
Sign In

Promise problem

In computational complexity theory, a promise problem is a generalization of a decision problem where the input is promised to belong to a particular subset of all possible inputs. Unlike decision problems, the yes instances (the inputs for which an algorithm must return yes) and no instances do not exhaust the set of all inputs. Intuitively, the algorithm has been promised that the input does indeed belong to set of yes instances or no instances. There may be inputs which are neither yes nor no. If such an input is given to an algorithm for solving a promise problem, the algorithm is allowed to output anything, and may even not halt. In computational complexity theory, a promise problem is a generalization of a decision problem where the input is promised to belong to a particular subset of all possible inputs. Unlike decision problems, the yes instances (the inputs for which an algorithm must return yes) and no instances do not exhaust the set of all inputs. Intuitively, the algorithm has been promised that the input does indeed belong to set of yes instances or no instances. There may be inputs which are neither yes nor no. If such an input is given to an algorithm for solving a promise problem, the algorithm is allowed to output anything, and may even not halt. A decision problem can be associated with a language L ⊆ { 0 , 1 } ∗ {displaystyle Lsubseteq {0,1}^{*}} , where the problem is to accept all inputs in L {displaystyle L} and reject all inputs not in L {displaystyle L} . For a promise problem, there are two languages, L YES {displaystyle L_{ ext{YES}}} and L NO {displaystyle L_{ ext{NO}}} , which must be disjoint, which means L YES ∩ L NO = ∅ {displaystyle L_{ ext{YES}}cap L_{ ext{NO}}=varnothing } , such that all the inputs in L YES {displaystyle L_{ ext{YES}}} are to be accepted and all inputs in L NO {displaystyle L_{ ext{NO}}} are to be rejected. The set L YES ∪ L NO {displaystyle L_{ ext{YES}}cup L_{ ext{NO}}} is called the promise. There are no requirements on the output if the input does not belong to the promise. If the promise equals { 0 , 1 } ∗ {displaystyle {0,1}^{*}} , then this is also a decision problem, and the promise is said to be trivial. Many natural problems are actually promise problems. For instance, consider the following problem: Given a directed acyclic graph, determine if the graph has a path of length 10. The yes instances are directed acyclic graphs with a path of length 10, whereas the no instances are directed acyclic graphs with no path of length 10. The promise is the set of directed acyclic graphs. In this example, the promise is easy to check. In particular, it is very easy to check if a given graph is cyclic. However, the promised property could be difficult to evaluate. For instance, consider the problem 'Given a Hamiltonian graph, determine if the graph has a cycle of size 4.' Now the promise is NP-hard to evaluate, yet the promise problem is easy to solve since checking for cycles of size 4 can be done in polynomial time.

[ "Time complexity", "Quantum" ]
Parent Topic
Child Topic
    No Parent Topic