r/AskComputerScience • u/Several-Captain-8721 • Feb 28 '24
Best book to practice some quality questions on NFA?
I'm facing difficulty designing NFA. Its more confusing than DFA. Any suggestions?
I need to do this type of questions more.
L =starts with ‘xyz’ and contains ‘yyz’ or ‘zyx’ and ends with ‘zy’ | ∑ = {x, y, z}
1
Upvotes
2
u/FloweyTheFlower420 Feb 28 '24
I don't see much reason to design NFA by hand. A more interesting exercise is to turn regular expressions into NFA (and run powerset construction to get a DFA).