JPEG, Units 3D, 6
RNA, Unit 5
Directions, Unit 6
Counter, Unit 7
TSP, Unit 8
Grades. Here are the
Final Grades
To read the totals & interpret
them
first read these
instructions.
Length limits: The length limits must not be exceeded. They're all roughly 50% more than my solution. Problem 1: 1.5 pages total. Problem 2: 1.5 pages total. Problem 3: .75 page. Problem 4: 1.75 pages total.
Point values: 340 points total. Problem 1: 90. Problem 2: 90 (15 points for each of i -- vi). Problem 3: 70 (i 50; ii 20); Problem 4: 90 (i 25; iii 20; the others - ii, iv, v - 15 each).
Error in Problem 2: In line 1 of the code, "return any local min of f,S" should be "return the min of f,S".
Simplification of Problem 2: Here are 2 simplifications to make your life easier:
a. In part (iii), your fix to line 3 simply includes more points in the definition of x.
b. In part (iv), you can assume that MIN has been called from line 4. In other words you can ignore the case that the initial call MIN(G) returns without recursing. [It's entirely obvious that MIN is correct in this case.] So now the 2 occurrences of the phrase "whenever MIN is called" in part (iv) become "whenever MIN(Q) is called".
Correction Problem 1(ii) isn't worded clearly, & may not even be correct. So we'll do 2 things:
(a) Problem 1(ii) is not required for the assignment. The assignment is worth 80 points total.
(b) Here's a corrected version of the problem. It will be treated as an Extra Credit worth 10 points. It's due with the assignment.
A legitimate message M is an arbitrary k-bit binary number (since that's what Bob is sending). Alice signs M by applying her decoding algorithm S_A to M. S_A is your answer to 1(i). So the problem is to find a k-bit number M that causes your algorithm of 1(i) to fail. To do this you can use a stronger assumption than what is given in the assignment: Assume a_1,a_2,...,a_(k-1) is not the sequence of powers of 2 (note the last number is a_(k-1), not a_k as the assignment said); furthermore assume Alice chooses 2 as the value of r.
Q: Can I use a copy of your bound notes from a previous semester?
A: No,
I revise the notes every time I teach the course, and they always get
better!
Q: Can I use Edition 1 of CLRS?
A: No, Edition 2 is very different
(in fact
Edition 1 is CLR only).