Thursday, 20 November 2014

Week 9 and 10

In these two weeks, we begun analysing worst, best and average cases of a program. In week 9, we were introduced to big oh notation, and counting the number of steps in a program, which we later defined as the running time. We typically compared the running time of different sorting algorithms. In tutorial of the same week, we discussed how to find the total running time of programs and discovered that the total worst case running time of a program can be formulated by sigma notation. We also discovered that running time depends on the the length of the list of which we want to sort.

This allowed us to transition into our main topic for the week, which is Big oh proofs. We spoke about this briefly during earlier weeks of this course but it was more formally introduced this week. In our Tutorial exercise, we were given problems to work on which involved proving that a function is inside big oh provided that it satisfies the given definition.

In addition to big oh, we were also introduced to big omega proofs which computes the worst case of an algorithm. Both have similar definitions but with slight variations in inequality signs.

Overall, this week has been fairly challenging, however, I have been able to understand the basic structure of the proof and how it can be applied in different ways to various applications. I have a somewhat understanding of the theory behind proving big oh but I hope to further improve my understanding of big oh notation prior to the final exam.

No comments:

Post a Comment