- Quiz 2 Today!
- You will have 25 minutes to complete it
- Office Hours Reminders:
- Be respectful to TAs
- Do not camp out in OH space
- Be mindful of personal hygiene
- Academic Dishonesty Reminder:
- Do not share code or discuss implementation details
- Academic dishonesty can result in getting an XF in the class
- All DFAs are NFAs, but not all NFAs are DFAs.
- NFA can have ε-transition(s) between states.
- NFA states can have multiple transitions going out of them using the same symbol.
- DFAs are computationally cheaper to process, but often harder to read compared to NFAs.
Input:
Output:
Let
While
Mark
For each
Let
Let
If
Let
Let
Let
-
Consider the following regular expressions:
a) a*b? b) (b|c)+ c) a*b?(b|c)+
- Convert each regex to an equivalent NFA
- Note that there are many valid NFAs
- Convert each NFA to its equivalent DFA
- Compare your DFA with the person next to you
- Are they the same?
- Convert each regex to an equivalent NFA
Refer to Piazza @421 for the work/solutions for NFA -> DFA problems.