Office hours next week will be held 3pm-5pm Monday-Thursday in Morgan. You may bring 1 two-sided page of hand-written notes that you create yourself. The code for the OOP implementation shown in class can be found in oop. Newton’s Method Video 1pp 1pps 6pp Discussion 11 is much better in person than at home, so come to discussion this week.
In the future, videos will be posted in the calendar below. Write a procedure substitute that takes three arguments: Unification Video 1pp 1pps 6pp It is designed to challenge you to think creatively! Functional Programming Video 1pp 1pps 6pp You might find the following references useful:
Using your solution to Q5, write substitute2 that takes a list, a list of old words, and a list of new words; the last two lists should be the same length. Drop-in office hours begin this week.
CS61A Homework 11
The code for the OOP implementation can be found in oop. Complete Homework 01 quiz questions on your own. See Lab 0 for more instructions on submitting assignments.
Implement the function scale-streamwhich takes a stream s and a number kand returns a stream where each element is the corresponding element of s scaled by k.
Ordered Sets Video full 1pp 8pp Draw environment diagrams automatically with tutor. See Lab 0 for more instructions on submitting assignments. Exceptions Video 1pp 1pps 6pp Interpreters and Tail Calls Video Solutions.
Please spell your TA’s name correctly! Dis Soda Sharad Vikram.
CS 61A Fall Structure and Interpretation of Computer Programs
Add multiple inheritance to the object system that we implemented in class using dispatch dictionaries. Recursion Video full 1pp 8pp Streams Video 1pp 1pps 6pp Check that you have successfully submitted your code on okpy. Functions Video 1pp 1pps 6pp You may submit more than once before the deadline; only the final submission will be scored.
Unification Video 1pp 1pps 6pp In homeworks, we have three different categories of questions: Implement has-cycle-constant with only constant space. Includes topics through Lecture The solution is short fewer than 20 lines of codebut requires a clever idea. Lab Soda Stephen Martinis. To copy these files to your lab account you can run the commands:.
Lab Soda Allen Nguyen. This homework must be submitted online.
Find Define a function find which takes in as input a stream and a predicate, and returns the first element in the stream satisfying the predicate. Sets Video 1pp 1pps 6pp Implement has-cycle-constant with only constant space. I want to bee John DeNero Heavyweight division: Project parties next Tuesday and Wednesday 6: Dis 2 Evans Allen Nguyen. Iterators, Generators, Streams, and Tail-Calls.
Lists and Dictionaries Video 1pp 1pps 6pp