Laboratorium 2020-03-09

by Jerry Sky


343 \cdot 4

in : > 1 1 1 # 1 1 1 1 _ _ _ ...
tmp: >
out: >

(q0,S,D)=(q0,>,>,_,_,_) (q_0, S, D) = (q_0, >, >, \_, \_, \_) (q0,S,S1)={(qo,_,_,,_,_):s_(q1,_,_,,_,_):s=_ (q_0, S, S_1) = \begin{cases} (q_o, \_, \_, \rightarrow, \_, \_): s \neq \_\\ (q_1, \_, \_, \leftarrow, \_, \_): s = \_ \end{cases} (q1,S,S1)={(q1~,1,_,,,_):s=_(halt,_,_,_,_,_):s1 (q_1, S, S_1) = \begin{cases} (\widetilde{q_1}, 1, \_, \leftarrow, \rightarrow, \_): s = \_ \\ (halt, \_, \_, \_, \_, \_): s \neq 1 \end{cases}

(q1~,S,S1)={(q1~,1,_,,,_):s=1(qm,_,_,,,_):s=# (\widetilde{q_1}, S, S_1) = \begin{cases} (\widetilde{q_1}, 1, \_, \leftarrow, \rightarrow, \_): s = 1 \\ (q_m, \_, \_, \leftarrow, \leftarrow, \_): s = \# \end{cases}

in : > 1 1 1 # 1 1 1 1 _ _ _ ...
           ^
tmp: > 1 _ 1 1 _
             ^
out: > _
       ^

(qm,1,1)=(qm,1,1,_,,)(q_m, 1, 1) = (q_m, 1, 1, \_, \leftarrow, \rightarrow)