3 3 votes Let $\mathrm{p}, \mathrm{q}$, and r be three regular expressions over the alphabet $\Sigma=\{a, b\}$.$p=a(a+b)^* b$ $q=(a+b)^* a b(a+b)^*$ $r=a a^* b b^*$Which of the following represents the correct relationship between the languages $L(p), L(q)$, and $L(r)$ generated by these regular expressions?$L(r) \subseteq L(p)$ and $L(p) \subseteq L(q)$ $L(p) \subseteq L(r)$ and $L(r) \subseteq L(q)$ $L(q) \subseteq L(p)$ and $L(p) \subseteq L(r)$ $L(r) \subseteq L(q)$ and $L(q) \subseteq L(p)$ Theory of Computation goclasses theory-of-computation goclasses-cs-dpp goclasses-cs-dpp-day-113 goclasses-toc-practice-questions + – GO Classes 317 views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
1 1 vote Basic conclusion with string like q can generate aba but p can't and p can generate abab but r can't so p is subset of q and r is subset of p OR simply try to iterate the lang then u'll find ans A. ASUR answered Oct 23, 2025 ASUR comment Share Follow 0 reply Please log in or register to add a comment.