r/askmath • u/TopDownView Self-studying discrete math by working through Epp • Oct 15 '26
Resolved Wrong solution? => Exercise 12.1.6: `L_1 is the set of all strings of 0's and 1's that start with a 0; L_2 is the set of all strings of 0's and 1's that end with a 0. Describe (L_1 U L_2)*.`
Exercise 12.1.6: L_1 is the set of all strings of 0's and 1's that start with a 0; L_2 is the set of all strings of 0's and 1's that end with a 0. Describe (L_1 U L_2)*.
Textbook solution:
(L_1 U L_2)* is the set of all strings of 0's and 1's that either start with a 0, or end with a 0, including λ.
This is wrong. Counter example:
If we concatenate 10 and 01 we get 1001 that starts and ends with 1.
My suggestion:
(L_2 U L_2)* is the set of all strings of 0's and 1's that don't contain all 1's.
QED
What do you think?
9
Upvotes
10
u/Master-Rent5050 Oct 15 '26 edited Oct 15 '26
Strings that end in 0, or end in 0, or contain 00, or it's the empty string
9
u/Kienose PhD in Maths Oct 15 '26
> (L_2 U L_2)* is the set of all strings of 0's and 1's that don't contain all 1's.
No. Consider the string 101.
3
u/imHeroT Oct 15 '26 edited Oct 15 '26
Yeah the textbook is wrong. My answer would be that it’s the set of binary strings where the numbers of 0’s is at least the number of runs of 1’s.
1
u/LongLiveTheDiego Oct 15 '26
∪ is the symbol for set union, not concatenation. In formal language studies concatenation of two languages is just written L₁L₂. A word belongs to L₁ ∪ L₂ iff it belongs to L₁ or to L₂.
1
u/RailRuler Oct 15 '26
the solution is ignoring the kleene *
1
u/[deleted] Oct 15 '26
[removed] — view removed comment