This past week, we ended off with the unit on proofs by learning some very important rules. Although we have been talking about proofs for a long time, this week we went into detail by talking about proofs by cases, which I found to be pretty easy, but like always, even though the concepts seem simple, approaching a problem is not easy. Some rules that I found a little confusing are:
implication elimination: If you know A implies B, the additional information A allows you to conclude B. On the other hand, the additional information not B allows you to conclude not A.
universal elimination: If you know for all x in X, P(x ), the additional information a in X allows you to conclude P(a).
Although I understand that the first statement has to do with the contrapositive, it is hard to imagine it as true logically. Also, I don't understand the meaning the of the universal elimination rule.
We also started talking about algorithms. Specifically, we talked about the run times of algorithms. We started off with a while loop and we talked about the number of steps the algorithm would take in the worst case. When I practice with this, sometimes I forget to add the loop guard as well when counting the steps, but like always, I need to work on practice problems to get better at this. We also introduced the formal definition of the big Oh. Although this week, we didn't work on proving statements involving the big Oh much, we did talk about what it means for a function to be in the big Oh of another. It has to do with growth rate. If a function has a smaller growth rate than another function, it is in the big Oh of the function with a larger growth rate.
I found counting steps a little confusing in the beginning. Why do we have to account for the loop guard within a while loop and again for outside the while loop? I will need to visit a prof during office hours to receive assistance with this concept.
Similar to what the blogger (http://yahuiliuslog165.blogspot.ca/) said in his/her blog on October 29, I understand the basic idea of big Oh, but if I were to be asked to write down the definition, I would struggle. My experience this week is similar to that of the blogger of whom's link I included. We both feel as though we need to practice with examples and work with it to become proficient with the concept and to be able to write down the definition formally. Hopefully we will work with it more in class in the days to come.
No comments:
Post a Comment