TOC Lab Manual
TOC Lab Manual
PRACTICAL FILE
ON
THE DEGREE OF
BACHELOR OF TECHNOLOGY
(Computer Science & Engineering)
SUBMITTED TO
1|Page
INDEX
S.No. Experiments Page Date Sign/
No. Remarks
1. Construct a DFA for the language L={a m b 4
n : m >= 0, n > 0, n is odd}. Design a DFA that
recognizes that language of any number of
a’s followed by any odd number of b’s.
2. Determine the given finite automata is 5
non-deterministic in nature through JFLAP.
2|Page
8. Construct a Mealy machine which takes a 11
binary number and replaces the first 1 with
a 0 from every substring starting with 1. For
example, 0001001110 becomes
0000000110.
3|Page
EXPERIMENT NO. 1
Problem : Construct a DFA for the language L={a m b n : m >= 0,
n > 0, n is odd}. Design a DFA that recognizes that language of any
number of a’s followed by any odd number of b’s.
Solution :
4|Page
EXPERIMENT NO. 2
Problem : Determine the given finite automata is non-deterministic
in nature through JFLAP.
5|Page
EXPERIMENT NO. 3
Problem : Convert the given NFA as shown in figure into
corresponding DFA.
Solution :
6|Page
EXPERIMENT NO. 4
Problem : Minimize the given DFA.
7|Page
EXPERIMENT NO. 5
Problem : Convert the following DFA into regular grammar.
Solution :
8|Page
EXPERIMENT NO. 6
Problem : Convert the following DFA into regular expression.
Solution :
9|Page
EXPERIMENT NO. 7
Problem : Convert a(b+c)*a to DFA. The string must start with an
‘a’ which is followed by a mix of b’s and c’s repeated in any order.
10 | P a g e
EXPERIMENT NO. 8
Problem : Construct a Mealy machine which takes a binary
number and replaces the first 1 with a 0 from every substring
starting with 1. For example, 0001001110 becomes 0000000110.
Solution :
11 | P a g e
12 | P a g e