reshown by
7,061 views

2 Answers

Best answer
13 votes
13 votes
DCFL are closed under compliment.

Firstly, what do we mean by deterministic CFL?
It means we can make a Deterministic Push Down Machine which accepts this language.

Now, What do we mean by a Deterministic PDA?
It means at any state, we won't have a choice. This is because in a deterministic machine, there are no epsilon moves possible and there will only be unique moves possible for a given symbol. In a nutshell, for a given state and symbol, we can "determine" the next state of the machine without any ambiguity.

Now, to get the complement of DPDA, all you have to do is to toggle the final and non-final states of the PDA. If you do so, your PDA will still stay deterministic. Hence, DCFL are closed under compliment.
0 votes
0 votes
DCFL's are closed under complement

because LANGUAGE L= {a^mb^m/m>=1} is DCFL and  its complement( ∑*-L) is also DCFL

Related questions

1 votes
1 votes
1 answer
1
1 votes
1 votes
2 answers
2
ggwon asked Dec 29, 2022
737 views
L = {$a^{n+m}b^{n}a^{m} | n,m \geq 0$}Is the above language DCFL or CFL ?
0 votes
0 votes
0 answers
3
sripo asked Oct 13, 2018
604 views
L1={an bn | n>=0}L2={bn cn | n>=0}What is L1.L2 ?Is it an b2n cn ?