Which of the following is a correct statement?

Which of the following is a correct statement?
A. { If an bn | n = 0,1, 2, 3 ..} is regular language
B. Strings with equal number of a’s and b’s denies a regular language
C. L (A* B*)∩ B gives the set A
D. None of the mentioned
 
Answer: c
Explanation: If we include A and B in a set and if we write A* it means except then A i.e. B same as B* means except then B i.e. so if we intersect (A*B*) and B then get A because in any regular language. If we write A-B then A-B=A intersection B’ so if we intersect A and B means A-B So the intersection of (A*B*) and B = (BA). intersection B means (BA)-B’ and B’=A so (BA) intersection(A)=A.
 

Tìm kiếm

Back
Top