1 votes 1 votes Find a regular expression for $L =$ {$vwv: v, w ∈${$a, b$}$^*, |v| =2$}. Theory of Computation peter-linz peter-linz-edition4 regular-expression theory-of-computation regular-language + – Naveen Kumar 3 asked Mar 31, 2019 Naveen Kumar 3 239 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes $L$ = { $vwv$ : $v,w$ ∈ $(a+b)^* $ , $|v| = 2 $ } $|v| = 2 $ leaves us with only 4 choices for $v$ : $ aa,ab,bb,ba $ So Regex for this language : $aa(a+b)^* aa$ $+$ $ ab(a+b)^* ab$ $+$ $ba(a+b)^* ba$ $+$ $bb(a+b)^* bb$ Harsh Saini_1 answered Feb 23, 2023 Harsh Saini_1 comment Share Follow See all 0 reply Please log in or register to add a comment.