Difference between revisions of "Complexity Garden"

From Complexity Zoo
Jump to navigation Jump to search
m (1 revision: Complexity zoo import.)
 
(Add prodLH)
 
(10 intermediate revisions by 6 users not shown)
Line 30: Line 30:
 
[[#ksat|k-SAT]] -
 
[[#ksat|k-SAT]] -
 
[[#unique-ksat|Unique <math>k</math>-SAT]]
 
[[#unique-ksat|Unique <math>k</math>-SAT]]
 +
 +
''Isomorphism problems:''
 +
[[#graph_automorphism|Graph Automorphism]] -
 +
[[#graph_isomorphism|Graph Isomorphism]] -
 +
[[#ra|Ring Automorphism]] -
 +
[[#ri|Ring Isomorphism]]
 +
 +
''Algebraic problems:''
 +
[[#ra|Ring Automorphism]] -
 +
[[#ri|Ring Isomorphism]] -
 +
[[#approximate_shortest_lattice_vector|Approximate Shortest Lattice Vector]] -
 +
[[#group_nonmembership|Group Nonmembership]] -
 +
[[#integer_factorization|Integer Factorization]] -
 +
[[#integer_factor|Integer Factor &#8804; k]] -
 +
[[#integer_multiplication|Integer Multiplication]] -
 +
[[#matrix_multiplication|Matrix Multiplication]] -
 +
[[#permanent|Permanent]] -
 +
[[#square_root|Square Root mod n]]
  
 
''Sets and partitions:''
 
''Sets and partitions:''
Line 35: Line 53:
  
 
''Uncategorized problems:''
 
''Uncategorized problems:''
 +
[[#boolean_matrix_multiplication|Boolean Matrix Multiplication]] -
 
[[#3sum|3SUM]] -
 
[[#3sum|3SUM]] -
[[#approximate_shortest_lattice_vector|Approximate Shortest Lattice Vector]] -
 
 
[[#boolean_convolution|Boolean Convolution]] -
 
[[#boolean_convolution|Boolean Convolution]] -
[[#boolean_matrix_multiplication|Boolean Matrix Multiplication]] -
 
 
[[#boolean_sorting|Boolean Sorting]] -
 
[[#boolean_sorting|Boolean Sorting]] -
 
[[#discrete_logarithm|Discrete Logarithm]] -
 
[[#discrete_logarithm|Discrete Logarithm]] -
 
[[#equality|Equality]] -  
 
[[#equality|Equality]] -  
[[#group_nonmembership|Group Nonmembership]] -
 
[[#integer_factorization|Integer Factorization]] -
 
[[#integer_factor|Integer Factor &#8804; k]] -
 
[[#integer_multiplication|Integer Multiplication]] -
 
 
[[#k-local-ham|k-Local Hamiltonians]] -
 
[[#k-local-ham|k-Local Hamiltonians]] -
 
[[#k-round_sorting|k-Round Sorting]] -
 
[[#k-round_sorting|k-Round Sorting]] -
 
[[#linear_programming|Linear Programming]] -
 
[[#linear_programming|Linear Programming]] -
 
[[#majority|Majority]] -
 
[[#majority|Majority]] -
[[#matrix_multiplication|Matrix Multiplication]] -
 
 
[[#parity|Parity]] -
 
[[#parity|Parity]] -
[[#permanent|Permanent]] -
 
[[#ra|Ring Automorphism]] -
 
[[#ri|Ring Isomorphism]] -
 
 
[[#shortest_implicant|Short Implicant]] -
 
[[#shortest_implicant|Short Implicant]] -
 
[[#stochastic_games|Stochastic Games]] -
 
[[#stochastic_games|Stochastic Games]] -
 
[[#tautology|Tautology]] -
 
[[#tautology|Tautology]] -
[[#square_root|Square Root mod n]] -
 
 
[[#threshold(k)|Threshold(k)]]
 
[[#threshold(k)|Threshold(k)]]
  
Line 75: Line 83:
 
===== <span id="sharpsat" style="color:red">#SAT</span>: Count satisfying truth assignments  =====
 
===== <span id="sharpsat" style="color:red">#SAT</span>: Count satisfying truth assignments  =====
  
This is the counting version of [[sat|SAT]]: given a Boolean formula, compute how many satisfying truth assignments it has.  
+
This is the counting version of [[#sat|SAT]]: given a Boolean formula, compute how many satisfying truth assignments it has.  
  
 
Algorithms: ?
 
Algorithms: ?
Line 81: Line 89:
 
Memberships: &#8712; [[Complexity Zoo:Symbols#sharpp|#P]]-complete
 
Memberships: &#8712; [[Complexity Zoo:Symbols#sharpp|#P]]-complete
  
Related Problems: The version '''#CNF-SAT''' (counting version of [[CNF-SAT|CNF-SAT]]) and '''#3-CNF-SAT''' also called '''#3SAT''' (counting version of [[3-CNF-SAT]]) also are two '''#P-complete''' problems.
+
Related Problems: The version '''#CNF-SAT''' (counting version of [[CNF-SAT]]) and '''#3-CNF-SAT''' also called '''#3SAT''' (counting version of [[#ksat|3-CNF-SAT]]) also are two '''#P-complete''' problems.
 
----
 
----
  
Line 92: Line 100:
 
Memberships: &#8712; {{zcls|symbols|sharpwt|#WT}}
 
Memberships: &#8712; {{zcls|symbols|sharpwt|#WT}}
 
----
 
----
 
  
 
===== <span id="3sum" style="color:red">3SUM</span>: Do there exist members of a list satisfying <math>a+b+c=0</math>? =====
 
===== <span id="3sum" style="color:red">3SUM</span>: Do there exist members of a list satisfying <math>a+b+c=0</math>? =====
Line 108: Line 115:
 
Algorithms: ?
 
Algorithms: ?
  
Memberships: &#8712; [[Zoo#np|NP]] &#8745; [[Zoo#conp|coNP]], <math>\notin</math> [[Zoo#p|P]]?
+
Memberships: &#8712; [[Complexity Zoo#np|NP]] &#8745; [[Complexity Zoo#conp|coNP]], <math>\notin</math> [[Complexity Zoo#p|P]]?
 
----
 
----
  
Line 119: Line 126:
 
Algorithms: ?
 
Algorithms: ?
  
Memberships: &#8712; [[Zoo#fp|FP]]
+
Memberships: &#8712; [[Complexity Zoo#fp|FP]]
 
<br>Properties: [[Zoo_Glossary#puniform|P-nonuniform?]], [[Zoo_Glossary#gap|monotone-nonmonotone gap]]
 
<br>Properties: [[Zoo_Glossary#puniform|P-nonuniform?]], [[Zoo_Glossary#gap|monotone-nonmonotone gap]]
 
----
 
----
Line 130: Line 137:
 
Algorithms: ?
 
Algorithms: ?
  
Memberships: &#8712; [[Zoo#fp|FP]]
+
Memberships: &#8712; [[Complexity Zoo#fp|FP]]
 
<br>Properties: [[Zoo_Glossary#puniform|P-nonuniform?]], [[Zoo_Glossary#gap|monotone-nonmonotone gap]]
 
<br>Properties: [[Zoo_Glossary#puniform|P-nonuniform?]], [[Zoo_Glossary#gap|monotone-nonmonotone gap]]
 
----
 
----
Line 144: Line 151:
 
Algorithms: ?
 
Algorithms: ?
  
Memberships: &#8712; [[Zoo#fp|FP]]
+
Memberships: &#8712; [[Complexity Zoo#fp|FP]]
 
<br>Properties: [[Zoo_Glossary#ospeedup|O-optimal]], symmetric, [[Zoo_Glossary#gap|monotone-nonmonotone gap]]
 
<br>Properties: [[Zoo_Glossary#ospeedup|O-optimal]], symmetric, [[Zoo_Glossary#gap|monotone-nonmonotone gap]]
  
Line 156: Line 163:
 
Algorithms: ?
 
Algorithms: ?
  
Memberships: &#8712; [[Zoo#p|P]]  
+
Memberships: &#8712; [[Complexity Zoo#p|P]]  
 
<br>Properties: [[Zoo_Glossary#gap|monotone-nonmonotone gap]]
 
<br>Properties: [[Zoo_Glossary#gap|monotone-nonmonotone gap]]
  
 
----
 
----
 +
 +
===== <span id="coloring" style="color:red">Coloring</span>: Color a Graph So Adjacent Vertices Have Different Colors =====
 +
The input is a graph, G, with a number of colors, C. The output is whether there exists an assignment of each vertex to one of C colors so that no two adjacent vertices have the same color. If such an assignment exists, we say G is C-colorable. C-coloring is the problem of determining if a graph is C colorable.
 +
 +
Even 3-Coloring is NP hard. For some &epsilon, it is NP hard to even find a 3-coloring where only an &epsilon fraction of edges have the same colors on both sides.
 +
 +
Variations on this problem may also ask for the coloring, or the minimum C so that a graph is C-colorable.
 +
 +
Algorithms: ?
 +
 +
Memberships: &#8712; [[Complexity Zoo#npc|NP-complete]]
 +
 +
----
 +
  
 
{{Garden-Problem
 
{{Garden-Problem
Line 181: Line 202:
 
Algorithms: ?
 
Algorithms: ?
  
Memberships: &#8712; [[Zoo#fnp|FNP]] &#8745; [[Zoo#fbqp|FBQP]]
+
Memberships: &#8712; [[Complexity_Zoo:F#fnp|FNP]] &#8745; [[Complexity_Zoo:F#fbqp|FBQP]]
 
<br>Properties: Is a one-way function?
 
<br>Properties: Is a one-way function?
  
Line 204: Line 225:
 
Algorithms: ?
 
Algorithms: ?
  
Memberships: &#8712; [[Zoo#np|NP]]  &#8745;  [[Zoo#coam|coAM]].
+
Memberships: &#8712; [[Complexity Zoo#np|NP]]  &#8745;  [[Complexity Zoo#coam|coAM]].
  
 
----
 
----
Line 218: Line 239:
 
Algorithms: ?
 
Algorithms: ?
  
Memberships: &#8712; [[Zoo#np|NP]]  &#8745;  [[Zoo#coam|coAM]], [[Zoo_Glossary#puniform|P-nonuniform?]]
+
Memberships: &#8712; [[Complexity Zoo#np|NP]]  &#8745;  [[Complexity Zoo#coam|coAM]], [[Zoo_Glossary#puniform|P-nonuniform?]]
  
Properties: In [[Zoo#np|NP]]\[[Zoo#p|P]] but not [[Complexity Zoo:N#npc|NP-complete]]?
+
Properties: In [[Complexity Zoo#np|NP]]\[[Complexity Zoo#p|P]] but not [[Complexity Zoo:N#npc|NP-complete]]?
  
 
----
 
----
Line 255: Line 276:
 
Integer Factorization in ''quantum'' polynomial time.
 
Integer Factorization in ''quantum'' polynomial time.
  
Memberships: &#8712; [[Complexity Zoo:F#fnp|FNP]] &#8745; [[Zoo#fbqp|FBQP]]
+
Memberships: &#8712; [[Complexity Zoo:F#fnp|FNP]] &#8745; [[Complexity Zoo#fbqp|FBQP]]
  
Properties: In [[Zoo#np|NP]]\[[Zoo#p|P]] but not [[Zoo#npc|NP]]-complete?
+
Properties: In [[Complexity Zoo#np|NP]]\[[Complexity Zoo#p|P]] but not [[Complexity Zoo#npc|NP]]-complete?
  
 
----
 
----
Line 267: Line 288:
 
Algorithms: The fastest algorithm is either the number field sieve or Lenstra's elliptic curve method, depending on the relative size of n and k.  Lenstra's algorithm has heuristic randomized time complexity <math>\mathrm{poly}(n)2^{O(\sqrt{k(\log k))})}</math> if n and k have n and k digits, respectively.
 
Algorithms: The fastest algorithm is either the number field sieve or Lenstra's elliptic curve method, depending on the relative size of n and k.  Lenstra's algorithm has heuristic randomized time complexity <math>\mathrm{poly}(n)2^{O(\sqrt{k(\log k))})}</math> if n and k have n and k digits, respectively.
  
Memberships: &#8712; [[Zoo#np|NP]] &#8745; [[Zoo#conp|coNP]]
+
Memberships: &#8712; [[Complexity Zoo#np|NP]] &#8745; [[Complexity Zoo#conp|coNP]]
  
 
----
 
----
Line 277: Line 298:
 
Algorithms: ?
 
Algorithms: ?
  
Memberships: &#8712; [[Zoo#fp|FP]]  
+
Memberships: &#8712; [[Complexity Zoo#fp|FP]]  
 
<br>Properties: [[Zoo_Glossary#puniform|P-nonuniform?]]  
 
<br>Properties: [[Zoo_Glossary#puniform|P-nonuniform?]]  
  
 
----
 
----
  
{{Garden-Problem
+
===== <span id="k-local-ham" style="color:red">k-Local Hamiltonian</span>: Find the smallest eigenvalue of ''m'' ''k''-local Hamiltonians acting on ''n'' qubits. =====
    |id=k-local-ham
+
 
    |title=k-Local Hamiltonians
 
    |descript=Find the smallest eigenvalue of ''m'' ''k''-local Hamiltonians acting on ''n'' qubits.
 
    |body=
 
 
Given an ''n''-qubit Hilbert space, as well as a collection H<sub>1</sub>,...,H<sub>''m''</sub> of Hamiltonians (i.e. Hermitian positive semidefinite matrices), each of which acts on at most ''k'' qubits of the space. Also given real numbers ''a'',''b'' such that <math>b-a \in \Theta(1/\mathsf{poly}(n))</math>. Decide whether the smallest eigenvalue of <math>H=\sum_{i=1}^m H_i</math> is less than ''a'' or greater than ''b'', promised that one of these is the case.
 
Given an ''n''-qubit Hilbert space, as well as a collection H<sub>1</sub>,...,H<sub>''m''</sub> of Hamiltonians (i.e. Hermitian positive semidefinite matrices), each of which acts on at most ''k'' qubits of the space. Also given real numbers ''a'',''b'' such that <math>b-a \in \Theta(1/\mathsf{poly}(n))</math>. Decide whether the smallest eigenvalue of <math>H=\sum_{i=1}^m H_i</math> is less than ''a'' or greater than ''b'', promised that one of these is the case.
  
Line 297: Line 315:
 
* [[Complexity Zoo:Q#qma|QMA]]-complete for ''k'' = 3 [[Zooref#kr03|[KR03]]].
 
* [[Complexity Zoo:Q#qma|QMA]]-complete for ''k'' = 3 [[Zooref#kr03|[KR03]]].
 
* [[Complexity Zoo:Q#qma|QMA]]-complete for ''k'' = 2, under the assumption that [[Complexity Zoo:P#p|P]]&ne;[[Complexity Zoo:Q#q|QMA]] [[Zooref#kkr04|[KKR04]]].
 
* [[Complexity Zoo:Q#qma|QMA]]-complete for ''k'' = 2, under the assumption that [[Complexity Zoo:P#p|P]]&ne;[[Complexity Zoo:Q#q|QMA]] [[Zooref#kkr04|[KKR04]]].
}}
+
* 2-LH has been fully classified by [[zooref#cm16|[CM16]]], similar to Schaefer's Dichotomy Theorem for SAT. See also [[zooref#pm15|[PM15]]], [[zooref#cmp18|[CMP18]]] for classifications under additional restrictions.
 +
----
  
 
===== <span id="k-round_sorting" style="color:red">k-Round Sorting</span>: Sort inputs in &#8804; k rounds =====
 
===== <span id="k-round_sorting" style="color:red">k-Round Sorting</span>: Sort inputs in &#8804; k rounds =====
Line 316: Line 335:
 
Algorithms: ?
 
Algorithms: ?
  
Memberships: &#8712; [[Zoo#fp|FP]]
+
Memberships: &#8712; [[Complexity Zoo#fp|FP]]
 
----
 
----
  
Line 323: Line 342:
 
Majority is a Boolean function with n input bits and 1 output bit. The output is 1 if the majority of input bits are 1. Examples: 001 &#8594; 0, 1100  &#8594; 1.
 
Majority is a Boolean function with n input bits and 1 output bit. The output is 1 if the majority of input bits are 1. Examples: 001 &#8594; 0, 1100  &#8594; 1.
  
Majority<math>\in</math>[[Zoo#p|P]]. Majority <math>\notin</math>[[Complexity_Zoo:R#reg|REG]]. Therefore, REG<math>\subsetneq</math>P.
+
Majority<math>\in</math>[[Complexity Zoo#p|P]]. Majority <math>\notin</math>[[Complexity_Zoo:R#reg|REG]]. Therefore, REG<math>\subsetneq</math>P.
  
 
Algorithms: ?
 
Algorithms: ?
  
Memberships: &#8712; [[Zoo#p|P]]  
+
Memberships: &#8712; [[Complexity Zoo#p|P]]  
 
<br>Properties: [[Zoo_Glossary#ospeedup|O-optimal]], symmetric.
 
<br>Properties: [[Zoo_Glossary#ospeedup|O-optimal]], symmetric.
  
Line 348: Line 367:
 
Parity is a Boolean function with n inputs and 1 output. The output is 1 if the number of 1 inputs is odd. Examples: 001 &#8594; 1, 11011 &#8594; 0.
 
Parity is a Boolean function with n inputs and 1 output. The output is 1 if the number of 1 inputs is odd. Examples: 001 &#8594; 1, 11011 &#8594; 0.
  
Parity<math>\in</math>[[Zoo#p|P]]. Parity <math>\notin</math>[[Complexity_Zoo:F#fo|FO]] ([[zooref#Ajt83|[Ajt83]]] and [[zooref#FSS84|[FSS84]]]). Therefore, FO<math>\subsetneq</math>P.
+
Parity<math>\in</math>[[Complexity Zoo#p|P]]. Parity <math>\notin</math>[[Complexity_Zoo:F#fo|FO]] ([[zooref#Ajt83|[Ajt83]]] and [[zooref#FSS84|[FSS84]]]). Therefore, FO<math>\subsetneq</math>P.
  
 
Algorithms: ?
 
Algorithms: ?
  
Memberships: &#8712; [[Zoo#p|P]]
+
Memberships: &#8712; [[Complexity Zoo#p|P]]
 
<br>Properties: [[Zoo_Glossary#ospeedup|O-optimal]], symmetric.
 
<br>Properties: [[Zoo_Glossary#ospeedup|O-optimal]], symmetric.
  
Line 362: Line 381:
 
Perfect Matching is a Boolean function with n<sup>2</sup> inputs (an adjacency matrix) describing a bipartite graph and one output which is 1 if the graph has a perfect matching.
 
Perfect Matching is a Boolean function with n<sup>2</sup> inputs (an adjacency matrix) describing a bipartite graph and one output which is 1 if the graph has a perfect matching.
  
Perfect Matching reduces to Linear Programming, and is therefore in [[Zoo#p|P]], although specialized algorithms are also known.
+
Perfect Matching reduces to Linear Programming, and is therefore in [[Complexity Zoo#p|P]], although specialized algorithms are also known.
  
 
It has monotone circuit complexity of <math>n^{\Omega(\log n)}</math> (Razborov [[zooref#raz85b|[Raz85b]]]) but polynomial nonmonotone circuit complexity.  
 
It has monotone circuit complexity of <math>n^{\Omega(\log n)}</math> (Razborov [[zooref#raz85b|[Raz85b]]]) but polynomial nonmonotone circuit complexity.  
  
Perfect Matching is nonuniformly reducible to determinant and is in [[Zoo#rnc|RNC]] and [[zooref#mvv87|[MVV87]]], [[zooref#kuw86|[KUW86]]], but no deterministic [[Zoo#nc|NC]] algorithm is known.
+
Perfect Matching is nonuniformly reducible to determinant and is in [[Complexity Zoo#rnc|RNC]] and [[zooref#mvv87|[MVV87]]], [[zooref#kuw86|[KUW86]]], but no deterministic [[Zoo#nc|NC]] algorithm is known.
  
 
Like [[#graph_isomorphism|Graph Isomorphism]], it is not known to be complete for a natural complexity class. There is a randomized or nonuniform log-space reduction of Perfect Matching to [[#graph_isomorphism|Graph Isomorphism]] [[zooref#tor00|[Tor00]]].
 
Like [[#graph_isomorphism|Graph Isomorphism]], it is not known to be complete for a natural complexity class. There is a randomized or nonuniform log-space reduction of Perfect Matching to [[#graph_isomorphism|Graph Isomorphism]] [[zooref#tor00|[Tor00]]].
Line 372: Line 391:
 
Algorithms: ?
 
Algorithms: ?
  
Memberships: &#8712; [[Zoo#p|P]]  
+
Memberships: &#8712; [[Complexity Zoo#p|P]]  
 
<br>Properties: [[Zoo_Glossary#gap|monotone-nonmonotone gap]], [[Zoo_Glossary#puniform|P-nonuniform?]].
 
<br>Properties: [[Zoo_Glossary#gap|monotone-nonmonotone gap]], [[Zoo_Glossary#puniform|P-nonuniform?]].
  
Line 390: Line 409:
  
 
----
 
----
 +
 +
===== <span id="prodlh" style="color:red">prodLH</span>: Given a local Hamiltonian, find the minimum energy of a product state. =====
 +
 +
Similar to [[#k-local-ham|k-LH]], except instead of searching over all quantum states, solutions are restricted to be product states.
 +
<br> A product state is a tensor product of un-entangled qubits. Individual qubits may be in superposition, but no entanglement. <math>\rho_1\otimes \rho_2\otimes \dots \rho_n</math>.
 +
 +
Algorithms: ?
 +
 +
Memberships: Since product states have efficient classical descriptions, prodLH is always contained in [[Complexity Zoo:N#np|NP]].
 +
 +
''Properties:''
 +
* prodLH has been fully classified for 2-qubit terms by [[zooref#kptwy24|[KPTWY24]]].
 +
----
 +
 +
  
 
{{Garden-Problem
 
{{Garden-Problem
 
     |id=ra
 
     |id=ra
 
     |title=Ring Automorphism
 
     |title=Ring Automorphism
     |descript=Does a ring have non-trivial an automorphism?
+
     |descript=Does a ring have a non-trivial automorphism?
 
     |body=
 
     |body=
 
A special case of [[#ri|Ring Isomorphism]] where the two rings investigated are the same, and where we are looking for non-trivial automorphisms.
 
A special case of [[#ri|Ring Isomorphism]] where the two rings investigated are the same, and where we are looking for non-trivial automorphisms.
Line 419: Line 453:
 
Algorithms: ?
 
Algorithms: ?
  
Memberships: &#8712; [[Zoo#pspace|PSPACE]]  
+
Memberships: &#8712; [[Complexity Zoo#pspace|PSPACE]]  
  
 
----
 
----
Line 472: Line 506:
 
Algorithms: ?
 
Algorithms: ?
  
Memberships: [[Zoo#gc|GC]]-complete
+
Memberships: [[Complexity Zoo#gc|GC]]-complete
 
----
 
----
  
Line 481: Line 515:
 
Algorithms: ?
 
Algorithms: ?
  
Memberships: &#8712; [[Zoo#np|NP]] &#8745; [[Zoo#conp|coNP]],  <math>\notin</math>[[Zoo#p|P]]'''?
+
Memberships: &#8712; [[Complexity Zoo#np|NP]] &#8745; [[Complexity Zoo#conp|coNP]],  <math>\notin</math>[[Complexity Zoo#p|P]]'''?
  
 
----
 
----
Line 503: Line 537:
 
Algorithms: ?
 
Algorithms: ?
  
Memberships: &#8712; [[Zoo#fp|FP]]  
+
Memberships: &#8712; [[Complexity Zoo#fp|FP]]  
  
 
Properties: Is a one-way function?
 
Properties: Is a one-way function?
Line 516: Line 550:
 
Algorithms: ?
 
Algorithms: ?
  
Memberships: &#8712; [[Zoo#p|P]]  
+
Memberships: &#8712; [[Complexity Zoo#p|P]]  
 
<br>Properties: symmetric.
 
<br>Properties: symmetric.
  

Latest revision as of 16:48, 7 July 2024


Main Zoo - Complexity Garden - Zoo Glossary - Zoo References


Welcome to the Complexity Garden, the botanical companion to the Complexity Zoo. This field guide lists rigorously defined computational problems, together with their relations to complexity classes, their best algorithmic results, and their relations to other problems. There are now 39 problems and (one can only hope) counting. The initial members either have or might have some exotic property related to speedup (such as O-speedup, monotone-nonmonotone gap, or P-nonuniformity), or provide a canonical example of a complexity class (i.e. NP-complete). However, all additions are welcome, and it is hoped that this will grow into a comprehensive collection.

Gardener: Hunter Monroe (volunteers welcome)

To create a new problem, click on the edit link of the problem before or after the one that you want to add and copy the format, and save. The preferred format of each problem is as follows: description of the problem, relations to complexity classes, their best algorithmic results (upper-bounds and lower-bounds e.g. see the Set Cover problem), memberships and properties, and relations to other problems. Then, add the problem to the table of contents and increment the total number of problems. After this, you can use the side edit links to edit the individual sections. For more on using the wiki language, see our simple wiki help page.

If your problem is not on the list and you suspect that it might be an open problem you can check the Open Problem Garden.

Table of Contents

Graph theoretic problems: #Perfect Matching - Clique-Like - Graph Automorphism - Graph Isomorphism - Perfect Matching

Satisfiability problems: #SAT - #WSAT - Constraint Satisfaction - QBF - Quantum k-SAT - SAT - k-SAT - Unique -SAT

Isomorphism problems: Graph Automorphism - Graph Isomorphism - Ring Automorphism - Ring Isomorphism

Algebraic problems: Ring Automorphism - Ring Isomorphism - Approximate Shortest Lattice Vector - Group Nonmembership - Integer Factorization - Integer Factor ≤ k - Integer Multiplication - Matrix Multiplication - Permanent - Square Root mod n

Sets and partitions: Set Cover

Uncategorized problems: Boolean Matrix Multiplication - 3SUM - Boolean Convolution - Boolean Sorting - Discrete Logarithm - Equality - k-Local Hamiltonians - k-Round Sorting - Linear Programming - Majority - Parity - Short Implicant - Stochastic Games - Tautology - Threshold(k)

The Problems

#Perfect Matching: Count perfect matchings

The #Perfect Matching problem is to count the number of perfect matchings in a bipartite graph. It is the counting version of Perfect Matching.

Algorithms: ?

Memberships: ∈ #P-complete

Related Problems: #Perfect Matching is equivalent to Permanent.


#SAT: Count satisfying truth assignments

This is the counting version of SAT: given a Boolean formula, compute how many satisfying truth assignments it has.

Algorithms: ?

Memberships: ∈ #P-complete

Related Problems: The version #CNF-SAT (counting version of CNF-SAT) and #3-CNF-SAT also called #3SAT (counting version of 3-CNF-SAT) also are two #P-complete problems.


#WSAT: Weighted SAT

Given a Boolean formula, count the number of satisfying assignments of Hamming weight . This is the canonical problem for #WT.

Algorithms: ?

Memberships: ∈ #WT


3SUM: Do there exist members of a list satisfying ?

Given a list of integers, do there exist elements such that ? This problem is important enough to computational geometry that there is defined a class of problems to which it is reducible: 3SUM-hard.

Algorithms: ?

Memberships: ?


Approximate Shortest Lattice Vector: Does the shortest vector exceed kn?

Given a lattice L in Zn and an integer n, does the shortest vector of L have (Euclidean) length at most kn?

Algorithms: ?

Memberships: ∈ NPcoNP, P?


Boolean Convolution: Convolution of two n-bit integers.

Compute the convolution of two n-bit integers in binary notation , where the multiplicands are respectively the i-1 and j-1 bits of the two integer inputs, and k is the k-1 bit of the output. It is a Boolean function with n input bits and 2n-1 output bits.

It has monotone circuit complexity (Weiss) and nonmonotone circuit complexity (Furer [Fur07]). means iteratively taking of n until the result is less than 2. Nonmonotone circuits use the discrete Fourier transform (Wegener [Weg87]).

Algorithms: ?

Memberships: ∈ FP
Properties: P-nonuniform?, monotone-nonmonotone gap


Boolean Matrix Multiplication: Monotone product of Boolean matrices

Boolean Matrix Multiplication is a Boolean function with 2n2 input bits (two nxn matrices) and n2 output bits (an nxn matrix). The function is defined using the usual row-column rule, but using OR instead of binary addition.

It has monotone circuit complexity of exactly (Pratt [Pra74]), but its nonmonotone circuit complexity is the same as matrix multiplication, presently (Wegener [Weg87]).

Algorithms: ?

Memberships: ∈ FP
Properties: P-nonuniform?, monotone-nonmonotone gap


Boolean Sorting: Sort n input bits.

A Boolean function with n inputs and n outputs that puts the 0s before the 1s. For example, 101 → 011 and 11000 → 00011.

It has monotone circuit complexity (Lamagna and Savage [LS74]) and nonmonotone circuit complexity (Muller and Preparata [MP75]). The nonmonotone circuits use binary rather than unary addition to count the 0 inputs.

The outputs are the Threshold(k) functions in reverse order; in particular, the middle output is Majority.

Algorithms: ?

Memberships: ∈ FP
Properties: O-optimal, symmetric, monotone-nonmonotone gap


Clique-Like: Tardos' Clique-like approximation

Clique-Like is a Boolean function with inputs (an adjacency matrix) and one output.

It has monotone circuit complexity of (Tardos [Tar88]). By contrast it has polynomial nonmonotone circuit complexity, because it reduces to Linear Programming.

Algorithms: ?

Memberships: ∈ P
Properties: monotone-nonmonotone gap


Coloring: Color a Graph So Adjacent Vertices Have Different Colors

The input is a graph, G, with a number of colors, C. The output is whether there exists an assignment of each vertex to one of C colors so that no two adjacent vertices have the same color. If such an assignment exists, we say G is C-colorable. C-coloring is the problem of determining if a graph is C colorable.

Even 3-Coloring is NP hard. For some &epsilon, it is NP hard to even find a 3-coloring where only an &epsilon fraction of edges have the same colors on both sides.

Variations on this problem may also ask for the coloring, or the minimum C so that a graph is C-colorable.

Algorithms: ?

Memberships: ∈ NP-complete



Constraint Satisfaction Problem: Generalized version of satisfiability problems

Given two sets of relations , where is the instance (not to be confused with an instance of CSP) and is the template, over the same vocabulary, where the vocabulary defines the names and arities of allowed relations, is there a mapping such that for all relations , ?

Algorithms: ?

Memberships: NP-complete.

See Also: [FV93].


Discrete Logarithm: Reverse exponentiation

The discrete logarithm problem is to solve for x in the equation ax = b in some number-theoretic abelian group, typically either the group of units of a finite field or an elliptic curve over a finite field. Like the related Integer Factorization, the fastest classical algorithm is the number field sieve, with heuristic time complexity . Also like Integer Factorization, Shor's algorithm solves Discrete Logarithm in quantum polynomial time. In fact, Shor's algorithm solves Discrete Logarithm even in a black-box abelian group, provided that group elements have unique names.

Algorithms: ?

Memberships: ∈ FNPFBQP
Properties: Is a one-way function?


Equality: Are two strings equal?

If Alice has a string and Bob has a string , define EQUALITY(x, y) = 1 if and only if x = y.

Algorithms: ?

Memberships:


Graph Automorphism: Is there a nontrivial automorphism?

Graph Automorphism is equivalent to Graph Isomorphism in the case where the two graphs are identical.

Algorithms: ?

Memberships: ∈ NPcoAM.


Graph Isomorphism: Are two graphs isomorphic?

Given two graphs, are they isomorphic, i.e., is there a bijection between their vertices which preserves edges?

Luks showed that Graph Isomorphism for bounded-valence graphs is in P non-uniformly (the exponent of algorithm's running time depends on the bound). Combining Luks' algorithm with a trick due to Zemlyachenko yields a time complexity upper bound of for graphs with v vertices. However, some practical Graph Isomorphism algorithms, such as NAUTY, seem to run much faster than this rigorous upper bound.

Like Perfect Matching, it is not known to be complete for a natural complexity class.

Algorithms: ?

Memberships: ∈ NPcoAM, P-nonuniform?

Properties: In NP\P but not NP-complete?


Group Non-Membership: Is an element of G a member of a subgroup H?

Defined by [Wat00]. Let be a group, whose elements are represented by polynomial-size strings. We're given a "black box" that correctly multiplies and inverts elements of . Then given elements and , we can asked to find if (the subgroup generated by ).

Algorithms: ?

Memberships: QMA [Wat00].


Hamiltonian circuit: Exists one Hamiltonian circuit?

Given a Graph , exists one Hamiltonian circuit in ?

Algorithms: ?

Memberships: NP-complete


Integer Factorization: Find an integer's prime factors

Algorithms: The fastest known algorithm for integer factorization is the number field sieve. It has heuristic randomized time complexity for inputs with n digits.

On the other hand, Shor's algorithm famously solves Integer Factorization in quantum polynomial time.

Memberships: ∈ FNPFBQP

Properties: In NP\P but not NP-complete?


Integer Factor ≤ k : Is there a factor ≤ k?

With an upper bound on the desired prime factor, this problem is subtly different from Integer Factorization.

Algorithms: The fastest algorithm is either the number field sieve or Lenstra's elliptic curve method, depending on the relative size of n and k. Lenstra's algorithm has heuristic randomized time complexity if n and k have n and k digits, respectively.

Memberships: ∈ NPcoNP


Integer Multiplication: Product of two n-bit integers

Integer Multiplication has an O-optimal linear-time algorithm on a RAM or SMM, but is thought to have O-speedup on Turing machines or P-uniform Boolean circuits.

Algorithms: ?

Memberships: ∈ FP
Properties: P-nonuniform?


k-Local Hamiltonian: Find the smallest eigenvalue of m k-local Hamiltonians acting on n qubits.

Given an n-qubit Hilbert space, as well as a collection H1,...,Hm of Hamiltonians (i.e. Hermitian positive semidefinite matrices), each of which acts on at most k qubits of the space. Also given real numbers a,b such that . Decide whether the smallest eigenvalue of is less than a or greater than b, promised that one of these is the case.

Algorithms: ?

Memberships: ?

Properties:

  • QMA-complete for k = 5 [KSV02].
  • QMA-complete for k = 3 [KR03].
  • QMA-complete for k = 2, under the assumption that PQMA [KKR04].
  • 2-LH has been fully classified by [CM16], similar to Schaefer's Dichotomy Theorem for SAT. See also [PM15], [CMP18] for classifications under additional restrictions.

k-Round Sorting: Sort inputs in ≤ k rounds

There are k-round sorting networks not known to be constructible in deterministic polynomial time which outperform the best-known networks constructible in deterministic polynomial time [GGK03].

Algorithms: ?

Memberships: ?

Properties: P-nonuniform?


Linear Programming: Maximize a linear function with linear constraints

The Linear Programming problem is to maximize a linear function in a convex polytope. It was famously shown to be in FP by Leonid Khachiyan by means of the ellipsoid method. The main algorithms used in practice are simplex and interior-point methods.

Algorithms: ?

Memberships: ∈ FP


Majority: Are most inputs 1?

Majority is a Boolean function with n input bits and 1 output bit. The output is 1 if the majority of input bits are 1. Examples: 001 → 0, 1100 → 1.

MajorityP. Majority REG. Therefore, REGP.

Algorithms: ?

Memberships: ∈ P
Properties: O-optimal, symmetric.

Related Problems: See also Boolean Sorting and the Complexity Zoology entry.


Matrix Multiplication: Multiply two matrices

Multiply two dense matrices over a field . Matrix Multiplication has O-speedup among Strassen-type bilinear algorithms [CW82]. Determining the minimal number of multiplications needed to compute a bilinear form (of which Matrix Multiplication is one) is NP-complete ([Has90]). This suggests that Matrix Multiplication is P-nonuniform over bilinear algorithms if NPcoNP.

If the group-theoretic algorithms of Cohn et al can perform Matrix Multiplication in , then Matrix Multiplication has O-speedup among algorithms of the type they consider [CKSU05].

Algorithms:

Memberships: ∈ FP
Properties: O-speedup?, P-nonuniform?


Parity: Is the number of 1 inputs odd?

Parity is a Boolean function with n inputs and 1 output. The output is 1 if the number of 1 inputs is odd. Examples: 001 → 1, 11011 → 0.

ParityP. Parity FO ([Ajt83] and [FSS84]). Therefore, FOP.

Algorithms: ?

Memberships: ∈ P
Properties: O-optimal, symmetric.

Related Problems: Equals XOR. See the Complexity Zoology entry.


Perfect Matching: Is there a perfect matching?

Perfect Matching is a Boolean function with n2 inputs (an adjacency matrix) describing a bipartite graph and one output which is 1 if the graph has a perfect matching.

Perfect Matching reduces to Linear Programming, and is therefore in P, although specialized algorithms are also known.

It has monotone circuit complexity of (Razborov [Raz85b]) but polynomial nonmonotone circuit complexity.

Perfect Matching is nonuniformly reducible to determinant and is in RNC and [MVV87], [KUW86], but no deterministic NC algorithm is known.

Like Graph Isomorphism, it is not known to be complete for a natural complexity class. There is a randomized or nonuniform log-space reduction of Perfect Matching to Graph Isomorphism [Tor00].

Algorithms: ?

Memberships: ∈ P
Properties: monotone-nonmonotone gap, P-nonuniform?.


Permanent: What is a 0-1 matrix's permanent

The permanent of an n-by-n 0-1 matrix (ai,j) is defined as where σ ranges over all permutations of the numbers 1, 2, ..., n. The value of the permanent is equivalent to #Perfect Matching

Algorithms:

Memberships: ∈ #P

Properties: #P-complete


prodLH: Given a local Hamiltonian, find the minimum energy of a product state.

Similar to k-LH, except instead of searching over all quantum states, solutions are restricted to be product states.
A product state is a tensor product of un-entangled qubits. Individual qubits may be in superposition, but no entanglement. .

Algorithms: ?

Memberships: Since product states have efficient classical descriptions, prodLH is always contained in NP.

Properties:

  • prodLH has been fully classified for 2-qubit terms by [KPTWY24].


Ring Automorphism: Does a ring have a non-trivial automorphism?

A special case of Ring Isomorphism where the two rings investigated are the same, and where we are looking for non-trivial automorphisms.


Ring Isomorphism: Are two rings isomorphic?

Given two rings, are they isomorphic to each other? The counting version of the problem, #RI, asks how many different isomorphisms exist between the two rings.

Algorithms: ?

Memberships: NPcoAM [KS05].


QBF: Quantified Boolean Formula

Given a Boolean formula with universal and existential quantifiers, is it true? Quantified Boolean Formula (QBF) is the canonical PSPACE-complete problem.

Note that [Pap94] calls this problem QSAT to emphasize its relationship to SAT. In particular, any instance of QBF can be written as , where is a Boolean formula as in SAT, and where is either a universal or existential qualifier, depending on whether is even or odd. This characterization lends itself well as a candidate for reductions from two-player games.

Algorithms: ?

Memberships: ∈ PSPACE


Quantum k-SAT: Quantum Analog for SAT

Given a set of measurements, each i of which involves no more than k qubits and accepts with probability Pi, and given the promise that either there exists a state such that the number of accepting measurements is "very large," or that for all states, the number of accepting measurements is very small. We are asked which of the two promise conditions holds.

Algorithms: ?

Properties: QMA-complete for k = 3.

See also: Democritus Lecture 13.


SAT: Is there a satisfying truth assignment?

The SAT problem is to decide whether a given Boolean formula has any satisfying truth assignments. SAT is in NP, since a "yes" answer can be proved by just exhibiting a satisfying assignment.

Algorithms: ?

Memberships:NP-complete


Set Cover: Cover a set with some of its subsets

Given a universe and a family of subsets of , a cover is a subfamily of sets whose union is . In the set covering decision problem, the input is a pair and an integer ; the question is whether there is a set covering of size or less. In the set covering optimization problem, the input is a pair , and the task is to find a set covering that uses the fewest sets.

Algorithms: A simple greedy algorithm yields an -approximation (and hence, -approximation)where is the size of largest subset in and is th Harmonic number.

Set covering cannot be approximated in polynomial time to within a factor of , unless NP has quasi-polynomial time algorithms [Fie98]. In addition, Set covering cannot be approximated in polynomial time to within a factor of , where is a constant, unless PNP. The largest value of is proved in [AMS06].

Memberships: Decision problem ∈ NP-complete, Optimization problem ∈ NP Optimization


= -SAT: Satisfiability with clauses of length

For some natural number , an instance of -SAT is an instance of SAT in conjunctive normal form (CNF) where all clauses are the logical OR of Boolean variables.

Algorithms: ?

Memberships: It is known that 2SAT is in P while 3SAT is in NP-complete. }}


Short Implicant: Is there a short implicant?

Given a DNF expression Φ, is there a conjunction of at most k negated or non-negated literals that implies Φ?

Algorithms: ?

Memberships: GC-complete


Stochastic Games: Is there a first player advantage?

White, Black, and Nature alternate moving a token on the edges of a directed graph. Nature's moves are random. Given a graph, start and target nodes for the token, does White have a strategy which will make the token reach the target with probability ≥ 1/2?

Algorithms: ?

Memberships: ∈ NPcoNP, P?


Tautology: Are all truth assignments satisfying?

Tautology is coNP-complete.

Algorithms: ?

Memberships:coNP

Properties: p-speedup? (If so then NP coNP)


Square Root mod n: Find square roots mod n

The Square Root mod n problem is to solve for x in the equation x2 = a mod N. Rabin noted that Integer Factorization BPP-reduces to Square Root mod n and vice-versa; the problems are equivalent.

Algorithms: ?

Memberships: ∈ FP

Properties: Is a one-way function?


Threshold(k): Are ≥ k inputs 1?

Threshold(k) is a Boolean function with n input bits and one output bit.

Boolean Sorting is equivalent to the n Threshold(k) functions in reverse order. Majority is equivalent to Threshold().

Algorithms: ?

Memberships: ∈ P
Properties: symmetric.


Unique k-SAT: k-SAT with uniqueness promise.

The Unique -SAT problem is a promise problem variant of -SAT, where the promise is that each instance has either no satisfying assignment, or has exactly one satisfying assignment.

Intuitively, adding this promise restricts us to only the hardest instances, as the more satisfying assignments there are, the easier it should be to find one. This intuition is justified by [CIK+03], where it is also shown that if Unique -SAT can be solved in deterministic time for all , then so can -SAT for all .

Algorithms: ?

Memberships: ?