Saturday, 27 October 2012

Test Back

I've had the chance to do some interviews for internships and now I am glad that CSC148, CSC165 instructors taught the things they did because all the material taught were highly relevant to the technical questions I received. I am glad that I had paid attention in those classes. It makes me now want to pay more attention to CSC236.

I got my test back and did very well, but got a mark off because I didn't put induction hypothesis as a comment in the first question. I feel lucky that I put it in 2nd and 3rd question.


edit (Dec. 5th): I think I changed the date on this post but don't know how to change it back?

Saturday, 20 October 2012

Quizzes and Repeated Substitution

I've been doing bad on the quizzes because it's difficult to stay on top of the material all the time.

Repeated substitution sounds complicated but I guess this just means substitute the formula until you see a pattern.

If T(n) + 2T(n/2) + n + 1

Then, T(2^k) = 2 T(2^k-1) + 2^k + 1

= 2 ( 2T(2^k-2) + 2^k-1 + 1) + 2^k + 1
= 2^2 T(2^k-2) + 2^k + 2 + 2^k + 1
.
.
.
= 2^kT(2^k-k) + k2^k + 2^k - 1
= n + n logn + n - 1
= nlogn + 2n - 1

Saturday, 13 October 2012

Finished First Assignment and First Test

Reactions on first assignment. I thought that while it was significantly harder than 165 assignments, it was fair. The last question I got the answer after staring at it for 5 hours while also doing other stuff. That's a problem that I have which is that if I am stuck on a CS/math question, I am literally stuck for eternity. Fortunately, I didn't get stuck on the first test, so I finished it very fast.