21 views

Let $\sum = \{0,1\}$

1. Let  $A=\{0^{k}u0^{k}|k\geq 1$ $\text{and}$ $u\in \sum^{*}\}.$ Show that $A$ is regular.
2. Let  $B=\{0^{k}1u0^{k}|k\geq 1$ $\text{and}$ $u\in \sum^{*}\}.$Show that $B$ is not regular.
| 21 views
0
A=0(0+1)*0?

option a is not regular cause there is condition on no.of 0's.

no of 0's before u and after u have to same , which is no possible in regular language.

option b is not regular because of the same reason above and after 1 how can you find the diffrence between u and 0.
by (23 points)