Wykład 2020-03-03

by Jerry Sky



1. Czy się zatrzyma

Mamy program PP, który mówi czy się zakończy.

Weźmy P′(x)P'(x):

  1. Uruchom PP na wejściu xx
  2. Jeśli PP się zakończy to done
  3. Oth. zwróć 00

2. DTM

Deterministyczna Maszyna Turinga

3+4= ?3+4 =~?

[>][1][1][1][#][1][1][1][1][ ][ ][ ]...

Σ={1,#,⊔,▹,X}\Sigma = \{ 1, \#, \sqcup, \triangleright, X \}

Q={q0}Q = \{ q_0 \}

∀σ∈Σ∖{⊔}:δ(q0,σ)=(q0,σ,→)\forall{\sigma \in \Sigma \setminus \{\sqcup\}}: \delta(q_0, \sigma) = (q_0, \sigma, \rightarrow)
δ(q0,⊔)=(q0,⊔,←)\delta(q_0, \sqcup) = (q_0, \sqcup, \leftarrow)

δ(q1,▹)=(halt,▹,−)\delta(q_1, \triangleright) = (halt, \triangleright, -)
δ(q1,#)=(halt,⊔,−)\delta(q_1, \#) = (halt, \sqcup, -)
δ(q1,1)=(qp,⊔,←)\delta(q_1, 1) = (q_p, \sqcup, \leftarrow)

P,X⊂NPP,X \subset NP
XX - specjalne
NL⊂PNL \subset P

ϕ(x‾)=(x1∨x2∨x3)∧...∧(xn∨¬x1∨x3)=\phi(\overline{x}) = ( x_1 \lor x_2 \lor x_3 ) \land ... \land ( x_n \lor \neg{x_1} \lor x_3 )=
ci∧c2∧...∧ckc_i \land c_2 \land ... \land c_k

ci=(x∨y∨z)c_i = ( x \lor y \lor z )


Problem plecakowy