TAFL Assignment
TAFL Assignment
Note: Write answer of each question in clear handwriting. Assignment has to be submitted
on teams and hard copy as well. Name and roll no. should be written on each page.
(a) The set of all strings containing at most one “0” and at most one
“1”. CO1 K4
(b) The set of all strings whose first and last symbols differ.
(c) The set of strings not containing three consecutive zeros.
(d) L = {w: (w) mod 3 }
(e) The set of strings in which total number of 0’s is divisible by 3.
(f) L = {w: (w) mod 3 = 1 and (w) mod 2 = 0}
(g) The set of strings which neither contains consecutive 0’s nor
consecutive 1’s.
(h) The set of strings whose 2nd bit is 1.
(i) L= {w: |w| mod 5 ≠ 0}.
6 Describe Mealy and Moore machines with example. Convert the CO1 K3, K4
given Mealy machine into Moore machine.
CO1 K3, K4
7 Construct a Mealy and Moore machine that determines whether an
input string contains an even or odd number of 1's. The machine
should give 1 as output if an even number of 1's are in the string and 0
otherwise
8 Draw a diagram to show Chomsky classification with types of CO1 K2, K3
grammar used.
C02 K2, K3
9 State the applications and limitations of Finite Automata.