3,892 views

1 Answer

Best answer
1 votes
1 votes

A Regular Language is closed under Union and Intersection. And every Regular Language has a DFA.

Here's what I mean:

Union:

Two Languages are said to be closed under Union if the language produced by both the languages (when combined) is still accepted by some DFA.

Example: Let L1 be a language producing w = anb and n,m>=0

                Let L2 be a language producing w = {a,b}* where no. of a and  b is even 

               So, L1 = {aaabbb,abbb,aaaaaab,.....}

                     L2 = {aabb,ab,...}

                     What will be the union of the above languages? Notice L1 can produce almost any combination of 'a followed by b'                         which includes some 'even number of a followed by even number of b'. Thus we can say L2 is a subset of L1.                             Thus the union of L1 and L2 = L1, which we already know has a DFA. Thus Regular grammars are closed under                             Union.

Intersection:

Please refer to the same languages introduced above.

What will be the intersection? Those languages that are common in both L1 and L2. Since we already know L2 is a subset of L1, thus we know that their intersection will result in L2 (since it exists both in L1 and L2), which is why regular grammars are also closed under Intersection

You could try with other examples and see if the final language will also be accepted by some DFA. 

selected by

Related questions

1 votes
1 votes
0 answers
2
chat28 asked Jan 16, 2016
912 views
How do I construct the intersection of two NFAs? Do I need to follow the same cross product method like the DFAs? If so, then how do I handle the epsilon transitions?Plea...
0 votes
0 votes
2 answers
4
rohankrishan asked Jun 29, 2022
251 views
Example: 11110100000111 should be accepted. There are 6 zeros. 6 is divisble by 2 and 3. This machine required at least six states.