SlideShare a Scribd company logo
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 potena
fbk-das
 
be5b99cpl-lec01-slides.pdf
be5b99cpl-lec01-slides.pdfbe5b99cpl-lec01-slides.pdf
be5b99cpl-lec01-slides.pdf
Elisé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.com
NewUOPCourse
 
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
NewUOPCourse
 
Course Info
Course InfoCourse Info
Course Info
jv66
 
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 2019
corehard_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 RECYCLING
IRJET 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 simulating20the20iec206185020standard
Manojlooki
 
David.graham
David.grahamDavid.graham
David.graham
NASAPMC
 
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
MindScripts 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.pdf
JeanMarshall8
 
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
Brij 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.pdf
Brij 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 UK
Brandon 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 Adtech
C4Media
 

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

Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Assessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptxAssessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptx
Kavitha Krishnan
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
Bisnar Chase Personal Injury Attorneys
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 

Recently uploaded (20)

Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Assessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptxAssessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptx
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 

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