retagged by
12,809 views
12 votes
12 votes

Q1:Prove that Regular Sets are NOT closed under infinite union. (A counterexample suffices).

Ans1: Consider the sets {0}, {01}, {0011}, etc. Each one is regular because it only contains one string. But the infinite union is the set {0i1i | i>=0} which we know is not regular. So the infinite union cannot be closed for regular languages.

Q2: What about infinite intersection?

Ans2: We know that

{0i1i | i>=0} = {0} U {01} U {0011} U ...,

Taking complements and applying DeMorgan's law gives us

{0i1i | i>=0}c = {0}c ^ {01}c ^ {0011}c ^ ...,

Where we are using U to deonte union and ^ to denote intersection. Recall the complement of a regular language is regular, and hence the complement of a not-regular language is not regular. So we can conclude that the left hand side of the equation is not-regular, and each term in the intersection is regular. Therefore infinite intersection does not preserve regularity.

Please explain what is infinite union/ infinite intersection and also explain the answer

This question is from aduni.org

retagged by

2 Answers

5 votes
5 votes
Infinite union means we do union operation infinite (uncountably many) times, same with infinite intersection.
0 votes
0 votes
In your example u can draw dfa for finite string but u can't draw for a^i b^i where i >0, the same applies to the intersection

Related questions

2.1k
views
0 answers
8 votes
Hemant Parihar asked Dec 2, 2017
2,121 views
Let L1,L2,L3..... are infinite sequence of regular languages.$L=\bigcup_{i=1}^{\propto }L_{i}$ which of the following statements is true?A. L ... always context freeC. L is always recursiveD. It can be a non recursively enumerable language
3.2k
views
0 answers
1 votes
MiNiPanda asked Nov 30, 2018
3,165 views
Given M = (Q,Σ,δ,q0,F) a DFA with n states. Prove:The language L(M) is infinite iff it contains a string with length t, where n ≤ t < 2n.Please ... isn't it? Then why doesn't this condition suffice?Please point out where I am going wrong.
5.7k
views
3 answers
8 votes
iarnav asked Sep 16, 2017
5,657 views
a) A DPDA which accepts by empty stack cannot accept all Regular Languages?b) All Regular Languages doesn't satisfy prefix property?
585
views
0 answers
4 votes
Chhotu asked Nov 19, 2017
585 views
Hi Guys,If someone can provide proof or some kind of intuition for following properties then it will be great help. Because many problem could be solved via these ... -property-of-language-families/PS: Mainly for CFL, CSL, REC and RE.