4.6.28 · HinglishTheory of Computation

PSPACE — Quantified Boolean Formula

1,829 words8 min readRead in English

4.6.28 · Coding › Theory of Computation


YEH HAI KYA


QBF EK GAME KYO HAI



QBF EVALUATE KAISE KAREIN — recursive algorithm scratch se derive karo

Hum chahte hain ek algorithm EVAL(ψ) jo truth value return kare. Isse leading quantifier ke meaning se banao.

Base case. Agar mein koi quantifier nahi hai, toh yeh ek closed Boolean expression hai jisme saare variables fixed hain → bas plug in karo aur compute karo. Cost: polynomial space.

Existential step. . Definition ke anusaar true hai iff ke liye YA ke liye true hai:

Universal step. true hai iff dono values ke liye hold kare:


TQBF PSPACE-COMPLETE KYO HAI (sketch jo tum reconstruct kar sako)


80/20 — actually kya yaad rakhna hai


Flashcards

What does a fully-quantified Boolean formula evaluate to (no free vars)?
Ek single truth value — true ya false.
SAT is which special case of TQBF?
Saare quantifiers existential: .
How is evaluated recursively?
.
How is evaluated recursively?
.
Why is TQBF in PSPACE despite exponential time?
Recursion dono branches mein same memory reuse karta hai; space .
What is TQBF's complexity-class status?
PSPACE-complete (PSPACE ka canonical complete problem).
In the PSPACE-hardness reduction, why add in ?
sirf ek baar aaye → polynomial-size formula (Savitch folding).
What goes wrong with ?
do baar aata hai → formula size har level par double hoti hai → exponential reduction.
Game interpretation of a true QBF?
-player ke paas -player ke against winning strategy hai.
Why isn't ?
mein, par depend kar sakta hai; swap karne se ek sabhi ke liye force ho jata hai.
Recall Feynman: ek 12-saal ke bacche ko samjhao

Socho ek tug-of-war switches ke saath khela ja raha hai. Player YES chahta hai bulb ON rahe; player NO chahta hai OFF rahe. Woh ek fixed order mein baari-baari switches flip karte hain. Chhota word "exists" matlab YES ki baari hai — YES ko sirf ek acchi flip chahiye. "for all" matlab NO ki baari hai, aur YES tabhi jitega jab bulb chahe NO kuch bhi kare ON rahe. Sawaal "kya yeh QBF true hai?" bas poochta hai: kya YES hamesha yeh game jeet sakta hai? Check karne ke liye computer har possible game khelkar dekhta hai — lekin chalaki se wahi scratch paper erase karke reuse karta hai har branch ke liye, toh use zyada paper nahi chahiye (= kam memory), chahe bahut time lage.


Connections

  • SAT and NP-completeness — TQBF, SAT ka PSPACE analogue hai.
  • Savitch's Theorem-folding trick quantifiers ke roop mein reuse hoti hai.
  • PSPACE and Polynomial Space — class jiske liye TQBF complete hai.
  • Polynomial Hierarchy — bounded-alternation QBF levels deta hai.
  • Two-Player Games and Game Trees — QBF as a perfect-information game.
  • NP vs PSPACE — kyun TQBF NP mein nahi maana jata.

Concept Map

generalized by

prenex form

no free vars

true formulas

is

member of

interpreted as

exists player

forall player

true iff

computed by

exists uses OR, forall uses AND

reuses memory per branch

SAT: exists only

QBF: alternating quantifiers

Q1 x1 ... Qn xn phi

True or False value

TQBF language

PSPACE-complete

PSPACE: poly space

Two-player game

Prover wants TRUE

Spoiler wants FALSE

Exists has winning strategy

Recursive EVAL algorithm

Depth-n recursion