3,029 views
2 2 votes

 L1={wlwR∣w∈{a,b}∗,l∈{a,b} }

which type of language is this DCFL or NDCFL? (note that l∈{a,b} not {a,b}*)

I feel its NDCFL can you also tell how PDA will look like?

2 Answers

0 0 votes

Yeah this is not only DCFL but also regular. So, FSA is enough. It has to accept the regex of the form 

a(a+b)*a+b(a+b)*b + a + b

• edited by
0 0 votes
no it will be ncfl ryt? . because for w supppose it will be  aaab than l can be any (a+b) so here we can't do the work determiniatically so it will be cfl but not dcfl
Position:
Show:

Related questions

1 1 vote
1 1 answer
563
563 views
0 0 votes
2 2 answers
1.4k
1.4k views
just_bhavana asked Jul 7, 2017
1,446 views
L = {ai bj ck | i = k or j = k}Is it a DCFL or an NCFL?
1 1 vote
2 2 answers
1.4k
1.4k views
Pradyumna Paralikar asked Sep 20, 2014
1,352 views
0 0 votes
0 0 answers
412
412 views
2019_Aspirant asked Dec 9, 2018
412 views
Operator precedence parser even parses ambiguous grammars that are in form of operator grammars. I am inquiring about the nature of the ambiguous grammar. Could the langu...