Home Assignments 2013a



Submission instructions

Please read carefully this HW info file.

Number Published Updated Due Problem set comments
1 21 Oct 4 Nov PDF
2 5 Nov 6 Nov 18 Nov PDF Nov 6 fix: In Q5 the last example gives 926, not 26 as in original version

Nov 8: In Q2, "consecutive digits" (ספרות עוקבות) are adjacent digits in the number. An additional example: in 14715, the maximal sum of 2 consecutive digits is 4+7=11.
3 19 Nov 2 Dec PDF Nov 19: In question 1 - an empty tree is represented by the value 'None' (for example node = None)
Nov 26: Question 5 was updated - see the announcement
4 3 Dec 16 Dec PDF
PY
5 17 Dec 30 Dec 02 Jan PDF
PDF
PY
ZIP
ZIP
ZIP
Please see the revised version of the exercise. It mainly clarifies issues that were raised in the forum. Note: places where the revised version differs from the original version are marked in red.
6 3 Jan   16 Jan PDF
PY
PY
ZIP
ZIP
the matrix(1).py file contains class Matrix with a display() function, and some additional code to support it. You are NOT expected to understand how display() and the additional code work.

Also, the code contains solutions to questions from a previous HW about slices and __mult__.
6 Bonus! 8 Jan   21 Jan PDF
ZIP
Bonus Exercise!
7 and last! 17 Jan 18 Jan 27 Jan 31 Jan (no extensions or grace days afterwards) PDF
PY
PY
We will consider the best n-2=5 out of n=7 exercises. However, we highly recommend not to skip this exercise.

Update 18 Jan: question 2 slightly fixed (see the revised HW7.pdf, changes in red )
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License