retagged by
905 views
2 votes
2 votes
Regular Expression for the following Language,

$$\begin{align*} L = \left \{ a^{m}b^{n}\; | m \geq 1,n \geq 1,mn \geq 3 \right \} \end{align*}$$
retagged by

1 Answer

Best answer
8 votes
8 votes
Minimal strings of above language are : $\color{green}{aaab, aabb}$ and $\color{green}{abbb}$ as minimal value of $m$ and $n$ is $1$, and also $mn \ge 3$.

Minimal pairs of $m$ and $n$ that satisfy above constraints are: $(m,n) = (1,3), (3,1)$ and $(2,2)$

So, RegExp would be : $\color{maroon}{aa^*bbbb^* + aaaa^*bb^* + aaa^*bbb^*}$
selected by

Related questions

0 votes
0 votes
1 answer
2
1 votes
1 votes
2 answers
3
Ashish Roy 1 asked Sep 27, 2018
2,125 views
Given two Regular expressions are equal or not ?1) (1+01*0)* 2) 1*(01*0)* 1*Give proper explanation also.
1 votes
1 votes
0 answers
4