SlideShare a Scribd company logo
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

Pcd201516
Pcd201516Pcd201516
Pcd201516
sheikhmoidin
 
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
Vivekananda 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 Forms
Rajendran
 
CSC Millionaire
CSC MillionaireCSC Millionaire
CSC Millionaire
cruzanboy21
 
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 2015
appasami
 
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
 
Bsca010
Bsca010Bsca010
Bsca010
paiils111
 
[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 2017
appasami
 
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 - TOC
AbhayDhupar
 
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 sp16
Rj 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 paper
appasami
 

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 Design
guestac67362
 
Question bank toafl
Question bank toaflQuestion bank toafl
Question bank toafl
Shivalik college of engineering
 
Assigment cd
Assigment cdAssigment cd
Assigment cd
Shraddha Patel
 
Model toc
Model tocModel toc
Model toc
GUNASUNDARI C
 
V cse cs6503 model qb1 1
V  cse cs6503  model qb1 1V  cse cs6503  model qb1 1
V cse cs6503 model qb1 1
Ezhumalai p
 
A109211002 switchingtheoryandlogicdesign1
A109211002 switchingtheoryandlogicdesign1A109211002 switchingtheoryandlogicdesign1
A109211002 switchingtheoryandlogicdesign1
jntuworld
 
toc_model_qp2-.pdf
toc_model_qp2-.pdftoc_model_qp2-.pdf
toc_model_qp2-.pdf
viswanath kani
 
17431 microprocessor & programming
17431  microprocessor & programming17431  microprocessor & programming
17431 microprocessor & programming
soni_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.org
annaunivedu
 
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
Sreeju 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 ASSIGNMENTS
solved_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...
BGS Institute of Technology, Adichunchanagiri University (ACU)
 
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 university
sangeethajames07
 
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
BGS Institute of Technology, Adichunchanagiri University (ACU)
 
E9
E9E9
E9
lksoo
 
Cs 73
Cs 73Cs 73
TOC_Solutions-Adi.pdf
TOC_Solutions-Adi.pdfTOC_Solutions-Adi.pdf
TOC_Solutions-Adi.pdf
Prof. Dr. K. Adisesha
 
TOC Solutions-Adi.pdf
TOC Solutions-Adi.pdfTOC Solutions-Adi.pdf
TOC Solutions-Adi.pdf
AdiseshaK
 
TOC_Solutions-Adi.pdf
TOC_Solutions-Adi.pdfTOC_Solutions-Adi.pdf
TOC_Solutions-Adi.pdf
AdiseshaK
 

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

哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
insn4465
 
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.pptUnit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
KrishnaveniKrishnara1
 
CEC 352 - SATELLITE COMMUNICATION UNIT 1
CEC 352 - SATELLITE COMMUNICATION UNIT 1CEC 352 - SATELLITE COMMUNICATION UNIT 1
CEC 352 - SATELLITE COMMUNICATION UNIT 1
PKavitha10
 
An Introduction to the Compiler Designss
An Introduction to the Compiler DesignssAn Introduction to the Compiler Designss
An Introduction to the Compiler Designss
ElakkiaU
 
AI assisted telemedicine KIOSK for Rural India.pptx
AI assisted telemedicine KIOSK for Rural India.pptxAI assisted telemedicine KIOSK for Rural India.pptx
AI assisted telemedicine KIOSK for Rural India.pptx
architagupta876
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
IJECEIAES
 
Curve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods RegressionCurve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods Regression
Nada Hikmah
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
Yasser Mahgoub
 
Engineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdfEngineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdf
abbyasa1014
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
co23btech11018
 
Mechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdfMechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdf
21UME003TUSHARDEB
 
BRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdfBRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdf
LAXMAREDDY22
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
Madan Karki
 
An improved modulation technique suitable for a three level flying capacitor ...
An improved modulation technique suitable for a three level flying capacitor ...An improved modulation technique suitable for a three level flying capacitor ...
An improved modulation technique suitable for a three level flying capacitor ...
IJECEIAES
 
ITSM Integration with MuleSoft.pptx
ITSM  Integration with MuleSoft.pptxITSM  Integration with MuleSoft.pptx
ITSM Integration with MuleSoft.pptx
VANDANAMOHANGOUDA
 
Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...
bijceesjournal
 
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
Gino153088
 
Material for memory and display system h
Material for memory and display system hMaterial for memory and display system h
Material for memory and display system h
gowrishankartb2005
 
Rainfall intensity duration frequency curve statistical analysis and modeling...
Rainfall intensity duration frequency curve statistical analysis and modeling...Rainfall intensity duration frequency curve statistical analysis and modeling...
Rainfall intensity duration frequency curve statistical analysis and modeling...
bijceesjournal
 
Data Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason WebinarData Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason Webinar
UReason
 

Recently uploaded (20)

哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
 
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.pptUnit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
 
CEC 352 - SATELLITE COMMUNICATION UNIT 1
CEC 352 - SATELLITE COMMUNICATION UNIT 1CEC 352 - SATELLITE COMMUNICATION UNIT 1
CEC 352 - SATELLITE COMMUNICATION UNIT 1
 
An Introduction to the Compiler Designss
An Introduction to the Compiler DesignssAn Introduction to the Compiler Designss
An Introduction to the Compiler Designss
 
AI assisted telemedicine KIOSK for Rural India.pptx
AI assisted telemedicine KIOSK for Rural India.pptxAI assisted telemedicine KIOSK for Rural India.pptx
AI assisted telemedicine KIOSK for Rural India.pptx
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
 
Curve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods RegressionCurve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods Regression
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
 
Engineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdfEngineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdf
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
 
Mechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdfMechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdf
 
BRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdfBRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdf
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
 
An improved modulation technique suitable for a three level flying capacitor ...
An improved modulation technique suitable for a three level flying capacitor ...An improved modulation technique suitable for a three level flying capacitor ...
An improved modulation technique suitable for a three level flying capacitor ...
 
ITSM Integration with MuleSoft.pptx
ITSM  Integration with MuleSoft.pptxITSM  Integration with MuleSoft.pptx
ITSM Integration with MuleSoft.pptx
 
Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...
 
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
 
Material for memory and display system h
Material for memory and display system hMaterial for memory and display system h
Material for memory and display system h
 
Rainfall intensity duration frequency curve statistical analysis and modeling...
Rainfall intensity duration frequency curve statistical analysis and modeling...Rainfall intensity duration frequency curve statistical analysis and modeling...
Rainfall intensity duration frequency curve statistical analysis and modeling...
 
Data Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason WebinarData Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason Webinar
 

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