1,264 views
0 0 votes
Construct a PDA for set of strings over {a,b,c,d} such that

L={ a^i b^j c^k d^l / i=k or j=l , i,j,k,l >=1}

2 Answers

0 0 votes

 

This a NCFL.

L={ a^i b^j c^k d^l / i=k or j=l , i,j,k,l >=1} Then This Language can be written like this

L = {a^i b^j c^i d^l  ∪  a^i b^j c^k d^j  } Here

L1 =   {a^i b^j c^i d^l}

L2 = { a^i b^j c^k d^j }

Then PDA  Will be 

0 0 votes
We can construct a PDA for this one like- 1 pda which compares a's and c's and another one for b's and d's and Union them(or) so its acceptable by NDCFL

Another possibility- If we put condition like i=k AND j=l then at the same time we can't compare both so this one is not CFL and NDPDA or DPDA for this
Position:
Show:

Related questions

0 0 votes
1 1 answer
892
892 views
0 0 votes
1 1 answer
1.2k
1.2k views
Abhisek Tiwari 4 asked Nov 6, 2018
1,176 views
Consider Ldf set all languages accepted by DPDA by final state,Lef set of all languages accepted by DPDA by Empty stack ThenA)Ldf proper subset of Lef.B)Ldf = Lef.C)Lef ...
0 0 votes
0 0 answers
293
293 views
Bhupendra asked Oct 13, 2018
293 views
Consider the below mentioned PDA M1 (Q, ∑, Г, δ, q0, Z, F) which accepts thelanguage L.Where:Q={q0, q1, q2, q3, q4}Σ={a,b}Г={a,b,Z}Z=initial pushdown symbolF=set of final...