Tuesday, 18 November 2014

Week 10

This past week, we continued lessons on Big Oh and Big Alpha. We talked about general Big Oh statements rather than proving whether certain functions, or if the Worst case Insertion sort is in the Big Oh or Big Alpha of a particular function. The material felt a little more challenging at first and strange as well. This is due to the fact that I am more used to using functions to see if one function is in the Big Oh of another or not. However, these proofs require me to use the definition of Big Oh more thoughtfully than before. Sometimes, it is hard (at least for me) to figure out which B or which c to pick to satisfy a claim.
For example:
For all f, g in F, if f is in big Oh of g, then g is in big Alpha of f.
This claim is true, because if f grows no faster than g, then g grows no slower than f.
But which B and c to choose as per the definition!?
If f is in Big Oh of g, then there exists some c and B such that for all n, n ≥B implies f ≤ c*g
Then f*(1/c) ≤ g
Then choose c' = 1/c and choose B' = B to prove g is in big Alpha of f.

This is the thought process that I have difficulty applying to many cases.

One thing I found very nice this past week is that Professor Heap walked us through many general statements. Instead of just doing the proof, he asked us to think about and do every step of each proof as he did them in class to get us to think about it and learn effectively. He explained most steps graphically as well to illustrate why a particular B or c is chosen and to show us what is going on.

In order to improve my skills, I will need to go to Prof Larry Zhang's slides to look for some problems he may have presented in class and attempt to prove some general statements myself. If I have difficulty, I will look at the thought process he presented and then attempt to do the proofs myself. If I have difficulty, I can look at the solution and learn from it, and keep doing more problems. This secondary resource (Prof Larry Zhang's slides) can be used to my advantage in this way to help me improve my skills. I will also work on the tutorial exercises the weekend before the tutorial in order to gain mastery of the material before the quiz, to prevent last minute panicking!

I feel as though my experience this week is similar to that of another blogger in his/her November 17 blog (http://kbslog.blogspot.ca/). This blogger also feels as though this week, the introduction of general Big Oh proofs feels a little strange since we are used to Big Oh proofs with straight forward functions. I also had a hard time following Prof Danny's explanations on Friday similar to this blogger, as the problems got more complex, but I was able to follow the more simple statements on Monday and Wednesday. In this case, both the blogger and I should go back and take a look at the annotated slides and work on understanding this Friday's material.

No comments:

Post a Comment