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.[1] 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.[src] Intuitively, the algorithm has been promised that the input does indeed belong to the set of yes instances or no instances.[src] There may be inputs which are neither yes nor no.[src] 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.[1]
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.[1] 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.[src] Intuitively, the algorithm has been promised that the input does indeed belong to the set of yes instances or no instances.[src] There may be inputs which are neither yes nor no.[src] 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.[1] ==Definition== A decision problem can be associated with a language L \subseteq \{0,1\}^* , where the problem is to accept all inputs in L and reject all inputs not in L .[src] For a promise problem, there are two languages, L_{\text{YES}} and L_{\text{NO}} , which must be disjoint, which means L_{\text{YES}} \cap L_{\text{NO}} = \varnothing , such that all the inputs in L_{\text{YES}} are to be accepted and all inputs in L_{\text{NO}} are to be rejected.[1] The set L_{\text{YES}} \cup L_{\text{NO}} is called the promise.[src] There are no requirements on the output if the input does not belong to the promise.[src] If the promise equals \{0,1\}^* , then this is also a decision problem, and the promise is said to be trivial.[1] ==Examples== Many natural problems are actually promise problems.[src] For instance, consider the following problem: Given a directed acyclic graph, determine if the graph has a path of length 10.[src] 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.[src] The promise is the set of directed acyclic graphs.[src] In this example, the promise is easy to check.[src] In particular, it is very easy to check if a given graph is cyclic.[src] However, the promised property could be difficult to evaluate.[src] 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.[1] ==See also== Computational problem Decision problem Optimization problem Search problem Counting problem (complexity) Function problem TFNP ==References== ===Surveys===[src]
24 sentences · 24 cited inline · 1 references stored
References
- promise problem · retrieved 2026-11-23 · rev 1326582084
Cite this reference
MLA "promise problem." 2026-11-23. https://en.wikipedia.org/w/index.php?oldid=1326582084. Accessed 28 November 2026.
Chicago "promise problem." 2026-11-23. https://en.wikipedia.org/w/index.php?oldid=1326582084.
APA encyclopegia.org. (2026). promise problem. Retrieved November 28, 2026, from https://en.wikipedia.org/w/index.php?oldid=1326582084
Cite this article
MLA
"promise problem." encyclopegia.org, 2025, https://encyclopegia.org/wiki/promise-problem. Accessed 28 November 2026.
Chicago
"promise problem." encyclopegia.org. Accessed November 28, 2026. https://encyclopegia.org/wiki/promise-problem.
APA
encyclopegia.org. (2025). promise problem. Retrieved November 28, 2026, from https://encyclopegia.org/wiki/promise-problem
Accessed November 28, 2026 · CC BY-SA 4.0 · citation page · JSON