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

Let l,m,n be 3 regular expressions. Consider the following identities.
I.(lmn)=(lm+mn+nl)II.(mn+m)m=m(nm+m)III.(lmn)=(l+mn+n)IV.(lm)=(l+m)

How many of the above identities are incorrect._________.

Open in App
Solution

Correct: I, IIIncorrect: III, IVI is classical case of bracketed star.LHS=(l+m+n)RHS=(l+m+n+)Since we can get l,m,n separately, RHS is equal to (l+m+n)Therefore I is true.II is also true. Let's see why(mn+m)=m(mn+m)8LHS:=(mn+m)m=(m+mn) (Commutative property of regular expressions)=(mp(+n)q)mqNow using, (pq)p=p(qp),we get=m[(+n)m]=m[m+nm]=RHSII is trueIII is false as we can't get "m" separately form RHS.Similarly, IV is also false as we can't generate"l" separately form LHS.Therefore (2) is the answer.

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Division of Fractions
Watch in App
Join BYJU'S Learning Program
CrossIcon