Write the grammar for the regular expression a*b*
Write the grammar for the regular expression a*b*
- A.
S → AB, A → aA | bB | ϵ, B → bB |aA | ϵ
- B.
S→ AB, A → aA | ϵ, B → bB | ϵ
- C.
S → ab | ϵ, A → aA | ϵ, B → bB | ϵ
- D.
None of these
Attempted by 146 students.
Sign up free to check your answer
Sign up freeLoading lesson…