Back to the 2025 paper

Module 2: Context-Free Languages (CFL) and PDA

20257m

Given the regular expression r=(a+b)r = (a+b)^*

(i) Construct a context-free grammar that generates the language described by rr.
(ii) Explain why the grammar correctly represents the given regular expression.

Similar questions