0% found this document useful (0 votes)
123 views34 pages

FAFL Pyqs

Uploaded by

Shruti Wali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
123 views34 pages

FAFL Pyqs

Uploaded by

Shruti Wali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 34

18CS54

Model Question Paper-1 with effect from 2019-20 (CBCS Scheme)


USN

Fifth Semester B.E. Degree Examination


AUTOMATA THEORY AND COMPUTABILITY
TIME: 03 Hours Max. Marks: 100

Note: Answer any FIVE full questions, choosing at least ONE question from each MODULE.
Module – 1
Define the following with example. i). Alphabet ii). Power of an alphabet.
(a) 5
iii). Concatenation iv). Language
Define DFSM. Draw a DFSM to accepts
i) decimal strings which are divisible by three.
(b) 10
Q.1 ii) L = {w / w ∈ {a,b}* is the string with even no. of a’s and odd no. of b’s}
iii) L ={w/ w ∈ {a,b}* is the string of a’s and b’s and end with the sub string abb}

(c) With a neat diagram, explain a hierarchy of language classes in Automata Theory 5
OR

Convert the following NDFSM to its equivalent DFSM.

ε a b c
(a)  p {q, r} Φ {q} {r} 8
q Φ {p} {r} {p, q}
*r Φ Φ Φ Φ

(b) Write a note on finite state transducers. 4


Q.2
Minimize the following DFSM.

0 1
→A B A
B A C
(c) C D B 8
*D D A
E D F
F G E
G F G
H G D

Module – 2
(a) Define Regular expression. Write RE for the following Languages 8
i) L = {a 2n b 2m | n>=0, m>=0}
ii) L = {w : |w| mod 3 = 0 where w ∈ {a,b}*}
iii) Language of all strings of 0's and l's that has at least one pair of consecutive 0's
Q.3
(b) State and prove the Pumping Lemma Theorem for Regular languages. 8

Write the Applications of Regular Expressions. 4


(c)
OR
(a) Using Kleen's theorem, prove that any language that can be defined with a Regular 8
Expression can be accepted by some FSM.
(b) Prove that the Regular Languages are Closed Under Complementation and Intersection. 6
18CS54
Q.4 Obtain NDFSM for the Regular expression (a+b)* abb and (a* + ab) aab* 6
(c)
Module – 3
Q.5 (a) Define Context Free Grammer. Write the CFG for the following Languages. 8
i) L={an bn cm: n, m>=0}
ii) L={an bn+2 : n>=0}
iii) L={w ∈ {a,b}*: na(w)=nb(w)}
Define the following with example 6
(b)
i) Leftmost Derivation
ii) Rightmost Derivation
iii) Parse Tree
(c) Define Ambiguous Grammar. Show that following grammar is Ambiguous.
S iCtS | iCtSeS | a 6
C b
OR
Q.6 (a) Discuss Chomsky normal form and Greibach normal form. Convert the following `10
Grammar to Chomsky Normal form.
S  aACa
AB|a
BC|c
C  cC | ε
Define NPDA. Write NPDA for the following languages 10
(b)
i) L = {wcwR | w ∈ { a, b }*}
ii) L={an bn | n>=0}
Module – 4
Q.7 (a) With a neat diagram, explain variants of Turing Machines. 10
Explain Language Acceptability and Design of Turing Machines. 10
(b)
OR
Q.8 (a) Define Turing Machine Model. Explain the representation of Turing Machines. 10
(b) Explain the Model of Linear bound Automation. 10
Module - 5
Q.9 (a) Explain the following with example, 10
i) Decidability ii) Decidable languages iii) Undecidable languages.
(b) Discuss Halting problem and post correspondence problem with respect to TM. 10
OR
Q.10 (a) Write Short notes on 20
i) Growth rate of Function
ii) Classes of P and NP
iii) Quantum Computers
iv) Church Turing Thesis
18CS54

Table showing the Bloom’s Taxonomy Level, Course Outcome and Programme
Outcome

Question Bloom’s Taxonomy Level Course Programme Outcome


attached Outcome
Q.1 (a) L1 CO1 PO1,PO2,PO3,PO4,PO12
(b) L2 CO1 PO1,PO2,PO3,PO4,PO12
(c) L1 CO1 PO1, PO2,PO3,PO4,PO12
Q.2 (a) L3 CO1 PO1, PO2,PO3,PO4,PO12
(b) L1 CO1 PO1, PO2,PO3,PO4,PO12
(c) L3 CO1 PO1, PO2, PO3, PO4, PO12
Q.3 (a) L2 CO2 PO1, PO2,PO3,PO4,PO12
(b) L1 CO2 PO1,PO2,PO3,PO4,PO12
(c) L1 CO2 PO1, PO2,PO3,PO4,PO12
Q.4 (a) L1 CO2 PO1, PO2, PO3, PO4, PO12
(b) L1 CO2 PO1, PO2,PO3,PO4,PO12
(c) L2 CO2 PO1, PO2, PO3, PO4, PO12
Q.5 (a) L2 CO3 PO1, PO2,PO3,PO4,PO12
(b) L1 CO3 PO1, PO2, PO3, PO4, PO12
(c) L3 CO3 PO1, PO2,PO3,PO4, PO12
Q.6 (a) L3 CO3 PO1, PO2, PO3, PO4
(b) L2 CO3 PO1, PO2, PO3, PO4
Q.7 (a) L2 CO4 PO1, PO2, PO3, PO4
(b) L2 CO4 PO1, PO2, PO3 , PO4
Q.8 (a) L2 CO4 PO1, PO2, PO3, PO4
(b) L2 CO4 PO1, PO2, PO3, PO4
Q.9 (a) L2 CO5 PO1, PO2, PO3, PO4
(b) L1 CO5 PO1, PO2, PO3, PO4
Q.10 (a) L1 CO5 PO1, PO2, PO3, PO4

Lower order thinking skills


Bloom’s Remembering( Understanding Applying (Application):
Taxonomy knowledge):𝐿1 Comprehension): 𝐿2 𝐿3
Levels Higher order thinking skills
Analyzing (Analysis): 𝐿4 Valuating (Evaluation): 𝐿5 Creating (Synthesis): 𝐿6
18CS54
Model Question Paper-1 with effect from 2019-20 (CBCS Scheme)
USN

Fifth Semester B.E. Degree Examination


Automata Theory and Computability
TIME: 03 Hours Max. Marks: 100

Note: 01. Answer any FIVE full questions, choosing at least ONE question from each MODULE.

Module – 1
Define the following terms with examples: Alphabet, Power of an alphabet, String,
(a) 10
Concatenation and Languages.
Q.1 Define DFSM. Design a DFSM to accept each of the following languages:
(b) i) L= {wϵ{0,1}* : w has 001 as a substring} 10
ii) L={ wϵ{0,1}* : w has even number of a’s and even number of b’s}
OR

Convert the following NDFSM to DFSM.


δ ϵ a b c
10
(a) ->p {q,r} {} {q} {r}
q {} {p} {r} {p,q}
*r {} {} {} {}

Define distinguishable and indistinguishable states. Minimize the following DFSM.


Q.2 δ a b
->A B F
B G C
*C A C
(b) 10
D C G
E H F
F C G
G G E
H G C
Module – 2
(a) Define Regular expression. Write the regular expression for the following languages: 10
i) Representing for strings of a’s and b’s having odd length.
ii) To accept strings of a’s and b’s such that third symbol from the right is a and
Q.3 fourth symbol from the right is b.
(b) Use the fsmtoregexheuristic algorithm to construct a regular expression that describes 10
L(M).
δ a b
->*1 2 {}
*2 3 1
3 3 1
OR
(a) Show that regular languages are closed under complement and intersection. 8
(b) State and prove pumping lemma theorem for regular languages. And show that the 12
language L={wwr; wϵ{0,1}*) is not regular.
Q.4
18CS54
Module – 3
Q.5 (a) 10
Define CFG. Design CFG for the languages
i) L={02n1m | n>=0,m>=0}
ii) L={0i1j2k |i=j or j=k}
18CS54
Define Ambiguity. Consider the grammar E->E+E|E*E|(E)|id. Find the leftmost, 10
(b)
rightmost derivations and parse trees for the string id+id*id. And show that this
grammar is ambiguous.
OR
(a) Define CNF. Convert the following CFG to CNF. 10
S->aACa
Q.6 A->B/a
B->C/c
C->cC/ϵ
(b) Define PDA. Design a PDA to accept the following language. L={a nbn ; n>=0}. Draw 10
the transition diagram for the constructed PDA. Show the ID’s for the string aaabbb.
Module – 4
(a) With a neat diagram, explain variants of Turing Machines 10
(b) Explain Language Acceptability and Design of Turing Machines. 8
Q.7
OR
(a) Define a Turing machine. Explain the working of a Turing machine. 8

Q.8 Design a Turing machine to accept L={0n1n2n| n>=0}. Draw the transition diagram. 12
(b)
Show the moves made for string aabbcc.
Module – 5
(a) Explain post correspondence problem. 7
Explain Halting problem in Turing machine. 6
(b)
Q.9 (c) Explain recursively enumerable language. 7
OR
(a) Explain Church Turing thesis. 7
(b) Explain Quantum computer. 6
Q.10 Explain Growth rate of function. 7
(c)
18CS54

Table showing the Bloom’s Taxonomy Level, Course Outcome and Programme
Outcome

Question Bloom’s Taxonomy Level Course Programme Outcome


attached Outcome
Q.1 (a) L1 1 1,12
(b) L1,L3 2 1,2,12
(c)
Q.2 (a) L3 2 1,2,12
(b) L1,L3 2 1,2,12
(c)
Q.3 (a) L2 3 1,2,3,4,12
(b) L3 3 1,2,3,4,12
(c)
Q.4 (a) L2 3 1,2,3,4,12
(b) L2,L3 3 1,2,3,4,12
(c)
Q.5 (a) L1,L3 3 1,2,3,4,12
(b) L2 3 1,2,3,4,12
(c)
Q.6 (a) L1,L3 4 1,2,3,4,12
(b) L1,L3 3 1,2,3,4,12
(c)
Q.7 (a) L2,L3 3 1,2,3,4,12
(b) L2 3 1,2,3,4,12
(c)
Q.8 (a) L2 4 1,2,3,4,12
(b) L3 4 1,2,3,4,12
(c)
Q.9 (a) L2 5 1,2,12
(b) L2 5 1,2,12
(c) L2 5 1,2,12
Q.10 (a) L2 5 1,2,12
(b) L2 5 1,2,12
(c) L2 5 1,2,12

Lower order thinking skills


Bloom’s Remembering( Understanding Applying (Application):
Taxonomy knowledge):𝐿1 Comprehension): 𝐿2 𝐿3
Levels Higher order thinking skills
Analyzing (Analysis): 𝐿4 Valuating (Evaluation): 𝐿5 Creating (Synthesis): 𝐿6

You might also like