1 Page

helper-recursion

Course: CS 151, Fall 2009
School: Grinnell College
Rating:
 
 
 
 
 

Word Count: 177

Document Preview

2007S, CSC151 Class 25: Recursion with Helper Procedures * I will continue to reserve time at the start of class for any campus issues you want to discuss. * Remember that the vast majority of those on campus are good, supportive people * Work to focus on the positive aspects of Mary B. James Admin: * Are there questions on Assignment 6? * Typos fixed * (image-colorscale image dark light) *...

Register Now

Unformatted Document Excerpt

Coursehero

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
2007S, CSC151 Class 25: Recursion with Helper Procedures * I will continue to reserve time at the start of class for any campus issues you want to discuss. * Remember that the vast majority of those on campus are good, supportive people * Work to focus on the positive aspects of Mary B. James Admin: * Are there questions on Assignment 6? * Typos fixed * (image-colorscale image dark light) * Write (rgb-recolor color dark light) * (image-variant image rgb-recolor) NOT CORRECT * The second parameter to image-variant is a procedure of ONE PARAMETER, rgb-recolor is a procedure of THREE PARAMETERS ONE != THREE (except mod 2) Instead * of rgb-recolor, use a one-parameter variant * Anonymous (lambda (color) (rgb-recolor color ...)) * Named with a let * What would an anonymous blue-yellow procedure look like? (image-variant image (lambda (color) (rgb-recolor color blue yellow))) * It looks like we're on target to distribute the next exam tomorrow. * Reading for Wednesday: List Recursion, Revisited. ...

Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

National Taiwan University - ECE - 557
ECE 557: Control, Signals, and Systems LaboratoryNotes for Lab 2 (Introduction to Digital Signal Processing)1. Overview: Sampling, Quantization, Filtering, Reconstruction In Sampler Quantizer (Coder) DSP Reconstruction (Decoder) Out x(k/5) =The signal
National Taiwan University - ECE - 557
The Ohio State University Department of Electrical & Computer EngineeringECE 557: Control, Signals, and Systems LaboratorySummer 2009 Thursday, 1:30PM5:18PM, 808 Dreese LaboratoryInstructor: Ted Pavlic, 351 Caldwell Laboratory (CL), pavlic.3@osu.edu ht
National Taiwan University - ECE - 481
ECE 481 Attendance Quiz (November 13, 2008)Does cheating in college predict future unethical occupational behavior?95 90 85 80 75 70 6578Yes: 61%Respondents60 55 50 45 40 35 30 25 20 15 10 5 050No: 39%YesNo
National Taiwan University - ECE - 481
Examples of Unprofessional ActivityECE 481 November 6, 2008When the president of Sony was escorted out of the building on Madison Ave., I was entering to deliver recordings from the studio I was interning at. This was during the payola scandal in 2005.
National Taiwan University - ECE - 481
National Taiwan University - ECE - 481
Examples of engineers doing community serviceECE 481 October 9, 2008I do not know of a PE who applies his or her talents in the community but would like to. Are there volunteer options aside from ECOS? (in Columbus)I know my hometown county engineer. H
National Taiwan University - ECE - 481
ECE 481 Attendance Quiz (October 16, 2008)List products of ECE that involve safety or risk.- cars (stability, cruise control, braking, etc.) (73) - power (generation, distribution, etc.) (61) - transportation (planes, trains, boats, etc.) (49) - medical
National Taiwan University - ECE - 481
ECE 481 Attendance Quiz (October 2, 2008)Should a phrase encouraging public service be added to the IEEE Code of Ethics?105 100 95 90 85 80 75 7089Yes: 64%Respondents65 60 55 50 45 40 35 30 25 20 15 10 5 051No: 36%YesNo
National Taiwan University - ECE - 481
ECE 481 Attendance Quiz (September 25, 2008)Name as many famous engineers as you can.- Nikola Tesla (59) - Jimmy Carter (45) - Thomas Alva Edison (43) - David Packard (41) - William Reddington Hewlett (40) - Herbert Hoover (34) - Dilbert (32) - Tony Sta
National Taiwan University - ECE - 327
Part Pin-outsLab 7: Project Integration ECE 327: Electronic Devices and Circuits Laboratory IVin LM317 Vout 1.25 V AdjustLM317 3-terminal adjustable regulatorOffset Null/Comp.1741/351/CA31x0 Op. Amp.- +8Strobe/Comp.Inverting (-)27V + (Power)
National Taiwan University - ECE - 327
ECE 327: Electronic Devices and Circuits Laboratory INotes for Lab 7 (Output Filtering/Project Integration Lab)1. Output ltering Remove higher harmonics from PWM demodulators pulse-amplitude-modulated output to recover smooth reconstruction of input But
National Taiwan University - ECE - 327
ECE 327: Electronic Devices and Circuits Laboratory IInfrared Remote Control Question and AnswerIm writing up my section of the latest lab report (the IR link portion) and Im having some trouble nding information for a conclusion section. I thought I wo
National Taiwan University - ECE - 327
Name: InstructorTable number: SolutionECE 327: Electronic Devices and Circuits Laboratory ILab 6: Digital-to-Analog Conversion Quiz B (10 points)Description. This quiz tests your understanding of digital-to-analog conversion (DAC) and demodulation of
National Taiwan University - ECE - 327
Name: InstructorTable number: SolutionECE 327: Electronic Devices and Circuits Laboratory ILab 6: Digital-to-Analog Conversion Quiz A (10 points)Description. This quiz tests your understanding of digital-to-analog conversion (DAC) and demodulation of
National Taiwan University - ECE - 327
Name: InstructorTable number: SolutionECE 327: Electronic Devices and Circuits Laboratory ILab 5: Analog-to-Digital Conversion Quiz B (10 points)Description. The following tests you on your knowledge of the analog-to-digital conversion laboratory book
National Taiwan University - ECE - 327
Regulated DC SupplyLab 6: Digital-to-Analog Conversion ECE 327: Electronic Devices and Circuits Laboratory I1Regulated 10 VDC Supply1. Isolate two separate sets of 0 V and 10 V supply rails on your breadboard (or use two breadboards). 2. Connect LM317
National Taiwan University - ECE - 327
Name: InstructorTable number: SolutionECE 327: Electronic Devices and Circuits Laboratory ILab 5: Analog-to-Digital Conversion Quiz A (10 points)Description. The following tests you on your knowledge of the "analog-to-digital conversion" laboratory bo
National Taiwan University - ECE - 327
Dual-Rail Level-Shifter AmplifiersLab 5: Analog-to-Digital Conversion ECE 327: Electronic Devices and Circuits Laboratory IAbstract For the analog-to-digital conversion lab (and others), we need to implement a single-rail (i.e., 10 V and 0 V "rails") le
National Taiwan University - ECE - 327
Current Sources and Ramp GeneratorsLab 5: Analog-to-Digital Conversion ECE 327: Electronic Devices and Circuits Laboratory IAbstract For the analog-to-digital conversion lab, we need a resetable ramp generator. Here, we explore building a ramp generator
National Taiwan University - ECE - 327
National Taiwan University - ECE - 327
30 kHz 10 V 1 kComparator
National Taiwan University - ECE - 327
Regulated DC SupplyLab 5: Analog-to-Digital Conversion ECE 327: Electronic Devices and Circuits Laboratory I1Regulated 10 VDC Supply1. Isolate two separate sets of 0 V and 10 V supply rails on your breadboard (or use two breadboards). 2. Connect LM317
National Taiwan University - ECE - 327
Single-Rail Level-Shifter AmplifiersLab 5: Analog-to-Digital Conversion ECE 327: Electronic Devices and Circuits Laboratory IAbstract For the analog-to-digital conversion lab (and others), we need to implement a level-shifter amplifier that uses 10 V an
National Taiwan University - ECE - 327
Part Pin-outsLab 5: Analog-to-Digital Conversion ECE 327: Electronic Devices and Circuits Laboratory I(Logic Low) 0 V 1 8 V + (Power) Offset Null/Comp. 1LM311Input (+) 2 + - 3 6 7 Output (Logic High = OPEN) Inverting (-) 2741/351/CA31x0 Op. Amp.- +
National Taiwan University - ECE - 327
ECE 327: Electronic Devices and Circuits Laboratory IProcedure for Lab 5 (Analog-to-Digital Conversion (ADC) Lab)SEE LAB BOOK . The questions you must answer in your report are given in the book. Bypass capacitors: Unless otherwise noted, bypass capacit
National Taiwan University - ECE - 327
Name: InstructorTable number: SolutionECE 327: Electronic Devices and Circuits Laboratory ILab 4: Oscillators Quiz A (10 points)Description. This quiz tests your understanding of relaxation oscillators (i.e., oscillators that use RC circuits to trigge
National Taiwan University - ECE - 327
Regulated DC SupplyLab 4: Oscillators ECE 327: Electronic Devices and Circuits Laboratory I1Regulated 10 VDC Supply1. Isolate two separate sets of 0 V and 10 V supply rails on your breadboard (or use two breadboards). 2. Connect LM317 regulated output
National Taiwan University - ECE - 327
18DC-to-DC Switcher iL (A) vC (V) Control161412108(L = 1 H, C = 1 F, R = , vin = 5 V, f = 1 Hz, w = 25%, vin /(1 w) = 6.6667 V) (Average(vout ) = 16.9534 V, Average(iout ) = 0 A, Average(iin ) = 0.15424 A) (Average(Pout ) = 0 W, Average(Pin ) = 0.7
National Taiwan University - ECE - 327
Part Pin-outsLab 4: Oscillators ECE 327: Electronic Devices and Circuits Laboratory IOffset Null Inverting (-)1741 or 351 Op. Amp.- +8Not Connected (NC)27V + (Power)Non-Inverting (+)36Output(Power) V -45Offset NullLM741 or LF351 op. amp
National Taiwan University - ECE - 327
45DC-to-DC Switcher iL (A) vC (V) Control (L = 0.0002 H, C = 0.00082 F, R = 20 , vin = 5 V, f = 10000 Hz, w = 75%, vin /(1 w) = 20 V) (Average(vout ) = 19.9013 V, Average(iout ) = 0.99507 A, Average(iin ) = 3.5551 A) (Average(Pout ) = 19.8032 W, Average(
National Taiwan University - ECE - 327
10DC-to-DC Switcher iL (A) vC (V) Control8(L = 10 H, C = 4 F, R = 4 , vin = 5 V, f = 1 Hz, w = 25%, vin /(1 w) = 6.6667 V) (Average(vout ) = 6.6864 V, Average(iout ) = 1.6716 A, Average(iin ) = 2.2448 A) (Average(Pout ) = 11.1769 W, Average(Pin ) = 11.
National Taiwan University - ECE - 327
7DC-to-DC Switcher iL (A) vC (V) Control6(L = 10 H, C = 4 F, R = 4 , vin = 5 V, f = 1 Hz, w = 25%, vin /(1 w) = 6.6667 V) (Average(vout ) = 6.7113 V, Average(iout ) = 1.6778 A, Average(iin ) = 2.2303 A) (Average(Pout ) = 11.2602 W, Average(Pin ) = 11.1
National Taiwan University - ECE - 327
7DC-to-DC Switcher iL (A) vC (V) Control6(L = 10 H, C = 4 F, R = 4 , vin = 5 V, f = 1 Hz, w = 25%, vin /(1 w) = 6.6667 V) (Average(vout ) = 4.0039 V, Average(iout ) = 1.001 A, Average(iin ) = 4.1925 A) (Average(Pout ) = 4.0078 W, Average(Pin ) = 20.962
National Taiwan University - ECE - 327
LC + diode summary (L = 1 H, C = 1 F, vin = 5 V)10iL (A) vC (V)9876543210012345 Time (s)678910
National Taiwan University - ECE - 327
LC resonator (ringing bell) summary (L = 1 H, C = 1 F, vin = 5 V)1050iL (A) vC (V)!5 0 1 2 3 4 5 Time (s) 6 7 8 9 10
National Taiwan University - ECE - 327
Name: InstructorTable number: SolutionECE 327: Electronic Devices and Circuits Laboratory ILab 3: Voltage Regulators Quiz A (10 points)Description. This quiz tests your comprehension of what youve read on voltage regulators. Complete this quiz with cl
National Taiwan University - ECE - 327
Name: InstructorTable number: SolutionECE 327: Electronic Devices and Circuits Laboratory ILab 3: Voltage Regulators Quiz B (10 points)Description. This quiz tests your comprehension of what youve read on voltage regulators. Complete this quiz with cl
National Taiwan University - ECE - 327
Part Pin-outsLab 3: Voltage Regulators ECE 327: Electronic Devices and Circuits Laboratory ICathode (-)For conventional forward current iZ : "CCD" - "Cathode Current Departs" "ACE" - "Anode Current Enters"-iZ(+) AnodeZener: 1N4731: 1N5229: 1N751:vZ
National Taiwan University - ECE - 327
ECE 327: Electronic Devices and Circuits Laboratory IReport Strategies for Lab 3 (Voltage Regulators Lab)Abstract This document outlines topics relevant to writing a report for this lab. Some theoretical models are presented that students can use to com
National Taiwan University - ECE - 327
ECE 327: Electronic Devices and Circuits Laboratory INotes for Lab 3 (Voltage Regulators Lab)1. Introduce voltage regulators (very basic, lots more available) Steady, accurate, and temperature-independent voltage references are critical to electronics.
National Taiwan University - ECE - 327
Name: InstructorTable number: SolutionECE 327: Electronic Devices and Circuits Laboratory ILab 2: The Field Eect Transistor Quiz A (10 points)Description. This quiz tests your understanding of basic FET concepts. Here, we focus on the n-channel deplet
National Taiwan University - ECE - 327
Practical Integrators and Operational Amplier OsetLab 2: The Field Eect Transistor ECE 327: Electronic Devices and Circuits Laboratory IAbstract For the eld eect transistor lab, we need to implement an integrator. In this document, a simple operational
National Taiwan University - ECE - 327
Part Pin-outsLab 2: The Field Effect Transistor ECE 327: Electronic Devices and Circuits Laboratory IOffset Null/Comp.1741/351/CA31x0 Op. Amp.- +8Strobe/Comp.Inverting (-)27V + (Power)Non-Inverting (+)36Output(Power) V -45Offset NullCD
National Taiwan University - ECE - 327
ECE 327: Electronic Devices and Circuits Laboratory IProcedure Notes for Lab 2 (Field Eect Transistor Lab)Abstract The laboratory procedure is broadly outlined in the lab book. You are expected to gather all data and answer all questions required by tha
National Taiwan University - ECE - 327
Name: InstructorTable number: SolutionECE 327: Electronic Devices and Circuits Laboratory ILab 1: The Bipolar (Junction) Transistor Quiz B (10 points)Description. This quiz tests your comprehension of what youve read on bipolar junction transistors (B
National Taiwan University - ECE - 327
Choosing an Output for Maximum Power: Impedance MatchingAbstract Audio ampliers warn users that speaker loads should be matched to the output impedance of the speaker drivers. Here, we explore why that is the case.Consider the Thvenin equivalent in Figu
National Taiwan University - ECE - 327
Name: InstructorTable number: SolutionECE 327: Electronic Devices and Circuits Laboratory ILab 1: The Bipolar (Junction) Transistor Quiz A (10 points)Description. This quiz tests your comprehension of what youve read on bipolar junction transistors (B
National Taiwan University - ECE - 327
Part Pin-outsLab 1: The Bipolar Transistor ECE 327: Electronic Devices and Circuits Laboratory ITop view of 2N3906E2N3906EPNP (2N3906)E = C BB C= BC"Points iN Proudly"VBE 0.65 V VCE,saturation 0.2 V 1002N3906 PNP BJT transistor"ACE" - "Anode
National Taiwan University - ECE - 327
Name: InstructorTable number: SolutionECE 327: Electronic Devices and Circuits Laboratory IClass Pre-Quiz (Ungraded)Description. This ungraded quiz provides the instructor with information on your present comfort with analog circuits. Answer these que
National Taiwan University - ECE - 327
ECE 327: Electronic Devices and Circuits Laboratory IProcedure for Lab 0 (Instrumentation Refresher Lab)Complete the following with the other students at your table.Function generator and oscilloscope1. Generate 5 Vpeak-to-peak (i.e., 2.5 V amplitude)
National Taiwan University - ECE - 327
Passive Components Available in LaboratoryECE 327: Electronic Devices and Circuits Laboratory IContentsResistors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Capacitors . . . . . . . . . . . . .
National Taiwan University - ECE - 327
The Ohio State University Department of Electrical & Computer EngineeringECE 327: Electronic Devices and Circuits Laboratory ISummer 2009 Tuesday, 12:30N4:18PM, 233 Caldwell LaboratoryInstructor: Ted Pavlic, 351 Caldwell Laboratory (CL), pavlic.3@osu.e
Vassar - CS - 334
Chapter 8: Main MemorySilberschatz, Galvin and Gagne 2009Chapter 8: Memory Managements Background s Swapping s Contiguous Memory Allocation s Paging s Structure of the Page Table s Segmentation s Example: The Intel Pentium8.2Silberschatz, Galvin and
Wisc Platteville - SE - 386
Add MadisonAdd ChicagoAdd Green_BayUpdate Madison 2 60.75Update Chicago 4 780 Update Chicago 3 46.1Output ChicagoOutput MadisonAdd DubuqueUpdate Dubuque 4 400Clear ChicagoOutput ChicagoAdd MilwaukeeSummarizeDelete Green_BaySummarizeUpdate
Vassar - CS - 334
Chapter 2: Operating-System StructuresSilberschatz, Galvin and Gagne 2009Chapter 2: Operating-System Structuress Operating System Services s User Operating System Interface s System Calls s Types of System Calls s System Programs s Operating System Des
Vassar - CS - 203
2 1Bits, Characters, C-Strings and str ucts1 2008 Pearson Education, Inc. All rights reserved.2The same old charitable lie Repeated as the years scoot by Perpetually makes a hit- "You really haven't changed a bit!"- Margaret FishbackThe chief defec
Vassar - CS - 203
2 0Data Structures1 2008 Pearson Education, Inc. All rights reserved.2Much that I bound, I could not free; Much that I freed returned to me. Lee Wilson DoddWill you walk a little faster? said a whiting to a snail, Theres a porpoise close behind us,
Vassar - CS - 203
1 9Searching and Sorting1 2008 Pearson Education, Inc. All rights reserved.2With sobs and tears he sorted out Those of the largest size. Attempt the end, and never stand to doubt; Nothing's so hard, but search will find it out.- Robert Herrick - Lew
Vassar - CS - 203
1 7File Processing1 2008 Pearson Education, Inc. All rights reserved.2I read part of it all the way through.- Samuel GoldwynI can only assume that a "Do Not File" document is filed in a "Do Not File" file.- Senator Frank Church Senate Intelligence
Vassar - CS - 203
1 8Class string and String Stream Processing1 2008 Pearson Education, Inc. All rights reserved.2The difference between the almost-right word and the right word is really a large matter - it's the difference between the lightning bug and the lightning
Berkeley - MATH - 170
1Luitzen Egbertus Jan BrouwerThe goal of the presentation is to discuss the Luitzen Brouwer and intuitionism. Your presentation should include at least A discussion of who Brouwer was A discussion of what intuitionism is. What constructive mathematics i