Midterm

October 17th, 2007

The midterm can be found here. Due date is Oct 19 (friday) @ 5pm. LaTeX src (minus the figures: you’ll have to comment those parts out) is here.

Additional notes:

  • You may NOT consult your fellow classmates or others. The books are your only friends.
  • You may post questions about the midterm as comments on this post. I will be monitoring it frequently.

18 Responses to “Midterm”

  1. Anonymous Says:

    Question 6: It looks to me that there is a typo in line 3. It says that if t[i+j] is 0 then p[j] can not be zero which contradicts with equation in line 2.

  2. Anonymous Says:

    Question 6: It looks to me that there is a typo in line 3. It says that if t[i+j] is 0 then p[j] ca not be zero which contradicts with equation in line 2.

  3. Arvind Says:

    Question 6: It looks to me that there is a typo in line 3. It says that if t[i+j] is 0 then p[j] ca not be zero which contradicts with equation in line 2.

  4. admin Says:

    Ah yes, there is a typo. replace that by ‘p[j] MUST be zero’. I’ll change the src files. thanks

  5. Anonymous Says:

    Question 1.2: Since its important to get the quantifiers right, could you please define what T(n,m) = O(f(n,m)) means? I am a bit confused comparing the bounds, when the running time of an algorithm has two dependent variables. :-(

  6. Anonymous Says:

    Is there a link to the Homework Solutions (I am looking for Homework 1 solution in particular)?

  7. Sarvani Says:

    In problem 2: Do we assume that “knowing person well” is symmetric?

  8. admin Says:

    Anon 1: For a definition of O() notation for multiple variables, you can see this wikipedia link for example. In short, the definition is what you’d expect it to be.

    Anon 2: There is no link to the homework solutions, because I don’t place them online. Email me directly about this, or you can drop by my office tomorrow and pick up one.

    Sarwani: Yes, you can assume that “knowing person well” is symmetric.

  9. A. Star Says:

    Problem 2.2 - second bullet:
    “Anyone holding the camera can take a picture of someone they know very well, and then pass the camera to that person.”
    Do they /have/ to pass the camera after taking only one picture? Or can, for example, I get the camera, take a picture of three people, and pass the camera to one of them?

  10. admin Says:

    No, you take the picture of “someone” you know very well, and then pass it on to them. i.e one person only.

  11. Sarvani Says:

    In question 1.1 it is given that T(n,0) = T(n, n) = 1. Is this right? Because this means that n is always greater than m and if n = m then the answer is just 1 … Also, T(n, n) = T(n-1, n) + T(n-1, n-1) will definitely be greater than 1 …

  12. Sarvani Says:

    Sorry - it is 1.2

  13. admin Says:

    I should have clarified that T(i,j) for i

  14. admin Says:

    I should have clarified that T(i,j) for i < j is zero. Also, T(n,n) is a boundary case, which you hit as you start calculating T(n-1, m), T(n-2, m) and so on. So it doesn’t make sense to apply the recurrence to it really. Or, if you prefer, T(n,n) = T(n-1,n) +T(n-1,n-1) = T(n-1,n-1) = T(n-2,n-2) all the way down to T(1,1) = 1

  15. M. Carlo Says:

    Just to be sure on how you want it submitted….
    You want (at least) two pages per problem, the first of which is just the problem, right?

  16. admin Says:

    Correct. and don’t forget the cover sheet.

  17. B. Search I Says:

    Q3) is it okay to have summation notation in our answer? or do we need to expand it out should we come across such a thing?

  18. admin Says:

    unless there’s a really good reason (like there *is* no closed form), I expect summations to be collapsed.

Leave a Reply