Flat 1
Flat 1
Question 1(a) 1(b) 2(a) 2(b) 3(a) 3(b) 4(a) 4(b) 5(a) 5(b)
Number
Marks 4 4 4 4 4 4 4 4 4 4
CO No. 1 3 1 4 4 3 4 4 2 2
Learning L M L M M H H M L L
Level
Note:
1. Attempt all the questions.
2. Write the answers in hard copy (on A4 sheet) using blue/black pen with
your signature on top left and page number on top right corner of each
page of the answer booklet.
3. The time allowed for writing examination is 02 hours. Extra 15 minutes
are allowed for preparing the PDF file of Answer Booklet and submitting
it.
4. Follow the instructions regarding submission of answer booklet as issued
by the examination section.
1. (a) Construct a DFA such that it accepts all the numbers whose binary
representation is divisible by 7. Also, find a DFA equivalent to M= ({q0, q1,
q2}, (a,b), ẟ, q0, {q2}), where ẟ is given by
State a b
→q0 q0, q1 q2
q1 q0 q1
*q2 - q0, q1
2
(b) 𝐿 = {1𝑛 |𝑛 ≥ 0} is regular. Verify and justify your answer. Also, prove
that S -> aSbS | bSaS | ε is ambiguous.
OR
State a b
→q0 q1 q0
q1 q0 q2
q2 q3 q1
*q3 q3 q0
q4 q3 q5
q5 q6 q4
q6 q5 q6
q7 q6 q3
4. (a) Write the design strategy for NFA-ε? Also, convert the following NFA-
ε to NFA.
(b) Prove that Ak = {ai: the Turing machine Mi does not accept ai} is not
Turing recognizable.
Or
Design a Turing Machine “Parity Counter” that outputs 0 or 1, depending on
whether the number of 1’s in the input sequence is even or odd respectively.
2
Roll No. 212 4o05
Dr BR Ambedkar National Institute of Technology,
T Jalandhar
B Tech (Information Technology)
ITPC-210, Formal Languages & Automata Theory
End Semester Examination, May. 2023
Duration: 03 Hour Max. Marks: 50 Date: 17 May 2023
Marks Distribution & Mapping of Questions with Course Outcomes
(COs)
Question 2(a) 2(b)
Number
Marks 8 8 12 6
CO No
Learning M
Level
Note:
Attempt all the questions
2 Write the ans 3 s g blue black pen onh
3 Be specifie answering
Determine the minimized finite state machine for the given language:
L= (a"b:n > 0) U(ba:n > 1)
Also, prove that the obtained machine is minimized.
2. (a) Using the subset construction, convert the given NFA into an
equivalent DFA.
a000
a001
a010
a011
al00