regular expressions, notation w|w and w|?

35 Views Asked by At

I'm trying to give regular expressions for the following languages {a, b}

enter image description here

What does w| and w|w mean?

For the first question, I have (b(a+b))*, but I'm lost on the second.

1

There are 1 best solutions below

7
On

Hint for the second question: What are the shortest strings that satisfy the given condition?