SlideShare a Scribd company logo
1 of 9
Download to read offline
MCN 7105: Structure and Interpretation of Computer
Programs
Group I (CS)
Applying Simple Procedures
Group I (CS) MCN 7105 October 20, 2019 1 / 9
Overview
1 Applying Simple Procedures
Introduction
Procedure Definition
Procedure Evaluation
Group I (CS) MCN 7105 October 20, 2019 2 / 9
Applying Simple Procedures Introduction
Applying Simple Procedures
An environment consists of a sequence of frames.
A frame is a table of bindings, a pairing of a name and a value.
A frame might be shared by multiple environments.
A procedure object consists of some code, together with a pointer
to the enclosing environment.
Group I (CS) MCN 7105 October 20, 2019 3 / 9
Applying Simple Procedures Procedure Definition
Procedure Definition
average
Group I (CS) MCN 7105 October 20, 2019 4 / 9
Applying Simple Procedures Procedure Evaluation
Procedure Evaluation
Steps
To apply a compound procedure P to arguments:
Create a new frame A
Make A into an environment E
In A, bind the parameters of P to the argument values
Evaluate the body of P with E as the current environment
Group I (CS) MCN 7105 October 20, 2019 5 / 9
Applying Simple Procedures Procedure Evaluation
Procedure Evaluation
average
Group I (CS) MCN 7105 October 20, 2019 6 / 9
Applying Simple Procedures Procedure Evaluation
Procedure Definition
hypotenuse
Group I (CS) MCN 7105 October 20, 2019 7 / 9
Applying Simple Procedures Procedure Evaluation
Procedure Evaluation
hypotenuse
Group I (CS) MCN 7105 October 20, 2019 8 / 9
Applying Simple Procedures Conclusion
Questions?
Group I (CS) MCN 7105 October 20, 2019 9 / 9

More Related Content

Similar to Evaluate procedures

Course Info
Course InfoCourse Info
Course Info
jv66
 
Cost-Aware Virtual Machine Placement across Distributed Data Centers using Ba...
Cost-Aware Virtual Machine Placement acrossDistributed Data Centers using Ba...Cost-Aware Virtual Machine Placement acrossDistributed Data Centers using Ba...
Cost-Aware Virtual Machine Placement across Distributed Data Centers using Ba...
Soodeh Farokhi
 
Understanding20and20 simulating20the20iec206185020standard
Understanding20and20 simulating20the20iec206185020standardUnderstanding20and20 simulating20the20iec206185020standard
Understanding20and20 simulating20the20iec206185020standard
Manojlooki
 
David.graham
David.grahamDavid.graham
David.graham
NASAPMC
 

Similar to Evaluate procedures (20)

Seminar pasqualina potena
Seminar pasqualina potenaSeminar pasqualina potena
Seminar pasqualina potena
 
be5b99cpl-lec01-slides.pdf
be5b99cpl-lec01-slides.pdfbe5b99cpl-lec01-slides.pdf
be5b99cpl-lec01-slides.pdf
 
Ntc 260 ntc260 ntc 260 best tutorials guide uopstudy.com
Ntc 260 ntc260 ntc 260 best tutorials guide  uopstudy.comNtc 260 ntc260 ntc 260 best tutorials guide  uopstudy.com
Ntc 260 ntc260 ntc 260 best tutorials guide uopstudy.com
 
Ntc 260 ntc260 ntc 260 education for service uopstudy.com
Ntc 260 ntc260 ntc 260 education for service   uopstudy.comNtc 260 ntc260 ntc 260 education for service   uopstudy.com
Ntc 260 ntc260 ntc 260 education for service uopstudy.com
 
Course Info
Course InfoCourse Info
Course Info
 
Usability Assessment of a Context-Aware and Personality-Based Mobile Recommen...
Usability Assessment of a Context-Aware and Personality-Based Mobile Recommen...Usability Assessment of a Context-Aware and Personality-Based Mobile Recommen...
Usability Assessment of a Context-Aware and Personality-Based Mobile Recommen...
 
New C++ features for writing DSLs . Ivan Čukić. CoreHard Spring 2019
New C++ features for writing DSLs . Ivan Čukić. CoreHard Spring 2019New C++ features for writing DSLs . Ivan Čukić. CoreHard Spring 2019
New C++ features for writing DSLs . Ivan Čukić. CoreHard Spring 2019
 
Cost-Aware Virtual Machine Placement across Distributed Data Centers using Ba...
Cost-Aware Virtual Machine Placement acrossDistributed Data Centers using Ba...Cost-Aware Virtual Machine Placement acrossDistributed Data Centers using Ba...
Cost-Aware Virtual Machine Placement across Distributed Data Centers using Ba...
 
USING IMAGE CLASSIFICATION TO INCENTIVIZE RECYCLING
USING IMAGE CLASSIFICATION TO INCENTIVIZE RECYCLINGUSING IMAGE CLASSIFICATION TO INCENTIVIZE RECYCLING
USING IMAGE CLASSIFICATION TO INCENTIVIZE RECYCLING
 
Building Performance Modeling: How to Use Modeling Analysis to Optimize Desig...
Building Performance Modeling: How to Use Modeling Analysis to Optimize Desig...Building Performance Modeling: How to Use Modeling Analysis to Optimize Desig...
Building Performance Modeling: How to Use Modeling Analysis to Optimize Desig...
 
Understanding20and20 simulating20the20iec206185020standard
Understanding20and20 simulating20the20iec206185020standardUnderstanding20and20 simulating20the20iec206185020standard
Understanding20and20 simulating20the20iec206185020standard
 
David.graham
David.grahamDavid.graham
David.graham
 
Pune PradhiKaran Nigdi - CLOUD COMPUTING CLASSES @ MINDSCRIPTS
Pune PradhiKaran Nigdi - CLOUD COMPUTING CLASSES @ MINDSCRIPTSPune PradhiKaran Nigdi - CLOUD COMPUTING CLASSES @ MINDSCRIPTS
Pune PradhiKaran Nigdi - CLOUD COMPUTING CLASSES @ MINDSCRIPTS
 
Proactive Process Adaptation using Deep Learning Ensembles
Proactive Process Adaptation using Deep Learning Ensembles Proactive Process Adaptation using Deep Learning Ensembles
Proactive Process Adaptation using Deep Learning Ensembles
 
Building with Glass V1 Formalizing the Forward.pdf
Building with Glass V1 Formalizing the Forward.pdfBuilding with Glass V1 Formalizing the Forward.pdf
Building with Glass V1 Formalizing the Forward.pdf
 
Building with Glass V1 Formalizing the Forward.pdf
Building with Glass V1 Formalizing the Forward.pdfBuilding with Glass V1 Formalizing the Forward.pdf
Building with Glass V1 Formalizing the Forward.pdf
 
Cost Analysis of ComFrame: A Communication Framework for Data Management in ...
Cost Analysis of ComFrame: A Communication Framework for  Data Management in ...Cost Analysis of ComFrame: A Communication Framework for  Data Management in ...
Cost Analysis of ComFrame: A Communication Framework for Data Management in ...
 
Simulations Project Marking Contingencies.pdf
Simulations Project Marking Contingencies.pdfSimulations Project Marking Contingencies.pdf
Simulations Project Marking Contingencies.pdf
 
Privacy and Provenance in Environmental Impact Assessment - ISIE 2015 Surrey UK
Privacy and Provenance in Environmental Impact Assessment - ISIE 2015 Surrey UKPrivacy and Provenance in Environmental Impact Assessment - ISIE 2015 Surrey UK
Privacy and Provenance in Environmental Impact Assessment - ISIE 2015 Surrey UK
 
High Performance Cooperative Distributed Systems in Adtech
High Performance Cooperative Distributed Systems in AdtechHigh Performance Cooperative Distributed Systems in Adtech
High Performance Cooperative Distributed Systems in Adtech
 

More from rajab ssemwogerere

More from rajab ssemwogerere (6)

Presentation machine learning
Presentation machine learningPresentation machine learning
Presentation machine learning
 
Define cancer treatment using knn and naive bayes algorithms
Define cancer treatment using knn and naive bayes algorithmsDefine cancer treatment using knn and naive bayes algorithms
Define cancer treatment using knn and naive bayes algorithms
 
Data security and privacy
Data security and privacyData security and privacy
Data security and privacy
 
Access control data security
Access control data securityAccess control data security
Access control data security
 
Application virtualization
Application virtualizationApplication virtualization
Application virtualization
 
Map reduce presentation
Map reduce presentationMap reduce presentation
Map reduce presentation
 

Recently uploaded

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
MateoGardella
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 

Recently uploaded (20)

Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 

Evaluate procedures

  • 1. MCN 7105: Structure and Interpretation of Computer Programs Group I (CS) Applying Simple Procedures Group I (CS) MCN 7105 October 20, 2019 1 / 9
  • 2. Overview 1 Applying Simple Procedures Introduction Procedure Definition Procedure Evaluation Group I (CS) MCN 7105 October 20, 2019 2 / 9
  • 3. Applying Simple Procedures Introduction Applying Simple Procedures An environment consists of a sequence of frames. A frame is a table of bindings, a pairing of a name and a value. A frame might be shared by multiple environments. A procedure object consists of some code, together with a pointer to the enclosing environment. Group I (CS) MCN 7105 October 20, 2019 3 / 9
  • 4. Applying Simple Procedures Procedure Definition Procedure Definition average Group I (CS) MCN 7105 October 20, 2019 4 / 9
  • 5. Applying Simple Procedures Procedure Evaluation Procedure Evaluation Steps To apply a compound procedure P to arguments: Create a new frame A Make A into an environment E In A, bind the parameters of P to the argument values Evaluate the body of P with E as the current environment Group I (CS) MCN 7105 October 20, 2019 5 / 9
  • 6. Applying Simple Procedures Procedure Evaluation Procedure Evaluation average Group I (CS) MCN 7105 October 20, 2019 6 / 9
  • 7. Applying Simple Procedures Procedure Evaluation Procedure Definition hypotenuse Group I (CS) MCN 7105 October 20, 2019 7 / 9
  • 8. Applying Simple Procedures Procedure Evaluation Procedure Evaluation hypotenuse Group I (CS) MCN 7105 October 20, 2019 8 / 9
  • 9. Applying Simple Procedures Conclusion Questions? Group I (CS) MCN 7105 October 20, 2019 9 / 9