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 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 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.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 @ 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

Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
goswamiyash170123
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
deeptiverma2406
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
Kartik Tiwari
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
DhatriParmar
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
Mohammed Sikander
 

Recently uploaded (20)

Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
 

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