Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
1K views
7 pages
Automata Past Papers
BS IT 5th semester
Uploaded by
kainat Mushtaq
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download
Save
Save Automata past papers For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
1K views
7 pages
Automata Past Papers
BS IT 5th semester
Uploaded by
kainat Mushtaq
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save Automata past papers For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
Download
Save Automata past papers For Later
You are on page 1
/ 7
Search
Fullscreen
p™ime: 2 Hrs. 45 8 UNIVERSITY OF THE Py B.S. 4 Years Program : Fifth Se NIAB Paper: Theory of Automata (m7) Course Code: ray 22 ime: 2 HFS 45 Min. ATTEMPT THIS (SUBJECTIVE) ON THE gp TE answer SHEET PROVIDED Q.2. Give short answers Of the following: (5x4=20) a) wi ) Write a note on different Kinds/Classes of Grammars with examples. b) Mak © clear the difference between STG, TG, NFAand FA with suitable examples. ©) Construct a 1, ring Machine for the language abc" where n > -1. 9) Give th it Definition of Cg for the language a" ¢"d" b" where m,n>-1. e) Defi ine Keene's Clouser and Positive Clouser, aio describe relation between both Q.3. Solve the following, (3x10=30) a) Construct an NPDA for the Language PALINDROME b) Prove that following Two FAs are equal. FAy, b A a a vs gxpression and an FA for the “en opp, EVEN, c) Give a RS Scanned with CamScannerUNIVERSITY of THE PUNJAB Fifth (5th) Semester 2020 Examination: B.S.4 Years Program Paper: Theory of Automata Time allowed: 2Hrs&30 min Course Code: IT 301 Max Marks: 50 Attempt this paper on separate Answer Sheet provided. Subjective Type Question#2 (4*5 MARKS) Answer the following Short Questions: a) What are valid and invalid alphabets? Explain with example. b) Build an FA for the language L of strings, define over 3 {a, b}, of odd length. c) Make clear difference between CFG and CNF. d) Define Generalizated Transition Graphs with example. e) Give recursive defin b) n of Defining the language PALINDROME, define over 3=(a, Question#3 (10*3 MARKS) 2) Consider the language L of strings, defined over 5 (a, b}having double a's or double b's. Give the regular expression, recursive definition and draw the automaton for the following language. b) Construct an NFA for b (a+b)* bb and convert “subset construction algorithm’, 4 = into equivalent DFA by using ) Convert the CFG into PDA Sm S+S|S*S|4 Scanned with CamScannerUNIVERSITY OF THE PUNJAB ! Fifth Semester — 2019 ¢ Examination: B.S. 4 Years Program PAPER: Theory of Automata (IT) MAX. TIME: 2 Hrs, 45 Min. Course Code: IT-301 Part-I MAX, MARKS: 50 ATTEMPT THIS (SUBJECTIVE) ON THE SEPARATE ANSWER SHEET PROVIDED Q.3. a) b) qd) f) Questions with short answers. (5x4= 20) a) Give Recursive definition of Regular Expressions. b) Give the definition of CNE and also describe its advantages. ©} Define ambiguity, give an ambiguous gramrnar and also prove it 4) Give comparison among the power of FA, NFA, PDA, NPDA, and Turing Machine. ¢) Discuss the difference between the input tépes of Turing Machine and Post Machine, Questions with long answers. (6x5 = 30) Construct a Turing Machine which will double every ‘b’ in all inputted string over = {a,b} Construct PDA for the language PALINDROME over {c, d}. Construct MOORE machine (an FA with output) which can subtract any two inputted binary strings. Give the Regular Expression and FA for the language ODD-EVEN. Write the CFG for the Language a°b"d"c"; m,n >o Write the Context Sensitive Grammar for language c"a"b"; n >0. Scanned with CamScannerUNIVERSITY OF THE PUNJAB 2018 Exam : B.S. 4 Years Programme }: 2 hrs. & 30 mins. PAPER: Theory of Automata (IT) ‘TIME ALLOWED: Course Code: IT-301 MAX. MARKS: 50. Attempt this Paper on Separate Answer Sheet provided, SUBJECTIVE TYPE Question # 02 nae 2). Give Recursive definition of Regular Expressions 1) Give the definition of CWF and aso describe its advantages. Define ambiguity, give an ambiguous grammar and also prove I. 4) Give comparison among the power of FA, NFA, PDA, NPDA, and Turing Machine. €) Discuss the diference between the input tapes of Turing Machine and Post Machine Question # 03 5°68) 8) Construct a Turing Machine which will double every’ Inall inputted string over {c,d} 4) Construct a PDA forthe language PALINDROME over (c,d }- ©) Construct MOORE machine (an FA with output) which can subtract any two inputted binary strings 4) Give the Regular Expression and FA for the janguage EVEN EVEN. ) Write the CFG for the Language EQUAL 4] Write the Context Sensitive Grammar for language a" bc"; n20. Scanned with CamScannerUNIVERSITY OF THE PUNJAB : Fifth Semester 2017 Examination: B.S. 4 Years Programme 3 Roll No. PAPER: Theory of Automata (IT) TIME ALLOWED: 2 hrs, & 30 mins. “. Course Code: IT-301 MAX. MARKS: 50 Attempt this Paper on Separate Answer Sheet provided. SUBJECTIVE TYPE Question #2 (4* 5 MARKS) Answer the following short questions: 8) Define Ambiguity. Give an example of Ambiguous gremmar and prove it. ') Make clear difference between Determinism and Non-Determinism using suitable examples. ©), Make clear the difference between CFG and CNF. 4) Explain the different between the Unrestricted and Context Sensitive grammars. ©) Give two the smallest possible sets whose Kleene’s Clouser will be same, finite and prove it, Question #3 (S* 6 MARKS) ) Construct a Turing Machine which will delete letter from third cell of input tape, over = (a, b,c} OR > Construct Post Machine for the language c* ba" ; n > 0, b) Convert the Following CFG into CNF: S-alYbYjaZYZa Y-ZZ|aY ZabIY|A 9 the FA for the language ODD-ODD over = {m,n} 4@) Give an FA with OUTPUT (MOORE Machine) which can ADD any two inputted binary strings. For example; if 0000 and 1111 are inputted it will output 1111 . ©) Give the Context Free grammar for the Language EQUAL over 5.= (b, a}. ) Construct a PDA for the Language PALINDROME over (a, b}. Scanned with CamScannerUNIVERSITY @SrF HRStUBARER Fifth Semester 2016 Examination: B.S. 4 Years Programme PAPER: Theory of Automata (IT) TIME ALLOWED: 2 hrs. & 30 mins, Course Code: IT-301 MAX. MARKS: 50 Attempt this Paper on Separate Answer Sheet provided. SUBJECTIVE TYPE exaceedececFececccecece Short Questions [20 Finials Sn oe QUESTION #2 D a) Give the Recursive definition of Regular Expressions, © b) Define the CNF and its advant ¢) Make clear the difference between Determinism S@Pen-Determinism with examples d) What are differences in use/working of i fo used by PDA, Post Machine and ‘Turing Machine’? xe Q yy ence eae Brief Questions [30 Marks] >>>>>>>>>>>>>55995>> 9595 QUEST, g 3 2 struct NPDA for the language PALINDROME. @ Construct a Turin g Machine which can delete the second letter from inputted string. For example if input is axbe the output will be abe. ©) Construct an NFA ford (2 + b)*a D and then convert it imo equivaent DFA by using “subset construction algorithm”, a . www. PuPapersBook.com Scanned with CamScannerTIME ALLOWED: 2h : $30 mins. MAX. MARKS: 50_. 2 we Answer Sheet provided.” * SUBJECTIVE TYPE Shik, . Question #2Answer the ee (495 Marks} ‘ayn the statement of Keene's Theorem, Give the Recursive definitionofthe Reguiar Expressions. VE isKiive the definition of CNF and describe the advantage ofthis grammatical format, _ Va) Give an example of the Context Sencitive Language. CGB) Giiesne comparison of the powers of FA, DPDA, NPDA and Turing Machines. "=. “Question #3 Answér'the téllowing questions brichy: [6 * 5 Marks} es Gonver the following’ CFG iis. Sa arergath Sepa, Pp A=Bia _ e Be ee, bx _ A represents the Null String-here:) ——~ w ive the Regular: iti care and FA for Multiple Line Comments as supported by Q Dag CIC +Hava. jistruct FA, = (FA) 3 (show the pogseeswel) Saf oS Scanned with CamScanner
You might also like
CS402 - Final Term Solved Mcqs With References by Moaaz PDF
PDF
100% (1)
CS402 - Final Term Solved Mcqs With References by Moaaz PDF
31 pages
CS501 Highlight Handout
PDF
No ratings yet
CS501 Highlight Handout
231 pages
Pastpapers 2022
PDF
No ratings yet
Pastpapers 2022
17 pages
Final - BS Theory of Automata 2017
PDF
0% (1)
Final - BS Theory of Automata 2017
2 pages
Cs606 Solved Mcqs Final Term by Junaid
PDF
No ratings yet
Cs606 Solved Mcqs Final Term by Junaid
39 pages
2nd Ed 1 To 3 Exercise Answer and Qutsion Compilers Principles, Techniques, & Tools (Purple Dragon Book) Second Edition Exercise Answers
PDF
No ratings yet
2nd Ed 1 To 3 Exercise Answer and Qutsion Compilers Principles, Techniques, & Tools (Purple Dragon Book) Second Edition Exercise Answers
59 pages
CSC211 Data Structures and Algorithms
PDF
No ratings yet
CSC211 Data Structures and Algorithms
7 pages
Computer Sc. 12th FB Solved MCQs - Nauman Sadaf
PDF
No ratings yet
Computer Sc. 12th FB Solved MCQs - Nauman Sadaf
23 pages
CS401 Collection of Old Papers
PDF
75% (4)
CS401 Collection of Old Papers
25 pages
NAVTTC Computer Operator 03 Months Paper 3
PDF
No ratings yet
NAVTTC Computer Operator 03 Months Paper 3
6 pages
Class 11 Computer Guess (2025)
PDF
100% (2)
Class 11 Computer Guess (2025)
23 pages
Design and Analysis of Algo
PDF
No ratings yet
Design and Analysis of Algo
51 pages
Class 12 Computer Guess (2025)
PDF
No ratings yet
Class 12 Computer Guess (2025)
25 pages
BS - CS (Final Papers GCUF)
PDF
No ratings yet
BS - CS (Final Papers GCUF)
61 pages
CS402 Solved Subjective Final Term by JUNAID
PDF
No ratings yet
CS402 Solved Subjective Final Term by JUNAID
55 pages
Theory of Automata - CS402 Solved Mcqs
PDF
100% (4)
Theory of Automata - CS402 Solved Mcqs
17 pages
CS619 Final Project Final Viva Preparation Filefor Presentation
PDF
No ratings yet
CS619 Final Project Final Viva Preparation Filefor Presentation
49 pages
Data Structures & Algorithm - Final Term
PDF
No ratings yet
Data Structures & Algorithm - Final Term
4 pages
CS402 Grand Quiz Mega File Made by Ans Mughal - Files Preparation Group
PDF
50% (2)
CS402 Grand Quiz Mega File Made by Ans Mughal - Files Preparation Group
71 pages
Data Structures and Algorithms CMP-3112 Solved Past Paper-2019
PDF
100% (1)
Data Structures and Algorithms CMP-3112 Solved Past Paper-2019
6 pages
11 Class Computer Chapter 3 (Short Questions + Long Questions)
PDF
No ratings yet
11 Class Computer Chapter 3 (Short Questions + Long Questions)
9 pages
DLD Final Paper Total
PDF
No ratings yet
DLD Final Paper Total
17 pages
Object-Oriented-Programming-C-MCQs (IUB)
PDF
100% (3)
Object-Oriented-Programming-C-MCQs (IUB)
15 pages
CS602 Finalterm Solved MCQs With References by Moaaz
PDF
100% (1)
CS602 Finalterm Solved MCQs With References by Moaaz
40 pages
12th Computer Science Guess Papers +subjective + MCQs by Urdu Books
PDF
No ratings yet
12th Computer Science Guess Papers +subjective + MCQs by Urdu Books
28 pages
TOC Question Paper
PDF
67% (3)
TOC Question Paper
3 pages
The Islamia University of Bahawalpur, Pakistan: Al-Noor Post Graduate College Head Rajkan
PDF
100% (2)
The Islamia University of Bahawalpur, Pakistan: Al-Noor Post Graduate College Head Rajkan
2 pages
Virtual University Project - SRS
PDF
No ratings yet
Virtual University Project - SRS
25 pages
Theory of Automata - CS402 Mid Term Paper
PDF
100% (1)
Theory of Automata - CS402 Mid Term Paper
6 pages
CS401 - Short Notes Chapter 1
PDF
100% (2)
CS401 - Short Notes Chapter 1
7 pages
Chapter 7: Kleene's Theorem: Regular Expressions, Finite Automata, Transition Graphs Are All The Same!!
PDF
No ratings yet
Chapter 7: Kleene's Theorem: Regular Expressions, Finite Automata, Transition Graphs Are All The Same!!
48 pages
CS604 Operating Systems Solved MCQs
PDF
67% (3)
CS604 Operating Systems Solved MCQs
6 pages
Digital Logic Design Mid Paper
PDF
100% (1)
Digital Logic Design Mid Paper
1 page
MCQs For Computer Science 10th BISE
PDF
50% (2)
MCQs For Computer Science 10th BISE
6 pages
MCQ 1st Year COMPUTER Chapter 1,2,3,4,5
PDF
100% (1)
MCQ 1st Year COMPUTER Chapter 1,2,3,4,5
1 page
Lecture 3 Ambiguous and Unambiguous Grammar-1
PDF
No ratings yet
Lecture 3 Ambiguous and Unambiguous Grammar-1
26 pages
CS402 Theory of Automata Solved MCQs From Quiz
PDF
80% (10)
CS402 Theory of Automata Solved MCQs From Quiz
3 pages
DLD Paper - 2 - Solution
PDF
100% (1)
DLD Paper - 2 - Solution
20 pages
Example: Consider The Following TG
PDF
No ratings yet
Example: Consider The Following TG
39 pages
DLD 1st Sessional Exam.
PDF
100% (1)
DLD 1st Sessional Exam.
1 page
CH#11 2nd Year Computer
PDF
No ratings yet
CH#11 2nd Year Computer
1 page
Context Free Grammar
PDF
No ratings yet
Context Free Grammar
5 pages
Computer Science Part 2 Half Book Test Normal Student
PDF
No ratings yet
Computer Science Part 2 Half Book Test Normal Student
3 pages
1st Year Math 1st Test Series
PDF
No ratings yet
1st Year Math 1st Test Series
16 pages
Practical Model Paper Computer Science HSSC-Practical
PDF
No ratings yet
Practical Model Paper Computer Science HSSC-Practical
2 pages
Chapter 3-Danial I. A Cohen-Computer Theory
PDF
53% (17)
Chapter 3-Danial I. A Cohen-Computer Theory
11 pages
Flat PQP
PDF
No ratings yet
Flat PQP
4 pages
Solutions of Chapter 2 Automata Theory by Cohen - Learn To Earn
PDF
No ratings yet
Solutions of Chapter 2 Automata Theory by Cohen - Learn To Earn
10 pages
SRE Final - Exam Paper Spring 2020
PDF
No ratings yet
SRE Final - Exam Paper Spring 2020
5 pages
Theory of Computing Question
PDF
No ratings yet
Theory of Computing Question
6 pages
Assignment DLD
PDF
100% (1)
Assignment DLD
2 pages
Bahria University (Karachi Campus) : Midterm Examination - Spring Semester - 2020 (Computer Programming CSC-113)
PDF
No ratings yet
Bahria University (Karachi Campus) : Midterm Examination - Spring Semester - 2020 (Computer Programming CSC-113)
4 pages
CFG MCQ
PDF
100% (1)
CFG MCQ
7 pages
Chapter 1 Solution PDF
PDF
No ratings yet
Chapter 1 Solution PDF
11 pages
Finite State Models: Language Definitions Preliminaries, Regular
PDF
0% (1)
Finite State Models: Language Definitions Preliminaries, Regular
1 page
Cs402 Mid Term by Juanid
PDF
No ratings yet
Cs402 Mid Term by Juanid
35 pages
Lecture#03, FA, Union, Complement, Intersection, Concatenation, Kleene Star
PDF
No ratings yet
Lecture#03, FA, Union, Complement, Intersection, Concatenation, Kleene Star
59 pages
MTH601-MidTerm-By Rana Abubakar Khan
PDF
No ratings yet
MTH601-MidTerm-By Rana Abubakar Khan
6 pages
Cs302 Assignment Solution 1.dox
PDF
No ratings yet
Cs302 Assignment Solution 1.dox
5 pages
Automata Theory Questions and Answers - Finite Automata: GJHGHJ
PDF
No ratings yet
Automata Theory Questions and Answers - Finite Automata: GJHGHJ
5 pages