0 0 votes Let L be a regular language over $\{0,1\}$. Define the reverse of the language $L$ to be the language $L^R = \{ w \in \{0,1\}^* \: \: : \: \: \text{ reverse }(w) \in L\}$, where $\text{reverse}(w)$ denotes the string $w$ in reverse. For example $\text{reverse}(0001)=1000$. Show that $L^R$ is regular. Let $L=\{x \: \: : \: \: x \in \{0,1\}^*$, $x$ contains an odd number of $1's$ and $00$ as a substring$\}.$ Construct a regular expression for the language $L$. Theory of Computation isi2016-pcb-cs regular-language regular-expression descriptive + – go_editor 646 views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
0 0 votes Part $(ii)$ Regular Exp where 00 substring is reached when even $\#1s$ = $((0^*10^*1)^*0^*) 00 (0^* 1 0^* (0^*10^*10^*)^*)$ Regular Exp where 00 substring is reached when odd $\#1s$ = $ (0^* 1 0^* (0^*10^*10^*)^*) 00 (0^* 1 0^* (0^*10^*10^*)^*) $ So resulting Regular Expression with 00 as substring and odd $\# 1s$ = $$\underbrace{((0^*10^*1)^*0^*)}_{Even \quad1s}00\underbrace{(0^* 1 0^* (0^*10^*10^*)^*)}_{Odd \quad1s} + \underbrace{(0^* 1 0^* (0^*10^*10^*)^*)}_{Odd \quad1s}00\underbrace{((0^* 1 0^* (0^*10^*10^*)^*))}_{Even \quad1s}$$ Abhiroop_Sarkar answered Mar 1 Abhiroop_Sarkar comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes Part $(i)$:Source: Introduction to Automata Theory, Languages, and Computation, Hopcroft, Ullman Abhiroop_Sarkar answered Mar 1 Abhiroop_Sarkar comment Share Follow 0 reply Please log in or register to add a comment.