Simplify this regular expression

AI Thread Summary
The discussion revolves around simplifying the regular expression (a U b)*(a U e)b* U (a U b)*(b U e)a*. The participants are encouraged to break down the components, starting with the strings described by (a U b)* and (a U b)*(a U e). They explore whether these two sets of strings are different or the same, analyzing the implications for simplification. The focus is on understanding the structure of the expressions to derive a clearer, more concise version. Ultimately, the goal is to apply these insights to simplify the original regular expression effectively.
compsciguyyy
Messages
1
Reaction score
0
I'm unsure if this regular expression can be simplified, if it can, could you please explain how?

Thank you!

(a U b)*(a U e)b* U (a U b)*(b U e)a*

The e is the empty string, and the U stands for union.
 
Technology news on Phys.org
Start with baby steps.

Describe all the strings in (a U b)*.
Then describe all the strings in (a U b)*(a U e).
Are the two sets different? Are the two sets the same? Why or why not?
Can you learn something from this that you can apply to another part of the problem?
Can you learn something from all this to answer the question?
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...
Back
Top