Which of the following is the correct representation of grammar for the given regular expression?
a(aUb)*b
A.
(1) S → aMb
(2) M → e
(3) M → aM
(4) M → bM
B.
(1) S → aMb
(2) M → Mab
(3) M → aM
(4) M → bM
C.
(1) S → aMb
(2) M → e
(3) M → aMb
(4) M → bMa
D. None of the mentioned
a(aUb)*b
A.
(1) S → aMb
(2) M → e
(3) M → aM
(4) M → bM
B.
(1) S → aMb
(2) M → Mab
(3) M → aM
(4) M → bM
C.
(1) S → aMb
(2) M → e
(3) M → aMb
(4) M → bMa
D. None of the mentioned