List Of NP-complete Problems
   HOME

TheInfoList



OR:

This is a list of some of the more commonly known problems that are NP-complete when expressed as
decision problem In computability theory and computational complexity theory, a decision problem is a computational problem that can be posed as a yes–no question on a set of input values. An example of a decision problem is deciding whether a given natura ...
s. As there are thousands of such problems known, this list is in no way comprehensive. Many problems of this type can be found in .


Graphs and hypergraphs

Graphs occur frequently in everyday applications. Examples include biological or social networks, which contain hundreds, thousands and even billions of nodes in some cases (e.g.
Facebook Facebook is a social media and social networking service owned by the American technology conglomerate Meta Platforms, Meta. Created in 2004 by Mark Zuckerberg with four other Harvard College students and roommates, Eduardo Saverin, Andre ...
or
LinkedIn LinkedIn () is an American business and employment-oriented Social networking service, social network. It was launched on May 5, 2003 by Reid Hoffman and Eric Ly. Since December 2016, LinkedIn has been a wholly owned subsidiary of Microsoft. ...
). * 1-planarity * 3-dimensional matching * Bandwidth problem * Bipartite dimension * Capacitated minimum spanning tree *
Route inspection problem In graph theory and combinatorial optimization, Guan's route problem, the Chinese postman problem, postman tour or route inspection problem is to find a shortest closed path or circuit that visits every edge of an (connected) undirected graph at ...
(also called Chinese postman problem) for mixed graphs (having both directed and undirected edges). The program is solvable in polynomial time if the graph has all undirected or all directed edges. Variants include the rural postman problem. * Clique cover problem * Clique problem * Complete coloring, a.k.a. achromatic number * Cycle rank * Degree-constrained spanning tree * Domatic number *
Dominating set In graph theory, a dominating set for a Graph (discrete mathematics), graph is a subset of its vertices, such that any vertex of is in , or has a neighbor in . The domination number is the number of vertices in a smallest dominating set for ...
, a.k.a. domination number ::NP-complete special cases include the edge dominating set problem, i.e., the dominating set problem in line graphs. NP-complete variants include the connected dominating set problem and the maximum leaf spanning tree problem. * Feedback vertex set * Feedback arc set *
Graph coloring In graph theory, graph coloring is a methodic assignment of labels traditionally called "colors" to elements of a Graph (discrete mathematics), graph. The assignment is subject to certain constraints, such as that no two adjacent elements have th ...
* Graph homomorphism problem *
Graph partition In mathematics, a graph partition is the reduction of a Graph (discrete mathematics), graph to a smaller graph by partition of a set, partitioning its set of nodes into mutually exclusive groups. Edges of the original graph that cross between the g ...
into subgraphs of specific types (triangles,
isomorphic In mathematics, an isomorphism is a structure-preserving mapping or morphism between two structures of the same type that can be reversed by an inverse mapping. Two mathematical structures are isomorphic if an isomorphism exists between the ...
subgraphs,
Hamiltonian Hamiltonian may refer to: * Hamiltonian mechanics, a function that represents the total energy of a system * Hamiltonian (quantum mechanics), an operator corresponding to the total energy of that system ** Dyall Hamiltonian, a modified Hamiltonian ...
subgraphs, forests, perfect matchings) are known NP-complete. Partition into cliques is the same problem as coloring the complement of the given graph. A related problem is to find a partition that is optimal terms of the number of edges between parts. * Grundy number of a directed graph. * Hamiltonian completion * Hamiltonian path problem, directed and undirected. * Induced subgraph isomorphism problem * Graph intersection number * Longest path problem *Maximum bipartite subgraph or (especially with weighted edges) maximum cut. * Maximum common subgraph isomorphism problem * Maximum independent set *Maximum Induced path * Minimum maximal independent set a.k.a. minimum independent dominating set ::NP-complete special cases include the minimum maximal matching problem, which is essentially equal to the edge dominating set problem (see above). * Metric dimension of a graph * Metric k-center * Minimum degree spanning tree * Minimum k-cut * Minimum k-spanning tree * Minor testing (checking whether an input graph G contains an input graph H as a minor); the same holds with topological minors * Steiner tree, or Minimum spanning tree for a subset of the vertices of a graph. (The minimum spanning tree for an entire graph is solvable in polynomial time.) * Modularity maximization *
Monochromatic triangle In graph theory and theoretical computer science, the monochromatic triangle problem is an algorithmic problem on graphs, in which the goal is to partition the edges of a given graph into two triangle-free subgraphs. It is NP-complete but fixe ...
* Pathwidth, or, equivalently, interval thickness, and vertex separation number *Rank coloring * k-Chinese postman * Shortest total path length spanning tree * Slope number two testing *Recognizing string graphs * Subgraph isomorphism problem * Treewidth *Testing whether a
tree In botany, a tree is a perennial plant with an elongated stem, or trunk, usually supporting branches and leaves. In some usages, the definition of a tree may be narrower, e.g., including only woody plants with secondary growth, only ...
may be represented as Euclidean minimum spanning tree * Vertex cover


Mathematical programming

* 3-partition problem * Bin packing problem * Bottleneck traveling salesman * Uncapacitated facility location problem * Flow Shop Scheduling Problem *
Generalized assignment problem In applied mathematics, the maximum generalized assignment problem is a problem in combinatorial optimization. This problem is a generalization of the assignment problem in which both tasks and agents have a size. Moreover, the size of each tas ...
* Integer programming. The variant where variables are required to be 0 or 1, called zero-one linear programming, and several other variants are also NP-complete *Some problems related to Job-shop scheduling *
Knapsack problem The knapsack problem is the following problem in combinatorial optimization: :''Given a set of items, each with a weight and a value, determine which items to include in the collection so that the total weight is less than or equal to a given lim ...
, quadratic knapsack problem, and several variants *Some problems related to Multiprocessor scheduling * Numerical 3-dimensional matching * Open-shop scheduling * Partition problem * Quadratic assignment problem * Quadratic programming (NP-hard in some cases, P if convex) *
Subset sum problem The subset sum problem (SSP) is a decision problem in computer science. In its most general formulation, there is a multiset S of integers and a target-sum T, and the question is to decide whether any subset of the integers sum to precisely T''.'' ...
*Variations on the traveling salesman problem. The problem for graphs is NP-complete if the edge lengths are assumed integers. The problem for points on the plane is NP-complete with the discretized Euclidean metric and rectilinear metric. The problem is known to be NP-hard with the (non-discretized) Euclidean metric.


Formal languages and string processing

* Closest string * Longest common subsequence problem over multiple sequences *The bounded variant of the Post correspondence problem * Shortest common supersequence over multiple sequences *Extension of the string-to-string correction problem


Games and puzzles

* Bag (Corral) *
Battleship A battleship is a large, heavily naval armour, armored warship with a main battery consisting of large naval gun, guns, designed to serve as a capital ship. From their advent in the late 1880s, battleships were among the largest and most form ...
* Bulls and Cows, marketed as Master Mind: certain optimisation problems but not the game itself. * Edge-matching puzzles * Fillomino *( Generalized) FreeCell * Goishi Hiroi * Hashiwokakero * Heyawake *( Generalized) Instant Insanity * Kakuro (Cross Sums) * Kingdomino * Kuromasu (also known as Kurodoko) * LaserTank * Lemmings (with a polynomial time limit) * Light Up * Mahjong solitaire (with looking below tiles) * Masyu * Minesweeper Consistency Problem (but see Scott, Stege, & van Rooij) * Nonograms * Numberlink * Nurikabe *( Generalized) Pandemic * Peg solitaire * n-Queens completion * Optimal solution for the Rubik's Cube * SameGame * Shakashaka * Slither Link on a variety of grids *( Generalized) Sudoku * Tatamibari * Tentai Show *Problems related to Tetris * Verbal arithmetic


Other

* Berth allocation problem * Betweenness *Assembling an optimal
Bitcoin Bitcoin (abbreviation: BTC; Currency symbol, sign: ₿) is the first Decentralized application, decentralized cryptocurrency. Based on a free-market ideology, bitcoin was invented in 2008 when an unknown entity published a white paper under ...
block. * Boolean satisfiability problem (SAT). There are many variations that are also NP-complete. An important variant is where each clause has exactly three literals (3SAT), since it is used in the proof of many other NP-completeness results. * Circuit satisfiability problem * Conjunctive Boolean query * Cyclic ordering * Exact cover problem. Remains NP-complete for 3-sets. Solvable in polynomial time for 2-sets (this is a matching). *Finding the global minimum solution of a Hartree-Fock problem * Upward planarity testing * Hospitals-and-residents problem with couples * Knot genus *
Latin square Latin ( or ) is a classical language belonging to the Italic branch of the Indo-European languages. Latin was originally spoken by the Latins in Latium (now known as Lazio), the lower Tiber area around Rome, Italy. Through the expansion o ...
completion (the problem of determining if a partially filled square can be completed) * Maximum 2-satisfiability *Maximum volume submatrix – Problem of selecting the best conditioned subset of a larger m\times n matrix. This class of problem is associated with Rank revealing QR factorizations and D optimal experimental design. *Minimal addition chains for sequences. The complexity of minimal addition chains for individual numbers is unknown. *
Modal logic Modal logic is a kind of logic used to represent statements about Modality (natural language), necessity and possibility. In philosophy and related fields it is used as a tool for understanding concepts such as knowledge, obligation, and causality ...
S5-Satisfiability * Pancake sorting distance problem for strings *Solubility of two-variable quadratic polynomials over the integers. Given positive integers \textstyle A,B,C, decide existence of positive integers x,y such that Ax^2+By-C=0 *By the same article existence of bounded modular square roots with arbitrarily composite modulus. Given positive integers \textstyle A,B,C \geq 0, decide existence of an integer x\in ,C/math> such that x^2\equiv A\bmod B. The problem remains NP-complete even if a
prime factorization In mathematics, integer factorization is the decomposition of a positive integer into a product of integers. Every positive integer greater than 1 is either the product of two or more integer factors greater than 1, in which case it is a comp ...
of B is provided. * Serializability of database histories *
Set cover The set cover problem is a classical question in combinatorics, computer science, operations research, and Computational complexity theory, complexity theory. Given a Set (mathematics), set of elements (henceforth referred to as the Universe ( ...
(also called "minimum cover" problem). This is equivalent, by transposing the incidence matrix, to the hitting set problem. * Set packing * Set splitting problem *Scheduling to minimize weighted completion time *Block Sorting (Sorting by Block Moves) * Sparse approximation *Variations of the Steiner tree problem. Specifically, with the discretized Euclidean metric, rectilinear metric. The problem is known to be NP-hard with the (non-discretized) Euclidean metric. *Three-dimensional
Ising model The Ising model (or Lenz–Ising model), named after the physicists Ernst Ising and Wilhelm Lenz, is a mathematical models in physics, mathematical model of ferromagnetism in statistical mechanics. The model consists of discrete variables that r ...
Barry Arthur Cipra, "The Ising Model Is NP-Complete", SIAM News, Vol 33, No 6.


See also

* * Karp's 21 NP-complete problems *
List of PSPACE-complete problems Here are some of the more commonly known problems that are PSPACE-complete when expressed as decision problems. This list is in no way comprehensive. Games and puzzles Generalized game, Generalized versions of: * Amazons (game), Amazons * At ...
* Reduction (complexity)


Notes


References

General * . This book is a classic, developing the theory, then cataloguing ''many'' NP-Complete problems. * * * * * Specific problems * * * * * Further information available online a
Richard Kaye's Minesweeper pages
* * * * *


External links


A compendium of NP optimization problems


{{DEFAULTSORT:Np-Complete Problems Mathematics-related lists * Lists of problems