in Theory of Computation
1,635 views
2 votes
2 votes

Not able to understand whether it is CFL or not due to the condition 'm>=481'.

in Theory of Computation
1.6k views

4 Comments

push for a and pop for b . try this for any string
0
0
here 2 comparison. Can it be done in 1 stack?
0
0

@ ma’am isn’t it regular too?

Like we can have a DFA for 581 m. And then For n=1, we will have 1 path, for n=2 we will have another path and so on till n=581. And then for n=582 we’ll have dead state.

hence regular.

0
0

3 Answers

1 vote
1 vote

L= {a^n b^m |n<= m & 481<=m}

lets take small version of this language

L= {a^n b^m |n<= m & 1<=m}

then strings in above lang are {b,ab,abb,abbbbb, abbbbb.......}

DPDA for lang is given below.

2 Comments

It's not Dpda... it's pda.. please correct this
0
0
On q1 (second state)

q1(b,zo/zo) and q1(€,zo/zo) make violation of Dpda definition...which makes Npda... please read Dpda definition..
0
0
0 votes
0 votes

Please let me know this DPDA is correct for the above language or not.

I will say this language is DCFL.



 

0 votes
0 votes

since a value of m is defined on a certain number which is finite and the comparison of n and m is possible using the stack. So it is CNF

Related questions