8,578 views
4 votes
4 votes
Non regular language closed under which of the following operations?

I)Union

II) Intersection

III)Complementation

2 Answers

Best answer
24 votes
24 votes

Set of Non-Regular languages is Closed under Complementation operation, But Not closed under Union or Intersection Operation.

1. Union Operation : Set of Non-Regular languages is NOT Closed under Union Operation.

For counter example, Consider  $L = \left \{ a^nb^n | n \geq 1 \right \}$ and $\overline{L}$...Both are Non-regular languages. But $L \cup \overline{L}$ = $\Sigma^*$ which is Regular language.

2. Intersection Operation : Set of Non-Regular languages is NOT Closed under Intersection Operation.

For counter example, Consider  $L = \left \{ a^nb^n | n \geq 1 \right \}$ and $\overline{L}$...Both are Non-regular languages. But $L \cap \overline{L}$ = $\phi$ which is Regular language.

3. Complementation Operation : Set of Non-Regular languages is Closed under Complementation Operation.

Complement of a Non-regular language is always a Non-regular language. 

We can prove it by Contradiction. Let $L$ be a Non-regular language, and let $\overline{L}$ be Regular. Then, Since $\overline{L}$ is Regular, so,  $\overline{\overline{L}} $ = $L$ will be Regular. Which Contradicts our assumption that $\overline{L} $ is non-regular. 

We can say that $L$ is Regular if and only if $\overline{L} $ is Regular.

selected by
0 votes
0 votes
operations on which every type of languages are individually closed under are the following

..1..reversal

..2.. concatenation

..3.. intersection with regular

..4.. difference with regular

..5..inverse homomorphism

 

 

that's it.
edited by

Related questions

0 votes
0 votes
1 answer
1
Mk Utkarsh asked Nov 23, 2017
532 views
if L1 = {anbn| n>=0} is not regular then how come L2 = {an|n>=0} is regular?
1 votes
1 votes
0 answers
2
dragonball asked Aug 16, 2017
530 views
Can anyone elaborate the properties of regular language with non regular under union, intersection, set difference , complement etc.