728 views

2 Answers

3 votes
3 votes
The language is both DCFL and CFL. Even every DCFL is CFL.

[ DCFL → Deterministic Context Free Language, CFL → Context Free Language ]

We can design deterministic push-down automata for the above language.

Logic: Start reading i/p →  Push all the a’s inside the stack → on seeing b’s start popping a’s from the stack top →   on seeing a’s start popping a’s from the stack top → If the input string ended and no i/p symbol(a’s) left inside the stack then accept the string else reject.

Related questions

1 votes
1 votes
1 answer
1
1 votes
1 votes
2 answers
3
vishal8492 asked Dec 2, 2016
1,401 views
Isn't WxWr DCFL as X acts as marker so DCFL should be right choice , why is it categorized as CFL and not DCFL?
3 votes
3 votes
2 answers
4