wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Consider the following statements:

I. If L1L2 is regular, then both L1andL2 must be regular.

II. The class of regular languages is closed under infinite union.

Which of the above statements is/are TRUE?


Open in App
Solution

If L1L2 is regular, then neither needs to be regular.

Example {anbn}{anbn}c=(a+b) is regular but {anbn} and its complement both are non-regular.

So statement I is false

The class of regular language is not closed under infinite union.

Proof: It is was closed under infinite union then

anbn={ϵ}{ab}{aabb}......... will be infinite union of finite languages (which are regular) and hence will become regular. But we know that {anbnn0} is non-regular.

So II is false

So option (a). neither I nor II is the correct answer

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Percentages and Why Percentages
Watch in App
Join BYJU'S Learning Program
CrossIcon