What is the regular expression for the following grammar. S→aAb | bAa A→ aAa |…
What is the regular expression for the following grammar.
S→aAb | bAa
A→ aAa | aAb | bAb | bAa | 𝜀
- A.
a((a+b)(a+b))*b + b((a+b)(a+b))*a
- B.
a(aa+bb)*b + b(ab+ba)*a
- C.
a(a+b)*b + b(a+b)*a
- D.
(a + b)*
Attempted by 100 students.
Sign up free to check your answer
Sign up freeLoading lesson…