Unification Video 1pp 1pps 6pp Walkthrough videos for Homework 05 and lots of lab and discussion are posted. Follow the instructions here to submit the electronic copy. Lab Soda Joy Jeng. Function Examples Video 1pp 1pps 6pp Watch the videos the day they come out.
Reinforcement Questions — Questions that we believe have material that is either covered by other questions in this homework or in past homeworks, and can therefore be considered second priority after the core questions have been completed. Small review sessions next week will be held during lab and discussion times. Is it always possible to correctly return f? Dis Soda Steven Tang. When you are done, submit with python3 ok –submit.
CS61A Homework 11
Attend lab and discussion for section participation points. Dis Dwinelle Joy Jeng.
Dis Soda Brian Hou. You can use the predicate list? Lab 13 is optional practice.
The code for the OOP implementation shown in class can be found in oop. Using STk, you can load and execute functions from this file with the commands assuming you’re in the same directory as hw You are encouraged to try these questions once you have completed questions from the other two categories.
The Midterm 1 study guide and Midterm 2 study homewwork will be provided. 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.
Hierarchy Video full 1pp 8pp Find Define a function find which takes in as input homewor stream and a predicate, and returns the first element in the stream satisfying the predicate. Homework party on Wednesday 6: Names Video full 1pp 8pp Growth Video full 1pp 8pp Natural Language Processing Video 1pp 1pps 6pp Come to Office hours on Monday!
Extra for Experts — As in earlier homeworks, these problems are homeworm optional. Write the function deep-mapwhich takes a function and a deep list a list that might contain other lists and returns a copy of the deep list with all items replaced with the result of applying fn onto each item.
MapReduce Video 1pp 1pps 6pp Mutable Functions Video full 1pp 8pp Still some opportunities for extra credit, to be announced. Tree Sets Video full 1pp 8pp Declarative Programming Video 1pp 1pps 6pp Function Examples Video 1pp 1pps 6pp All lab, discussion, and homework walkthroughs are linked from the table below, including Lab 04 and HW To turn in the electronic copysubmit all of your answers in files named hw Find Define a function find which takes in as input a stream and a predicate, homewofk returns the first element in the stream satisfying the predicate.
CS 61A Fall Structure and Interpretation of Computer Programs
Walkthrough videos for Homework 05 and lots of lab and discussion are posted. Focus on recursion, lists, mutation, recursive data, and objects.
About half the exam typically tests Midterm 2 content. 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. Tail Calls Video full 1pp 8pp It should return a copy of the first argument, but with each word that occurs in the second argument replaced by the corresponding word of the third argument: Video walkthrough and annotated problems. One-one-One tutoring signup sheets are going to be released every Friday at 3: