Tutorial 1 - DFA & NFA
Tutorial 1 - DFA & NFA
Tutorial: 1
Name Roll No. Group No._
Learning Objective: Student shall be able to learn and design finite state machines
4. Design F.S.M. which can accepts string if it contains odd number of 0’s and even
number of 1’s.
6. Design F.S.M. to set of all strings which starts with ‘0’ and ends with 1’s.
8. Design a F.S.M. which accepts strings those have exactly two zero’s anywhere.
10. Draw the NFA for the language L that consists of all the strings over Σ = {a, b}
such that :
starting with “a”
containing substring “aa”
the 3rd last symbol of string is “b”
starting with “a” and ending with “b”
containing “abba” or “baab”