362 views
0 votes
0 votes

HI

I am new in preparing gate , I got confused in complementation operation , as per my understanding, if a language is L it's complement L' it won't be having any string present in L which triggers me a doubt suppose a language is L which is regular , which complementation will be having any thing except L suppose it can be recursive or context sensitive but we know complement of regular is closed operation. So which is contradicting me as I am thinking then context sensitive language also having FA as it is under L' (complement). Please clarify it . I think my understanding on complementation is wrong. TIA

2 Answers

0 votes
0 votes
  • If L is a regular language . Then its complement L' must be regular . Becz regular language is closed under complement.

  • Example :

L=a.       -----------> regular

L'=aaa*+  null   ----------> regular

  • If L is regular then it is cfl,csl or recursive also . Becz regular language is subset of all these.

  • Regular$\sqsubseteq$cfl$\sqsubseteq$csl$\sqsubseteq$rec$\sqsubseteq$r.e

edited by
0 votes
0 votes

a doubt suppose a language is L which is regular, which complementation will be having any thing except L suppose it can be recursive or context sensitive  

but we know complement of regular is closed operation...

yes you are absolutely true L' can be recursive or context sensitive or CFL but it isn't mean that L' is not RL

Note that every RL is CFL and Every CFL is CSL and Every CSL is recursive and Every Recursive is Recursive Enumarable but converse is not true

If you didn't understand till now... L is a regular language ===> there exist atleast one DFA ==> interchange the final and non-final states it accepts L'

Related questions

1 votes
1 votes
1 answer
1
saptarshiDey asked Oct 31, 2018
281 views
If L is any Language and L' be its complement. L is CFL. Which of these two statements is true:1. For any value of L, L' is not in CFL2. There exists atleast one value of...
2 votes
2 votes
1 answer
2
h4kr asked Dec 8, 2022
337 views
I have a language L = {ε,a}. What will be $L^{C}$? Will it be Φ or {aa, aaa, aaaa, ...} ?
0 votes
0 votes
1 answer
3
sanju77767 asked Mar 18, 2018
938 views
Complementation of DFA works for all DFA is it true ?Given DFA, a should be followed by a 'b',In the complementation of this DFA the string aab is getting accepted a is g...