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

Seminar pasqualina potena
Seminar pasqualina potenaSeminar pasqualina potena
Seminar pasqualina potenafbk-das
 
be5b99cpl-lec01-slides.pdf
be5b99cpl-lec01-slides.pdfbe5b99cpl-lec01-slides.pdf
be5b99cpl-lec01-slides.pdfElisée Ndjabu
 
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.comNewUOPCourse
 
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.comNewUOPCourse
 
Course Info
Course InfoCourse Info
Course Infojv66
 
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...Matthias Braunhofer
 
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 2019corehard_by
 
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
 
USING IMAGE CLASSIFICATION TO INCENTIVIZE RECYCLING
USING IMAGE CLASSIFICATION TO INCENTIVIZE RECYCLINGUSING IMAGE CLASSIFICATION TO INCENTIVIZE RECYCLING
USING IMAGE CLASSIFICATION TO INCENTIVIZE RECYCLINGIRJET Journal
 
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...YRG sustainability
 
Understanding20and20 simulating20the20iec206185020standard
Understanding20and20 simulating20the20iec206185020standardUnderstanding20and20 simulating20the20iec206185020standard
Understanding20and20 simulating20the20iec206185020standardManojlooki
 
David.graham
David.grahamDavid.graham
David.grahamNASAPMC
 
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 @ MINDSCRIPTSMindScripts SoftwareTestingPune
 
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 Andreas Metzger
 
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.pdfJeanMarshall8
 
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.pdfBrij Consulting, LLC
 
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 ...IOSR Journals
 
Simulations Project Marking Contingencies.pdf
Simulations Project Marking Contingencies.pdfSimulations Project Marking Contingencies.pdf
Simulations Project Marking Contingencies.pdfBrij Consulting, LLC
 
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 UKBrandon Kuczenski
 
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 AdtechC4Media
 

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
 

Recently uploaded

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
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 17Celine George
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
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.pdfQucHHunhnh
 
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 writingTeacherCyreneCayanan
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
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 . pdfQucHHunhnh
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...KokoStevan
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterMateoGardella
 
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 17Celine George
 
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.pdfAdmir Softic
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 

Recently uploaded (20)

Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
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
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
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
 
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
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
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
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
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
 
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
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 

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