Designing NFAs

Example

$L=\{w \in \{0,1\}^* ~|~ \text{$w$ ends in 010 or 101} \}$

Screen Shot 2022-11-07 at 10.52.37 PM.png

Another Example

Screen Shot 2022-11-07 at 10.53.12 PM.png

$L=\{w \in \{a,b,c\}^*~|~\text{at least one of a, b, and c is not in $w$} \}$

Implementing DFAs and NFAs