Participants: Eric Osborn (24-924-839), Lu Qiyu (25-927-120), Zhu Haochen (24-919-482)
Task 9

a)
The left branch rejects words with subword and accepts words with odd number of (and also other words). The right branch rejects words with even number of and accepts words with subword (and also other words). If satisfies any of the two options, it will be at least accepted by one branch, and if contains subword and has even number of , then it will be rejected by both branches, and thus rejected by the NFA.
b)
For every λ-transition from a state to a state , we perform the following steps:
- Consider all outgoing transitions from of the form , where and .
- For each such transition, add a new transition .
- Remove the original λ-transition from to , leaving all other -transitions unchanged. Repeat this process until no λ-transitions remain.
c)

Task 10

a)
Since is regular, is also regular.
Let recognize . Construct by reversing all transitions, swapping initial and accepting states.
Construction:
- Take and .
- Add a -transition from each accepting state of to a new state .
- Add -transitions from to all initial states of .
- The accepting states of become the only accepting states.
A word is accepted iff it has the form , where . Thus . is regular.
b)
False. Counterexample: Let and . Clearly, is regular. We show that is non-regular using the Pumping Lemma.
Assume is regular. Then there exists a pumping length such that every word with can be divided into , satisfying:
- for every Choose .
Since , we have for some . According to the Pumping Lemma, for every . However, since , so the two parts are not reverses of each other. This contradicts the Pumping Lemma. is non-regular