Question: Exercise 7 (10 points). Draw a DFA or an NFA over the alphabet {a,b,c} that only accepts strings with no c's and an even number

 Exercise 7 (10 points). Draw a DFA or an NFA over

Exercise 7 (10 points). Draw a DFA or an NFA over the alphabet {a,b,c} that only accepts strings with no c's and an even number of a's, or an odd number of c's and an odd number of b's. For example, it should accept aa, aba, abbabaa, cbacabcb, cbcca, and abc but not aca, bacc, or aaa. Exercise 8 (10 points). Draw a DFA or an NFA over the alphabet of symbols {0,1,2,3,4,5,6,7,8,9} that only accepts strings that represent numbers that are divisible by 3. For example, it should accept 0, 3, 6, 9, 12, 99, 180, and 3000, but not 1, 2, 50, or 200

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!