Hospital Ángeles, Av. Kepler 2143-Torre 1 Piso 19, Consultorio 1992 - Puebla
221 557 8377

[ \beginaligned &\delta(q_0, a, Z_0) = (q_0, XZ_0) \ &\delta(q_0, a, X) = (q_0, XX) \ &\delta(q_0, \varepsilon, X) = (q_1, X) \ &\delta(q_0, \varepsilon, Z_0) = (q_1, Z_0) \ \ &\delta(q_1, c, Z_0) = (q_1, XZ_0) \ &\delta(q_1, c, X) = (q_1, XX) \ &\delta(q_1, \varepsilon, X) = (q_2, X) \ &\delta(q_1, \varepsilon, Z_0) = (q_2, Z_0) \ \ &\delta(q_2, b, X) = (q_2, \varepsilon) \ &\delta(q_2, \varepsilon, Z_0) = (q_3, Z_0) \endaligned ]

So strings are: Example: ( a^2 b^5 c^3 ) → 2 + 3 = 5 ✔ ( a^3 b^3 c^0 ) → 3 + 0 = 3 ✔ ( a^0 b^4 c^4 ) → 0 + 4 = 4 ✔ Empty string? ( i=j=k=0 ) → 0 = 0+0 ✔ but may be excluded if you require positive counts. We push for ( a )’s, then push again for ( c )’s, then pop for ( b )’s.

Let's do clearly:

Start: (q_0), stack (Z_0). Accept: (q_3), stack (Z_0). This PDA accepts ( a^i b^j c^k \mid j = i + k ), with the stack keeping count of (i+k) and popping once per (b) to verify equality.

Pda For A-ib-jc-k Where J - I K

pda for a-ib-jc-k where j i k

Pda For A-ib-jc-k Where J - I K

[ \beginaligned &\delta(q_0, a, Z_0) = (q_0, XZ_0) \ &\delta(q_0, a, X) = (q_0, XX) \ &\delta(q_0, \varepsilon, X) = (q_1, X) \ &\delta(q_0, \varepsilon, Z_0) = (q_1, Z_0) \ \ &\delta(q_1, c, Z_0) = (q_1, XZ_0) \ &\delta(q_1, c, X) = (q_1, XX) \ &\delta(q_1, \varepsilon, X) = (q_2, X) \ &\delta(q_1, \varepsilon, Z_0) = (q_2, Z_0) \ \ &\delta(q_2, b, X) = (q_2, \varepsilon) \ &\delta(q_2, \varepsilon, Z_0) = (q_3, Z_0) \endaligned ]

So strings are: Example: ( a^2 b^5 c^3 ) → 2 + 3 = 5 ✔ ( a^3 b^3 c^0 ) → 3 + 0 = 3 ✔ ( a^0 b^4 c^4 ) → 0 + 4 = 4 ✔ Empty string? ( i=j=k=0 ) → 0 = 0+0 ✔ but may be excluded if you require positive counts. We push for ( a )’s, then push again for ( c )’s, then pop for ( b )’s. pda for a-ib-jc-k where j i k

Let's do clearly:

Start: (q_0), stack (Z_0). Accept: (q_3), stack (Z_0). This PDA accepts ( a^i b^j c^k \mid j = i + k ), with the stack keeping count of (i+k) and popping once per (b) to verify equality. [ \beginaligned &\delta(q_0, a, Z_0) = (q_0, XZ_0)