Reputation: 1
How to create an NFA or eNFA that satisfies the condition
n mod 5 = 0 where n is the number of 1s
I made two NFAs and I am not sure if they are correct. I am confused if how many states should be there and what should be the final state. Am I allowed to loop back to q0 or should I just add another state?
Upvotes: 0
Views: 56
Reputation: 117
From the given two images second diagram is the correct one.
Reason:
first diagram is not satisfy the condition 0 mod 5 = 0
second diagram satisfy all condition for n mod 5 = 0
Upvotes: 0