retagged by
648 views

2 Answers

Best answer
5 votes
5 votes
$|x| \le 4$, And w.r.to languages minimal value of $x = 0$(it cannot be negative)

So, We can consider any string to start and end with $\large \epsilon$. (considering $x = 0$)

So, RegExp would be : $\large \color{maroon}{(a+b)^*}$

For example : String $aa(abab)aa$, $\color{green}{x = aa,\; w = abab}$ can be mapped as $\color{green}{x = \epsilon, w = aaababaa}$
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,128 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