skip to content

What would a proof that P equals NP still fail to make computationally feasible?

level: seniorimportance: nice to knowfreq 28%

answer

  1. several different walls, not one
  2. no algorithm at all is a different axis
  3. the hierarchy above does not all come down
  4. the exponent and the constant still bite
  5. an existence proof names no algorithm

basics

~20 s

Three things stay out of reach: problems with no algorithm at all, problems above NP such as the complete problems for polynomial space, and anything whose new polynomial algorithm carries a degree or a constant so large that the bound is theoretical only.

solid answer

~40 s

The collapse is enormous but it is bounded on three sides. First, undecidable questions are untouched — they are not expensive, they have no algorithm at any budget, so no resource result reaches them. Second, the collapse forces the polynomial hierarchy down to `P`, but it does not imply that polynomial space collapses too, so the complete problems for that larger class stay where they are, and problems proven to need more than polynomial time stay outside `P` regardless. Third, polynomial is not a synonym for practical: an algorithm costing a huge constant times a high power is polynomial and unusable. A proof could also be non-constructive, naming no algorithm at all.

go deeper

for a junior

Remember one thing here: some questions have no algorithm at all, and a result about how long an algorithm takes cannot help with those.

for a middle

Separate the categories cleanly — undecidable, above NP, and polynomial but unusable. Being able to name all three is what distinguishes understanding from the headline.

for a senior

Apply it to a real bound. Be ready to say why an algorithm of high degree with a huge constant is genuinely polynomial and genuinely useless, with an order-of-magnitude figure to back it.

for a principal

The transferable lesson is that asymptotic membership is not a deployment criterion. Guard against roadmap arguments that treat a polynomial result as a delivery date.

## Why the limits are worth knowing The popular framing of the open question is a binary: either everything hard becomes easy, or nothing changes. Neither is right, and the interview value of this material is showing where the boundary actually sits. A collapse would change a great deal — search folding into verification is not a small consequence — but three separate walls stand regardless, and they fall into different categories. ## Wall one: undecidability is a different axis The classes in this discussion are all about **how much** of a resource a solvable problem needs. Undecidable questions are not expensive; they have no algorithm at any budget whatsoever. Asking whether an arbitrary program eventually stops is the standard example, and it is not a member of NP at all — there is no short certificate whose check settles it in general. A polynomial method for every NP problem therefore gives nothing here. The mistake to avoid is imagining a ladder with undecidable problems as the top rung of a resource scale; they are off the scale entirely. ## Wall two: the classes above NP A collapse of NP into P forces the whole polynomial hierarchy down to P — every level of alternating quantifiers above NP comes down with it. It does **not** follow that polynomial space collapses to P. Problems complete for polynomial space, such as deciding a fully quantified Boolean formula, are not put inside P by the assumption. And at least one separation is settled rather than conjectured: problems provably needing more than polynomial time stay outside P whatever happens to NP, which is the material of the inclusions and separations leaf. So even a total collapse leaves a hierarchy of genuinely harder problems above it. ## Wall three: polynomial is not a synonym for fast This is the wall engineers feel. A bound of the form constant times n to a power is polynomial by definition, no matter how ugly the constant and the power are. | Bound | Cost at n = 1000 | Practical? | |---|---|---| | n squared | about 10 to the 6 | Yes | | n to the 6, small constant | about 10 to the 18 | No, on any real machine | | 10 to the 12 times n to the 6 | about 10 to the 30 | Not in any physical sense | | n to the 100 | astronomically beyond that | Purely theoretical | An algorithm of the third kind is a legitimate polynomial-time algorithm and a legitimate proof of the collapse, and it would run no workload. Results like this already exist in other corners of algorithms — asymptotically superior methods whose constants keep them permanently on paper. ## Wall three and a half: the proof might name no algorithm A proof can establish that a polynomial algorithm exists without exhibiting one. In that case a known universal search procedure would be guaranteed to run in polynomial time, since it matches the best algorithm for the problem up to a constant factor plus verification cost — but that constant would be beyond astronomical. The assumption would be dead as a matter of mathematics while no attack existed as a matter of engineering, which is an uncomfortable and genuinely possible state. ## What is left over, and what still changes Beyond the walls sit the things that were never computational problems in the first place: - deciding which objective is the right one to optimise; - getting trustworthy data; - physical limits on measurement and communication. No complexity result speaks to these. It is worth closing the answer by not over-correcting. The three walls do not make the collapse unimportant. If the algorithm were constructive with usable constants, optimisation, synthesis, bounded proof search and every computational security assumption would change at once, which is about as large as an event in this field could be. The right register is precise rather than deflationary: name what would change, then name the three walls, then say which of them would matter to the system on the table.

  • Why does a collapse of NP into P not put the complete problems for polynomial space into P as well?
    Because the assumption forces the alternating-quantifier hierarchy above NP down to P, and that hierarchy is contained in polynomial space but is not known to exhaust it. Whether polynomial space equals P remains a separate open question, so the complete problems for that class are not touched by the assumption.
  • What is a polynomial algorithm that nobody can run, and why does it matter here?
    One whose constant factor or degree is so large that the bound is theoretical — a constant of ten to the twelfth times the sixth power is roughly ten to the thirtieth operations at an input of a thousand. It matters because a proof of the collapse could deliver exactly that: correct, polynomial, and irrelevant to every running system.

saying these in an interview costs you the question

  • Says a collapse would solve the halting problem
  • Claims polynomial space would collapse along with the hierarchy
  • Treats any polynomial bound as practical by definition
  • Assumes any proof must hand over a usable algorithm
  • Swings the other way and says nothing important would change