TanroDictionary Learn Notebook
EN

Famous theorems & problems · Mathematics

P versus NP problem P対NP問題

ピーたいエヌピーもんだい

The P versus NP problem asks: if a solution is easy to check, is it always easy to find? It is the biggest open question in theoretical computer science.

Formalized
Stephen Cook (1971), Leonid Levin
Status
Unsolved
Prize
US$1 million (Clay Institute)
P versus NP problem
Hand drawn in Inkscape Qef · Public domain

Finding versus checking

Solving a hard Sudoku can take hours, but checking a filled-in grid takes minutes. P is the class of problems solvable quickly; NP is the class whose solutions can be checked quickly.

What does "quickly" mean?

"Quickly" means in time growing polynomially with input size, like n² or n³ steps. Trying every possibility often takes about 2ⁿ steps, which explodes so fast that even the best computers fail for large n.

NP-complete problems

The hardest problems in NP are called NP-complete, such as finding the shortest route through many cities (the travelling salesman problem) or exam timetabling. A fast algorithm for one would solve every NP problem quickly.

Consequences

Most researchers believe P is not equal to NP. If P = NP, much of today's encryption could be broken; if P ≠ NP, some problems are provably hard. It is one of the seven Millennium Prize Problems.

Japanese – English terms

Key terms (Japanese – English – Vietnamese): 計算量 (けいさんりょう) – computational complexity – độ phức tạp tính toán; 多項式時間 (たこうしきじかん) – polynomial time – thời gian đa thức; アルゴリズム (アルゴリズム) – algorithm – thuật toán; NP完全 (エヌピーかんぜん) – NP-complete – NP-đầy đủ; 巡回セールスマン問題 (じゅんかいセールスマンもんだい) – travelling salesman problem – bài toán người bán hàng; 未解決問題 (みかいけつもんだい) – unsolved problem – bài toán chưa giải.

Vocabulary in this article

Related articles