Professional Documents
Culture Documents
Roll No. I. I I I I I I I I I I I
S. No. ofQuestionPaper 6075
m
Name of the Paper Theory of Computation (CSHT-511)
co
Name of the Course : B.Sc. (Hons.) Computer Science
Semester :V
a.
Duration : 3· Hours Maximum Marks : 75
iy
(Write your Roll No. on the top immediately on receipt of this question paper.)
un
Question No. 1 (Section A) is compulsory.
sD
Section A
(c) . Give Regular expression for all words that do not end in a double letter. 2
P.T.O.
Visit https://www.tutorialsduniya.com for Notes, books, programs, question papers with solutions etc.
For any query, contact us at help@tutorialsduniya.com
Visit https://www.tutorialsduniya.com for Notes, books, programs, question papers with solutions etc.
( 2 ) 6075
(e) Design a Deterministic Finite Automata for all strings that either starts with ab or ends
with ba. 3
m
(j) Give the full details of the following Turing Machines : 3
co
>L Land > L u
R
a.
. (g) Convert the following Transition graph into Regular Expression. 4
iy
un
a lsD
ri
S --7 bAiaB ·
A --7 bAA I aS Ia
B --7 aBBibSib
\
Visit https://www.tutorialsduniya.com for Notes, books, programs, question papers with solutions etc.
For any query, contact us at help@tutorialsduniya.com
Visit https://www.tutorialsduniya.com for Notes, books, programs, question papers with solutions etc.
( 3 ) 6075
(i) Show that the language L = {an b an+l where n = 1 2 3 .... } is non-regular. 4
(j) Construct a DFA for the language where every 00 is followed by 1 over alphabet
set {0, 1}. 4
m
(k) Construct PDA :
co
L = {an bn cn+m : n > = 0, m. > = 0} · . 5
a.
Section B
2. (a)
P.T.O.
Visit https://www.tutorialsduniya.com for Notes, books, programs, question papers with solutions etc.
For any query, contact us at help@tutorialsduniya.com
Visit https://www.tutorialsduniya.com for Notes, books, programs, question papers with solutions etc.
( 4 ) 6075
om
.. ·... ~ :· ·.,.·
~~-.. ,; ::,.:
·~ .:.__.:··.>~+·
c
a.
iy
un
3. (a) Build a DFA and give Regular Expression that define L 1 nL2 where :
L 1 : (a+b) b (a+b)*
lsD
L 2 : b (a+ b)*. 6
a
4. (a) Show the Complement of the Context Free Language may or may not be Context
Free. 5
Visit https://www.tutorialsduniya.com for Notes, books, programs, question papers with solutions etc.
For any query, contact us at help@tutorialsduniya.com
(
Visit https://www.tutorialsduniya.com for Notes, books, programs, question papers with solutions etc.
( 5 )
6075
S -7 XaX
om
X -7 aXIbXI". <;
.c
(b) Explain Halting Problem._
2
a
(c)
iy
Give PDA for the language : un
L ={an b2n where n = 1 2 3 .... }. 6
(b) Design a Turing Machine which gives two's complement of a given input in binruy fl,nr
a
(i) (a+b)*ab(a+b)*
Tu
(b) Build a DFA that accepts all words with exactly four letters.
3
P.T.O.
Visit https://www.tutorialsduniya.com for Notes, books, programs, question papers with solutions etc.
l~-----~--~~------------------
For any query, contact us at help@tutorialsduniya.com
j
Visit https://www.tutorialsduniya.com for Notes, books, programs, question papers with solutions etc.
I
( 6 ) 6075
(c) Trace the following PDA for the given string sequence aaaabb. 4
m
co
a.
iy
un
lsD
r ia
to
Tu
1200
Visit https://www.tutorialsduniya.com for Notes, books, programs, question papers with solutions etc.
For any query, contact us at help@tutorialsduniya.com
l
TUTORIALSDUNIYA.COM
Get FREE Compiled Books, Notes, Programs, Question Papers with Solution
etc of the following subjects at https://www.tutorialsduniya.com
DU Programs: https://www.tutorialsduniya.com/programs
TutorialsDuniya App: http://bit.ly/TutorialsDuniyaApp
C++ Tutorial: https://www.tutorialsduniya.com/cplusplus
Java Tutorial: https://www.tutorialsduniya.com/java
JavaScript Tutorial: https://www.tutorialsduniya.com/javascript
Python Tutorial: https://www.tutorialsduniya.com/python
Kotlin Tutorial: https://www.tutorialsduniya.com/kotlin
JSP Tutorial: https://www.tutorialsduniya.com/jsp