FORMAL Language 2019 HW-3
Problem 1
Find a regular expression for the set ${a^nb^m: (n+m)$ is odd $}$.
==Solution== Either the number of $a$'s is odd and the number of $b$'s is even or vise versa. A regular expression is $(aa)^(a + b)(bb)^$.
Problem 2
Give regular expressions for the following languages.
1. $L_1={a^nb^m: n\ge 3, m\le 4}$