← Student tools · Problem 63 · Lecture 11 · Round 2 (30 pts)

NP ⊆ EXPTIME · simulate a nondeterministic TM with a deterministic one

An NTM that runs in time nk on every branch can be simulated by a deterministic TM in time 2O(nk). So NP ⊆ EXPTIME.

CLO-3R2·30 pts · R2.12L11
🔊 NarrationThe NTM tree-exploration argument, time analysis, a 3-SAT worked example, and the PSPACE corollary.
🔊 Listen
NP ⊆ EXPTIME (Sipser §7.2)

Every NP language can be decided by a deterministic Turing machine running in time 2O(nk) for some k. Equivalently: every NTM that halts on every branch in time nk can be deterministically simulated in time 2O(nk).

Why anyone cares

This gives the first proven containment in the P ⊆ NP ⊆ EXPTIME chain. Combined with P ⊊ EXPTIME (time hierarchy theorem), it means at least ONE of (P ⊊ NP), (NP ⊊ EXPTIME) is true — we just don't know which.

🔊 Listen
An NTM's computation tree, explored exhaustively Auto-plays
🔊 Listen
Algorithm DSim — simulate NTM N on input x
  1. Let b = maximum number of nondeterministic choices at any step (a constant of N). N runs for at most T = |x|k steps on every branch.
  2. Do a breadth-first traversal of N's computation tree, level by level, up to depth T.
  3. At each leaf (depth T): check if it's an accept configuration. If so, accept and halt.
  4. If no leaf accepts: reject.

Time analysis: the tree has fan-out ≤ b and depth ≤ T, so it has at most bT = b|x|k leaves. Visiting each takes poly(|x|) time. Total: 2O(|x|k). That's EXPTIME.

🔊 Listen
An NTM for 3-SAT on n variables
  1. For i = 1 to n: nondeterministically guess assignment of variable xi (branch ×2).
  2. Deterministically evaluate the formula on the guessed assignment.
  3. Accept iff the formula evaluates to true.

Branching factor b = 2, depth ≤ n. Tree size: 2n leaves. DSim explores all 2n assignments — exactly brute force, exponential in n. For n = 4: tree has 16 leaves, DSim checks all 16.

🔊 Listen