0 votes 0 votes L = (a+b)$\small ^*$b is equivalent to ____________? A. (ab$\small^*$)$\small^+$ B. (a$\small^+$b$\small^*$)$\small^+$ C. b$\small^*$(ab$\small^*$)$\small^*$b D. None Theory of Computation theory-of-computation regular-expression + – D_i_b_y_a prakash asked Aug 13, 2023 D_i_b_y_a prakash 515 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes Answer : C This are some common Expression (a+b)* = (b+a)* = b*(ab*)* =a *(ba*)* = (a*+b*)* = (a+b*)* = (a*+b)* = (a*b*)* = (b*a*)* So (a+b)*b = b*(ab*)*b THE_GODXX answered Aug 14, 2023 THE_GODXX comment Share Follow See all 2 Comments See all 2 2 Comments reply a_believer commented Aug 23, 2023 reply Follow Share can you explain how (a+b)*=b*(ab*)* ?? 0 votes 0 votes AniMan_7 commented Aug 24, 2023 reply Follow Share @a_believer(a+b)* = ε, a, b, aa, bb, ab, ba, aaa…, bbb…, aba… bab… $-$ Set of all strings over the alphabet a, bb*(ab*)* = ε, [ε.a*.ε = a* = ε, a, aa, aaa...],[b*.ε = b* = ε, b, bb, bbb...],[ε.(ab*)* = ε, a, ab, abb, abbb….],[b*.ab* = b*a.ε = b*a = a, ba, bba, bbba, bbb….a, and b*ab* = a, ba, ab, bab, bbab, babb, bbb….abbb...][b*(ab*)* = b*(ab, abab, ababab…...) = bab, bababa…..] $-$ This regular expression also covering all the possibilities of strings over the alphabets a, bSo (a+b)* = b*(ab*)* 2 votes 2 votes Please log in or register to add a comment.