



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
jbjbjb j ijijij jij jnjnn jnnin jnini
Typology: Essays (university)
1 / 6
This page cannot be seen from the preview
Don't miss anything!
This question paper contains 4+2 printed pages]
S. No. ofQuestionPaper 6075 Unique Paper Code Name of the Paper Name of the Course Semester
Theory of Computation (CSHT-511) : B.Sc. (Hons.) Computer Science :V
Duration : 3· Hours Maximum Marks : 75 (Write your Roll No. on the top immediately on receipt of this question paper.) Question No. 1 (Section A) is compulsory. Attempt any four questions from Section B. Parts of a question should be attempted together. Assume L = {a, b} for all the questions unless specified otherwise. Section A
(b) Generate a CFG for a* b*.
(c). Give Regular expression for all words that do not end in a double letter. 2
(e) Design a Deterministic Finite Automata for all strings that either starts with ab or ends
L Land > L u^ R
. (g) Convert the following Transition graph into Regular Expression. 4
(h) Convert the following CFG into CNF : (^4) S --7 bAiaB · A --7 bAA I aS I a B --7 aBBibSib
\
( 4 ) 6075
·~^ .. ·.:.... __ ~~-.^ ~:··.>~+·..^ :· ,;^^ ::,.:·.,.·
(
( 5 ) (^6075) (b) Show that the CFG is ambiguous : S -7 XaX
(c) (^) Give PDA for the language : L ={an b2n (^) where n = 1 2 3 .... }. (^6)