Tutorial 3 PDF
Tutorial 3 PDF
Tutorial 3 PDF
1. For the FSMs given below, determine which of the strings 0110, 1, 1011010 , 00000 are accepted.
0,1
0 1
a) A B C
0,1
1
1
b) A B
0 0
0 0 0,1
1 1
c) A B C
A B
0
d) 1 1 1 1
0
C D
0
0 0
e) 0 1
0,1
A C
1 1
4. Given the alphabet {a, b, c}, construct FSM’s that accepts strings:
a) that contain an odd number of a’s.
b) that contain abc as a substring.
c) whose symbols are in alphabetical order. (For example, aaabcc and ac are okay; abca and cb are not.)