SLIDE 13 Ck ⊆ 2k−1-MCFLprop
37
1: S → aSāS 2: S → bSb̄S 3: S → ε K = { 1n2n3 | n ≥ 0 } G: l(1) = a, r(1) = āS l(2) = b, r(2) = b̄S l(3) = ε, r(3) = ε K(x13) ← E(x1) E(1x12) ← E(x1) E(ε) ← K(x1l(3), r(3)x2) ← E(x1, x2) E(l(1)x1l(2), r(2)x2r(1)) ← E(x1, x2) E(ε, ε) ← Kʹ(x1x2) ← K(x1, x2) K ⟨(1,R), l, r⟩(K) = { l(w)r(wR) | w ∈ K}
homomorphic replication homomorphisms 2m-MCFG m-MCFG
The earlier result is subsumed by the present result.
38
S ā S a ε S ā a S ā S a ε S b̄ S S b ε ε S b̄ S b ε S b̄ S S b ε ε
1 1 2 2 3 3 3 3 3 3 3 2 1
K(x1l(3), r(3)x2) ← E(x1, x2) E(l(1)x1l(2), r(2)x2r(1)) ← E(x1, x2) E(ε, ε) ← Kʹ(x1x2) ← K(x1, x2) ⟨(1,R), l, r⟩(K) = { l(w)r(wR) | w ∈ K} l(11223)r(32211) = aabbb̄Sb̄SāSāS l(3)r(3) = ε l(123)r(321) = abb̄SāS K(x1, x2) ← E(x1, x2) E(ax1b, b̄Sx2āS) ← E(x1, x2) E(ε, ε) ← Kʹ(x1x2) ← K(x1, x2)
=
Generates strings with nonterminals.
39
S ā S a ε S ā a S ā S a ε S b̄ S S b ε ε S b̄ S b ε S b̄ S S b ε ε
1 1 2 2 3 3 3 3 3 3 3 2 1
⟨(1,R), l, r⟩(K) = { l(w)r(wR) | w ∈ K} K(x1, x2) ← E(x1, x2) E(ax1b, b̄Sx2āS) ← E(x1, x2) E(ε, ε) ← Kʹ(x1x2) ← K(x1, x2) K(x1, x2) ← E(x1, x2) E(ax1b, b̄yx2āz) ← E(x1, x2), Kʹ(y), Kʹ(z) E(ε, ε) ← Kʹ(x1x2) ← K(x1, x2)
L(G, K) S ← Kʹ iterated
substitution 2m-MCFG
∩ Σ*
The construction doubles the dimension, preserves properness.