P versus NP

P versus NP remains unresolvedEvidence checked

Subjects: Computational complexity

Collections: Millennium Prize Problems · Limits of computation

Reading depth

The problem

You have a tangle of rules for a guest list. Checking a proposed list is easy. Must there also be a fast way to find a list that works—or decide that none can?[1] [2]

Checking a proposed guest list One toy 2-SAT example. The supplied choices are Ana attends, Bo does not attend, and Cy attends. Rule one requires at least Ana or Bo: Ana attends, so it passes. Rule two requires Cy if Ana attends: both attend, so it passes. Rule three forbids Bo and Cy attending together: Bo does not attend, so it passes. This demonstrates checking one answer. This 2-SAT family has an efficient solving algorithm; the example does not illustrate inherently difficult search or establish anything about P versus NP. One proposed list · a toy 2-SAT example Ana Bo Cy yes no yes At least Ana or Bo attends Ana attends only if Cy does Bo and Cy cannot both attend Ana is attending Cy is attending Bo is staying out Checking a proposed guest list One toy 2-SAT example. The supplied choices are Ana attends, Bo does not attend, and Cy attends. Rule one requires at least Ana or Bo: Ana attends, so it passes. Rule two requires Cy if Ana attends: both attend, so it passes. Rule three forbids Bo and Cy attending together: Bo does not attend, so it passes. This demonstrates checking one answer. This 2-SAT family has an efficient solving algorithm; the example does not illustrate inherently difficult search or establish anything about P versus NP. One proposed list · a toy 2-SAT example Ana Bo Cy yes no yes At least Ana or Bo attends Ana attends only if Cy does Bo and Cy cannot both attend Ana is attending Cy is attending Bo is staying out
Scope

Decision problems on finitely encoded inputs, with deterministic running time bounded by a polynomial in input length. The bound concerns worst-case scaling across all input sizes; it need not make an algorithm practical.

What remains open

No proof settles whether fast checking always comes with fast solving. Trying every possible answer can be slow, but that does not show that every clever method must be slow.[1] [2]

Why it matters

Many useful tasks involve finding a plan that satisfies rules. An answer would tell us whether difficulty finding such plans can reflect a fundamental limit, rather than a missing algorithm.[2]

Research directions

2 directions to explore

Sources

  1. P vs NP Clay Mathematics Institute
    Notes on P vs NP

    Official current listing marks the problem unsolved and introduces the distinction between checking a supplied solution and finding one.

  2. The P versus NP Problem Stephen Cook · Clay Mathematics Institute
    Notes on The P versus NP Problem

    Official problem description defines input length, worst-case polynomial time, certificates, reductions and NP-completeness; explains search, circuit lower bounds and scoped consequences for mathematics and cryptography. Its historical research bounds are not used as a current update.

  3. A linear-time algorithm for testing the truth of certain quantified Boolean formulas Bengt Aspvall, Michael F. Plass and Robert Endre Tarjan · 1979-03-15
    Notes on A linear-time algorithm for testing the truth of certain quantified Boolean formulas

    Original algorithm paper contrasts polynomial-time 2-SAT with NP-complete 3-SAT. This established tractable case illustrates why enumerating all assignments is not necessary for every satisfiability problem. The original paper is available in this university-hosted copy.

  4. CSC 463 Problem Set 4: 2-SAT and implication graphs Stephen Cook · University of Toronto
    Notes on CSC 463 Problem Set 4: 2-SAT and implication graphs

    Official course exercise gives a graph criterion for 2-SAT: unsatisfiability requires a directed cycle containing both a variable and its negation. The criterion provides an accessible route to polynomial-time solving by graph reachability. The course year and assignment due date are not treated as publication dates.

Related problems

Suggest a correction