Collega i concetti

Confronta due classi

Una classe contiene l'altra? Sono diverse? Scegli una coppia per vedere che cosa sappiamo e che cosa resta aperto.

NP∩coNP⊊R\htmlData{term=NP}{\mathrm{NP}} \cap \htmlData{term=coNP}{\mathrm{coNP}} \subsetneq \htmlData{term=R}{\mathrm{R}}inclusione stretta dimostrata

NP∩coNP\htmlData{term=NP}{\mathrm{NP}} \cap \htmlData{term=coNP}{\mathrm{coNP}} è contenuta in R, e le due classi sono diverse.

Perché: le risposte da dare all'esame
R⊆NP∩coNP\htmlData{term=R}{\mathrm{R}} \subseteq \htmlData{term=NP}{\mathrm{NP}} \cap \htmlData{term=coNP}{\mathrm{coNP}}?
NO

Se fosse R⊆NP∩coNP\htmlData{term=R}{\mathrm{R}} \subseteq \htmlData{term=NP}{\mathrm{NP}} \cap \htmlData{term=coNP}{\mathrm{coNP}}, si avrebbe:

NEXP⊊\subsetneqR⊆?\overset{?}{\subseteq}NP ∩ coNP⊆\subseteqNP

cioè NEXP⊆NP\htmlData{term=NEXP}{\mathrm{NEXP}} \subseteq \htmlData{term=NP}{\mathrm{NP}}, contro NP⊊NEXP\htmlData{term=NP}{\mathrm{NP}} \subsetneq \htmlData{term=NEXP}{\mathrm{NEXP}} (gerarchia nondeterministica: NP⊆NTIME(2n)⊊NTIME(2n2)⊆NEXP\htmlData{term=NP}{\mathrm{NP}} \subseteq \mathrm{NTIME}(2^n) \subsetneq \mathrm{NTIME}(2^{n^2}) \subseteq \htmlData{term=NEXP}{\mathrm{NEXP}}; appunti Lez. 5 §7 e Lez. 10 §4 ✱: la dispensa (cap. 8) e le slide danno la gerarchia nondeterministica solo tra polinomi, NTIME(nc)⊊NTIME(nd)\mathrm{NTIME}(n^c) \subsetneq \mathrm{NTIME}(n^d); il passo NTIME(2n)⊊NTIME(2n2)\mathrm{NTIME}(2^n) \subsetneq \mathrm{NTIME}(2^{n^2}) viene dagli appunti).

Perché ogni passo
  1. NEXP⊆R\htmlData{term=NEXP}{\mathrm{NEXP}} \subseteq \htmlData{term=R}{\mathrm{R}}: una macchina con un budget di tempo si ferma sempre, quindi decide il suo linguaggio (appunti Lez. 10 §4 («ogni k-EXP sta in R»))
  2. R⊆NP∩coNP\htmlData{term=R}{\mathrm{R}} \subseteq \htmlData{term=NP}{\mathrm{NP}} \cap \htmlData{term=coNP}{\mathrm{coNP}}: ipotesi: R⊆NP∩coNP\htmlData{term=R}{\mathrm{R}} \subseteq \htmlData{term=NP}{\mathrm{NP}} \cap \htmlData{term=coNP}{\mathrm{coNP}}
  3. NP∩coNP⊆NP\htmlData{term=NP}{\mathrm{NP}} \cap \htmlData{term=coNP}{\mathrm{coNP}} \subseteq \htmlData{term=NP}{\mathrm{NP}}: per definizione di intersezione
NP∩coNP⊆R\htmlData{term=NP}{\mathrm{NP}} \cap \htmlData{term=coNP}{\mathrm{coNP}} \subseteq \htmlData{term=R}{\mathrm{R}}?
SÌ
NP ∩ coNP⊆\subseteqNP⊆\subseteqDP⊆\subseteqΔ2P⊆\subseteqΣ2P⊆\subseteqΣiP⊆\subseteqPH⊆\subseteqPSPACE⊆\subseteqEXP⊆\subseteqNEXP⊊\subsetneqR

Stretta perché NP⊊NEXP\htmlData{term=NP}{\mathrm{NP}} \subsetneq \htmlData{term=NEXP}{\mathrm{NEXP}} (gerarchia nondeterministica: NP⊆NTIME(2n)⊊NTIME(2n2)⊆NEXP\htmlData{term=NP}{\mathrm{NP}} \subseteq \mathrm{NTIME}(2^n) \subsetneq \mathrm{NTIME}(2^{n^2}) \subseteq \htmlData{term=NEXP}{\mathrm{NEXP}}).

Perché ogni passo
  1. NP∩coNP⊆NP\htmlData{term=NP}{\mathrm{NP}} \cap \htmlData{term=coNP}{\mathrm{coNP}} \subseteq \htmlData{term=NP}{\mathrm{NP}}: per definizione di intersezione
  2. NP⊆DP\htmlData{term=NP}{\mathrm{NP}} \subseteq \htmlData{term=DP}{\mathrm{DP}}: si prende L2=Σ∗L_2 = \Sigma^* (tutte le stringhe), che sta in coNP (appunti Lez. 9 §1)
  3. DP⊆Δ2P\htmlData{term=DP}{\mathrm{DP}} \subseteq \htmlData{term=Δ2}{\Delta_2^{\mathrm{P}}}: bastano due domande all'oracolo NP: x∈L1x \in L_1? e x∈L2x \in L_2? (dispensa cap. 16: «Obviously DP⊆PNP\htmlData{term=DP}{\mathrm{DP}} \subseteq \htmlData{term=P}{\mathrm{P}}^{\htmlData{term=NP}{\mathrm{NP}}}»)
  4. Δ2P⊆Σ2P\htmlData{term=Δ2}{\Delta_2^{\mathrm{P}}} \subseteq \htmlData{term=Σ2}{\Sigma_2^{\mathrm{P}}}: una macchina deterministica è un caso particolare di nondeterministica (dispensa cap. 17; appunti Lez. 9 §3)
  5. Σ2P⊆ΣiP\htmlData{term=Σ2}{\Sigma_2^{\mathrm{P}}} \subseteq \Sigma_i^{\htmlData{term=P}{\mathrm{P}}}: ogni piano contiene i piani precedenti (dispensa cap. 17)
  6. ΣiP⊆PH\Sigma_i^{\htmlData{term=P}{\mathrm{P}}} \subseteq \htmlData{term=PH}{\mathrm{PH}}: PH è l'unione di tutti i piani (dispensa cap. 17)
  7. PH⊆PSPACE\htmlData{term=PH}{\mathrm{PH}} \subseteq \htmlData{term=PSPACE}{\mathrm{PSPACE}}: ogni piano si decide in spazio polinomiale (dispensa cap. 17.1, Proposizione «PH⊆PSPACE\htmlData{term=PH}{\mathrm{PH}} \subseteq \htmlData{term=PSPACE}{\mathrm{PSPACE}}»)
  8. PSPACE⊆EXP\htmlData{term=PSPACE}{\mathrm{PSPACE}} \subseteq \htmlData{term=EXP}{\mathrm{EXP}}: SPACE(f)⊆TIME(kf)\mathrm{SPACE}(f) \subseteq \mathrm{TIME}(k^f): si contano le configurazioni (dispensa cap. 10; slide Lez. 5)
  9. EXP⊆NEXP\htmlData{term=EXP}{\mathrm{EXP}} \subseteq \htmlData{term=NEXP}{\mathrm{NEXP}}: deterministico⊆nondeterministico\text{deterministico} \subseteq \text{nondeterministico} (appunti Lez. 10 §4)
  10. NEXP⊆R\htmlData{term=NEXP}{\mathrm{NEXP}} \subseteq \htmlData{term=R}{\mathrm{R}}: una macchina con un budget di tempo si ferma sempre, quindi decide il suo linguaggio (appunti Lez. 10 §4 («ogni k-EXP sta in R»))
R=NP∩coNP\htmlData{term=R}{\mathrm{R}} = \htmlData{term=NP}{\mathrm{NP}} \cap \htmlData{term=coNP}{\mathrm{coNP}}?
NO

un'inclusione tra le due è esclusa, quindi non possono essere uguali.

Le risposte sono calcolate dalle inclusioni e dalle separazioni della mappa, con le regole del corso: passaggio ai complementi, R=RE∩coRE\htmlData{term=R}{\mathrm{R}} = \htmlData{term=RE}{\mathrm{RE}} \cap \htmlData{term=coRE}{\mathrm{coRE}}, collasso di PH (Teorema 17.9), padding (Teorema 20.1). "Solo se" vuol dire che la risposta dipende da una questione aperta.

Definizioni e problemi delle due classi
AspettoRNP ∩ coNP
Che cos'èLinguaggi ricorsivi (decidibili)NP∩coNP\htmlData{term=NP}{\mathrm{NP}} \cap \htmlData{term=coNP}{\mathrm{coNP}}: problemi con una prova corta in entrambi i versi
Forma della risposta sìmacchina che si ferma sempresia ∃y R(x,y)\exists y\, R(x,y) sia ∀y R′(x,y)\forall y\, R'(x,y), con due relazioni diverse
Chiusa per complementosìsì (l'intersezione di una classe con la sua co-classe)
Problemi completiNon si parla di completezza in R nel corso.Non se ne conoscono: NP∩coNP\htmlData{term=NP}{\mathrm{NP}} \cap \htmlData{term=coNP}{\mathrm{coNP}} non è una classe "sintattica" come DP.
Fontidispensa cap. 1.5, 22; appunti Lez. 10 §4, §7dispensa cap. 14; appunti Lez. 4 §7, Lez. 8 §8, Lez. 9 §1