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

AI LearningWeb Platform

Coursify — Personal AI Course Generator

Struggling with a difficult subject or concept? Turn any engineering topic into a structured course with interactive lessons, quizzes, and research-backed explanations.