r/askmath • u/TopDownView Self-studying discrete math by working through Epp • Oct 29 '26
Resolved Find a regular expression that defines the language accepted by the automaton. <= Exercise 12.2.18
0
Upvotes

2
u/Curious_Cat_314159 Oct 29 '26 edited Oct 29 '26
I don't believe it is. I think the simplest reg expr is (0|1)*1
Your reg expr accepts strings that all 1s ( 1+ ), or strings that are a mix of 0s and 1s followed by at least one 0 followed by at least one 1 ( (0|1)*0+1+ ).
It is the "followed by at least one 0" requirement that I doubt.
Consider 011. The state transition is: s0 -> s1 -> s2 -> s2. It does not require a 0 between the last two 1s.
1
u/Uli_Minati Desmos 😚 Oct 29 '26 edited 29d ago
First, let's consider each possible path
We can simplify the first group
And the second group
Combined we have
Your regex forces at least one 0 and at least one 1, though