SlideShare a Scribd company logo
1 of 2
ALPHA COLLEGE OF ENGINEERING &TECHNOLOGY
DEPARTMENT OF COMPUTER ENGINEERING
ASSIGNMENT: 1
COMPILER DESIGN (170701)
B.E. – 7TH
SEM CLASS: CE
LAST DATE OF SUBMISSION: MARKS: 10
1) What are phases of a compiler? Explain the function of each phase with example.
Symbol table is necessary for compiler construction; justify your statement with example.
2)
a) Design a DFA which accepts set of strings such that every string containing 00 as
a substring but not 000 as substring.
b) Construct a FA that will accept those strings of a binary number that are
divisible by three.
c) Build an FA that accepts the words baa, ab and add and no other string longer or
shorter.
d) Write English descriptions for the languages generated by the following regular
expressions: (a | b)* a(a | b | ε)
3)
a. Test whether the following grammar is ambiguous
i. L  L ; L | S
ii. S  a
b. Eliminate all  productions from the following grammars
i)
S  aAB | dA
A  bAc | 
B  dB | 
ii)
S  ABAC
A  aA | 
B  bB | 
C  C
4)
a. Identify and remove unit productions from the following grammars
ii) S  A | bb
A  B | b
B  S | a
iii) S  AB
A  a
B  a | b
C  a
D  a
E  a
b. Remove the useless symbol from the following grammars
i)S  aB | bX
A  BAd | bSX | a
B  aSB | bBX
X  SBD | aBx | ad
ii) A  xyz | Xyzz
X  Xz | xYx
Y  yYy | XY
Z  Zy | z
NOTE: PROVIDE MODERATE NO OF QUESTIONS
FACULTY NAME: Shraddha Patel

More Related Content

What's hot

Problem set2 | Theory of Computation | Akash Anand | MTH 401A | IIT Kanpur
Problem set2 | Theory of Computation | Akash Anand | MTH 401A | IIT KanpurProblem set2 | Theory of Computation | Akash Anand | MTH 401A | IIT Kanpur
Problem set2 | Theory of Computation | Akash Anand | MTH 401A | IIT KanpurVivekananda Samiti
 
Advanced Java (Revised Syllabus) [QP / October - 2012]
Advanced Java (Revised Syllabus) [QP / October - 2012]Advanced Java (Revised Syllabus) [QP / October - 2012]
Advanced Java (Revised Syllabus) [QP / October - 2012]Mumbai B.Sc.IT Study
 
[Question Paper] Introduction To C++ Programming (Revised Course) [April / 2015]
[Question Paper] Introduction To C++ Programming (Revised Course) [April / 2015][Question Paper] Introduction To C++ Programming (Revised Course) [April / 2015]
[Question Paper] Introduction To C++ Programming (Revised Course) [April / 2015]Mumbai B.Sc.IT Study
 
Chomsky & Greibach Normal Forms
Chomsky & Greibach Normal FormsChomsky & Greibach Normal Forms
Chomsky & Greibach Normal FormsRajendran
 
B.Sc.IT: Semester - VI (October - 2013) [IDOL - Revised Course | Question Paper]
B.Sc.IT: Semester - VI (October - 2013) [IDOL - Revised Course | Question Paper]B.Sc.IT: Semester - VI (October - 2013) [IDOL - Revised Course | Question Paper]
B.Sc.IT: Semester - VI (October - 2013) [IDOL - Revised Course | Question Paper]Mumbai B.Sc.IT Study
 
Cs2303 theory of computation november december 2015
Cs2303 theory of computation november december 2015Cs2303 theory of computation november december 2015
Cs2303 theory of computation november december 2015appasami
 
Solve the problem showing all steps. Thoroughly explain how and why you perfo...
Solve the problem showing all steps. Thoroughly explain how and why you perfo...Solve the problem showing all steps. Thoroughly explain how and why you perfo...
Solve the problem showing all steps. Thoroughly explain how and why you perfo...hwbloom60
 
[Question Paper] C++ and Java (Old Course) [June / 2014]
[Question Paper] C++ and Java (Old Course) [June / 2014][Question Paper] C++ and Java (Old Course) [June / 2014]
[Question Paper] C++ and Java (Old Course) [June / 2014]Mumbai B.Sc.IT Study
 
Cs6503 theory of computation april may 2017
Cs6503 theory of computation april may 2017Cs6503 theory of computation april may 2017
Cs6503 theory of computation april may 2017appasami
 
Write declarations for each of the following variables: a. amounts is a...
Write declarations for each of the following variables:       a. amounts is a...Write declarations for each of the following variables:       a. amounts is a...
Write declarations for each of the following variables: a. amounts is a...licservernoida
 
Internet Technologies (October – 2016) [Question Paper | IDOL: Revised Course]
Internet Technologies (October – 2016) [Question Paper | IDOL: Revised Course]Internet Technologies (October – 2016) [Question Paper | IDOL: Revised Course]
Internet Technologies (October – 2016) [Question Paper | IDOL: Revised Course]Mumbai B.Sc.IT Study
 
[Question Paper] Introduction To C++ Programming (Revised Course) [May / 2016]
[Question Paper] Introduction To C++ Programming (Revised Course) [May / 2016][Question Paper] Introduction To C++ Programming (Revised Course) [May / 2016]
[Question Paper] Introduction To C++ Programming (Revised Course) [May / 2016]Mumbai B.Sc.IT Study
 
Types of grammer - TOC
Types of grammer - TOCTypes of grammer - TOC
Types of grammer - TOCAbhayDhupar
 
Internet Technologies (October – 2013) [Question Paper | IDOL: Revised Course]
Internet Technologies (October – 2013) [Question Paper | IDOL: Revised Course]Internet Technologies (October – 2013) [Question Paper | IDOL: Revised Course]
Internet Technologies (October – 2013) [Question Paper | IDOL: Revised Course]Mumbai B.Sc.IT Study
 
Stamp ai sp16
Stamp ai sp16Stamp ai sp16
Stamp ai sp16Rj Porosh
 
Cs6503 theory of computation may june 2016 be cse anna university question paper
Cs6503 theory of computation may june 2016 be cse anna university question paperCs6503 theory of computation may june 2016 be cse anna university question paper
Cs6503 theory of computation may june 2016 be cse anna university question paperappasami
 

What's hot (19)

Pcd201516
Pcd201516Pcd201516
Pcd201516
 
Problem set2 | Theory of Computation | Akash Anand | MTH 401A | IIT Kanpur
Problem set2 | Theory of Computation | Akash Anand | MTH 401A | IIT KanpurProblem set2 | Theory of Computation | Akash Anand | MTH 401A | IIT Kanpur
Problem set2 | Theory of Computation | Akash Anand | MTH 401A | IIT Kanpur
 
Advanced Java (Revised Syllabus) [QP / October - 2012]
Advanced Java (Revised Syllabus) [QP / October - 2012]Advanced Java (Revised Syllabus) [QP / October - 2012]
Advanced Java (Revised Syllabus) [QP / October - 2012]
 
[Question Paper] Introduction To C++ Programming (Revised Course) [April / 2015]
[Question Paper] Introduction To C++ Programming (Revised Course) [April / 2015][Question Paper] Introduction To C++ Programming (Revised Course) [April / 2015]
[Question Paper] Introduction To C++ Programming (Revised Course) [April / 2015]
 
Chomsky & Greibach Normal Forms
Chomsky & Greibach Normal FormsChomsky & Greibach Normal Forms
Chomsky & Greibach Normal Forms
 
CSC Millionaire
CSC MillionaireCSC Millionaire
CSC Millionaire
 
B.Sc.IT: Semester - VI (October - 2013) [IDOL - Revised Course | Question Paper]
B.Sc.IT: Semester - VI (October - 2013) [IDOL - Revised Course | Question Paper]B.Sc.IT: Semester - VI (October - 2013) [IDOL - Revised Course | Question Paper]
B.Sc.IT: Semester - VI (October - 2013) [IDOL - Revised Course | Question Paper]
 
Cs2303 theory of computation november december 2015
Cs2303 theory of computation november december 2015Cs2303 theory of computation november december 2015
Cs2303 theory of computation november december 2015
 
Solve the problem showing all steps. Thoroughly explain how and why you perfo...
Solve the problem showing all steps. Thoroughly explain how and why you perfo...Solve the problem showing all steps. Thoroughly explain how and why you perfo...
Solve the problem showing all steps. Thoroughly explain how and why you perfo...
 
Bsca010
Bsca010Bsca010
Bsca010
 
[Question Paper] C++ and Java (Old Course) [June / 2014]
[Question Paper] C++ and Java (Old Course) [June / 2014][Question Paper] C++ and Java (Old Course) [June / 2014]
[Question Paper] C++ and Java (Old Course) [June / 2014]
 
Cs6503 theory of computation april may 2017
Cs6503 theory of computation april may 2017Cs6503 theory of computation april may 2017
Cs6503 theory of computation april may 2017
 
Write declarations for each of the following variables: a. amounts is a...
Write declarations for each of the following variables:       a. amounts is a...Write declarations for each of the following variables:       a. amounts is a...
Write declarations for each of the following variables: a. amounts is a...
 
Internet Technologies (October – 2016) [Question Paper | IDOL: Revised Course]
Internet Technologies (October – 2016) [Question Paper | IDOL: Revised Course]Internet Technologies (October – 2016) [Question Paper | IDOL: Revised Course]
Internet Technologies (October – 2016) [Question Paper | IDOL: Revised Course]
 
[Question Paper] Introduction To C++ Programming (Revised Course) [May / 2016]
[Question Paper] Introduction To C++ Programming (Revised Course) [May / 2016][Question Paper] Introduction To C++ Programming (Revised Course) [May / 2016]
[Question Paper] Introduction To C++ Programming (Revised Course) [May / 2016]
 
Types of grammer - TOC
Types of grammer - TOCTypes of grammer - TOC
Types of grammer - TOC
 
Internet Technologies (October – 2013) [Question Paper | IDOL: Revised Course]
Internet Technologies (October – 2013) [Question Paper | IDOL: Revised Course]Internet Technologies (October – 2013) [Question Paper | IDOL: Revised Course]
Internet Technologies (October – 2013) [Question Paper | IDOL: Revised Course]
 
Stamp ai sp16
Stamp ai sp16Stamp ai sp16
Stamp ai sp16
 
Cs6503 theory of computation may june 2016 be cse anna university question paper
Cs6503 theory of computation may june 2016 be cse anna university question paperCs6503 theory of computation may june 2016 be cse anna university question paper
Cs6503 theory of computation may june 2016 be cse anna university question paper
 

Similar to Assigment cd1

Automata And Compiler Design
Automata And Compiler DesignAutomata And Compiler Design
Automata And Compiler Designguestac67362
 
V cse cs6503 model qb1 1
V  cse cs6503  model qb1 1V  cse cs6503  model qb1 1
V cse cs6503 model qb1 1Ezhumalai p
 
A109211002 switchingtheoryandlogicdesign1
A109211002 switchingtheoryandlogicdesign1A109211002 switchingtheoryandlogicdesign1
A109211002 switchingtheoryandlogicdesign1jntuworld
 
17431 microprocessor & programming
17431  microprocessor & programming17431  microprocessor & programming
17431 microprocessor & programmingsoni_nits
 
Ec2203 digital electronics questions anna university by www.annaunivedu.org
Ec2203 digital electronics questions anna university by www.annaunivedu.orgEc2203 digital electronics questions anna university by www.annaunivedu.org
Ec2203 digital electronics questions anna university by www.annaunivedu.organnaunivedu
 
Mcs 10 104 compiler design dec 2014
Mcs 10 104 compiler design dec 2014Mcs 10 104 compiler design dec 2014
Mcs 10 104 compiler design dec 2014Sreeju Sree
 
SMU MCA SEM 1 FALL 2016 ASSIGNMENTS
SMU MCA SEM 1 FALL 2016 ASSIGNMENTSSMU MCA SEM 1 FALL 2016 ASSIGNMENTS
SMU MCA SEM 1 FALL 2016 ASSIGNMENTSsolved_assignments
 
Advanced Java (Revised Syllabus) [QP / May - 2016]
Advanced Java (Revised Syllabus) [QP / May - 2016]Advanced Java (Revised Syllabus) [QP / May - 2016]
Advanced Java (Revised Syllabus) [QP / May - 2016]Mumbai B.Sc.IT Study
 
Data structures question paper anna university
Data structures question paper anna universityData structures question paper anna university
Data structures question paper anna universitysangeethajames07
 
TOC Solutions-Adi.pdf
TOC Solutions-Adi.pdfTOC Solutions-Adi.pdf
TOC Solutions-Adi.pdfAdiseshaK
 
TOC_Solutions-Adi.pdf
TOC_Solutions-Adi.pdfTOC_Solutions-Adi.pdf
TOC_Solutions-Adi.pdfAdiseshaK
 

Similar to Assigment cd1 (20)

Automata And Compiler Design
Automata And Compiler DesignAutomata And Compiler Design
Automata And Compiler Design
 
Question bank toafl
Question bank toaflQuestion bank toafl
Question bank toafl
 
Assigment cd
Assigment cdAssigment cd
Assigment cd
 
Model toc
Model tocModel toc
Model toc
 
V cse cs6503 model qb1 1
V  cse cs6503  model qb1 1V  cse cs6503  model qb1 1
V cse cs6503 model qb1 1
 
A109211002 switchingtheoryandlogicdesign1
A109211002 switchingtheoryandlogicdesign1A109211002 switchingtheoryandlogicdesign1
A109211002 switchingtheoryandlogicdesign1
 
toc_model_qp2-.pdf
toc_model_qp2-.pdftoc_model_qp2-.pdf
toc_model_qp2-.pdf
 
17431 microprocessor & programming
17431  microprocessor & programming17431  microprocessor & programming
17431 microprocessor & programming
 
Ec2203 digital electronics questions anna university by www.annaunivedu.org
Ec2203 digital electronics questions anna university by www.annaunivedu.orgEc2203 digital electronics questions anna university by www.annaunivedu.org
Ec2203 digital electronics questions anna university by www.annaunivedu.org
 
Mcs 10 104 compiler design dec 2014
Mcs 10 104 compiler design dec 2014Mcs 10 104 compiler design dec 2014
Mcs 10 104 compiler design dec 2014
 
SMU MCA SEM 1 FALL 2016 ASSIGNMENTS
SMU MCA SEM 1 FALL 2016 ASSIGNMENTSSMU MCA SEM 1 FALL 2016 ASSIGNMENTS
SMU MCA SEM 1 FALL 2016 ASSIGNMENTS
 
5th Semester (June; July-2015) Computer Science and Information Science Engin...
5th Semester (June; July-2015) Computer Science and Information Science Engin...5th Semester (June; July-2015) Computer Science and Information Science Engin...
5th Semester (June; July-2015) Computer Science and Information Science Engin...
 
Advanced Java (Revised Syllabus) [QP / May - 2016]
Advanced Java (Revised Syllabus) [QP / May - 2016]Advanced Java (Revised Syllabus) [QP / May - 2016]
Advanced Java (Revised Syllabus) [QP / May - 2016]
 
Data structures question paper anna university
Data structures question paper anna universityData structures question paper anna university
Data structures question paper anna university
 
3rd Semester Computer Science and Engineering (ACU) Question papers
3rd Semester Computer Science and Engineering  (ACU) Question papers3rd Semester Computer Science and Engineering  (ACU) Question papers
3rd Semester Computer Science and Engineering (ACU) Question papers
 
E9
E9E9
E9
 
Cs 73
Cs 73Cs 73
Cs 73
 
TOC_Solutions-Adi.pdf
TOC_Solutions-Adi.pdfTOC_Solutions-Adi.pdf
TOC_Solutions-Adi.pdf
 
TOC Solutions-Adi.pdf
TOC Solutions-Adi.pdfTOC Solutions-Adi.pdf
TOC Solutions-Adi.pdf
 
TOC_Solutions-Adi.pdf
TOC_Solutions-Adi.pdfTOC_Solutions-Adi.pdf
TOC_Solutions-Adi.pdf
 

Recently uploaded

Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...drmkjayanthikannan
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.Kamal Acharya
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesMayuraD1
 
Introduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdfIntroduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdfsumitt6_25730773
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"mphochane1998
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxmaisarahman1
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxSCMS School of Architecture
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxJuliansyahHarahap1
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayEpec Engineered Technologies
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARKOUSTAV SARKAR
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network DevicesChandrakantDivate1
 
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...vershagrag
 
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...HenryBriggs2
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityMorshed Ahmed Rahath
 
Moment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilMoment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilVinayVitekari
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startQuintin Balsdon
 

Recently uploaded (20)

Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
Introduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdfIntroduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdf
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
 
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
Moment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilMoment Distribution Method For Btech Civil
Moment Distribution Method For Btech Civil
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 

Assigment cd1

  • 1. ALPHA COLLEGE OF ENGINEERING &TECHNOLOGY DEPARTMENT OF COMPUTER ENGINEERING ASSIGNMENT: 1 COMPILER DESIGN (170701) B.E. – 7TH SEM CLASS: CE LAST DATE OF SUBMISSION: MARKS: 10 1) What are phases of a compiler? Explain the function of each phase with example. Symbol table is necessary for compiler construction; justify your statement with example. 2) a) Design a DFA which accepts set of strings such that every string containing 00 as a substring but not 000 as substring. b) Construct a FA that will accept those strings of a binary number that are divisible by three. c) Build an FA that accepts the words baa, ab and add and no other string longer or shorter. d) Write English descriptions for the languages generated by the following regular expressions: (a | b)* a(a | b | ε) 3) a. Test whether the following grammar is ambiguous i. L  L ; L | S ii. S  a b. Eliminate all  productions from the following grammars i) S  aAB | dA A  bAc |  B  dB |  ii) S  ABAC A  aA |  B  bB |  C  C 4) a. Identify and remove unit productions from the following grammars
  • 2. ii) S  A | bb A  B | b B  S | a iii) S  AB A  a B  a | b C  a D  a E  a b. Remove the useless symbol from the following grammars i)S  aB | bX A  BAd | bSX | a B  aSB | bBX X  SBD | aBx | ad ii) A  xyz | Xyzz X  Xz | xYx Y  yYy | XY Z  Zy | z NOTE: PROVIDE MODERATE NO OF QUESTIONS FACULTY NAME: Shraddha Patel