Because classes were cancelled on Wednesday February 2, please don't do problems 6, 7, and 8 of the assignment. and you can put off reading Chapter 7 of the text. We'll get to all that next week.
You don't really have to read Section 12.4, because I cover it (in a different manner) in the handout, and I think you'll probably find the way I did it easier to understand. But certainly read Section 12.4 if you want to!
You'll need this to understand the proof at the end of Lecture 7 (i..e, Chapter 12).
It should go without saying at this point, but let me say it once again: when you write an algorithm, you have to give some convincing reason why it works. It doesn't necessarily have to be a formal proof (unless I ask for one), but you can't just say, "here's the algorithm".
Similarly, if you give an estimate of the cost of an algorithm or an operation, you have to justify it.
There is no class on Monday. We will devote Wednesday to a review for the second mid-term exam, which will be on the following Monday, April 25.
Come with questions!
Assignment (due May 2): The main thing I want you to do is to read carefully the handout through page 4, and to read the beginning of Chapter 34 (through the end of Section 34.1). Don't worry about languages. We'll talk about them later.
In addition, I want you to do two problems:
We finish working through the Lecture 16 handout. Here's what we'll do:
if x = 3 then x + 5 = 8or you can write
x = 3 ==> x + 5 = 8But you cannot write
if x = 3 ==> x + 5 = 8 !!! WRONG !!!Please try to be careful about things like this. And please don't be offended if I correct mistakes like this in what you write.