Tuesday, 28 October 2014

Week 7

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.



Tuesday, 21 October 2014

Week 6

This past week, we continued to talk about proofs. We emphasized on using the proof structure. We also talked about how to immediately approach a problem in which we have to prove a statement. If we have a statement that uses quantifiers, we have to assume that the domain if there is a for all statement, and pick a value for a variable if that variable is followed by an existential quantifier. We also have to assume the antecedent. For every quantifier, we have to indent when we pick a value of the quantifier or assume the domain, as well as assuming the antecedent.
For example:
∀ x ∈ ℝ, ∀ y ∈ ℝ, x > y ⇒ ⌊x⌋ ≥ ⌊y⌋
Assume x ∈ ℝ. # Domain assumption for x.
   Assume y ∈ ℝ. #Domain assumption for y.
       Assume x > y # Assume antecedent .


       Then x > y⇒ ⌊x⌋ ≥ ⌊y⌋  #Introduce ⇒
   Then ∀ y ∈ ℝ, x > y ⇒ ⌊x⌋ ≥ ⌊y⌋   #Introduce ∀
∀ x ∈ ℝ, ∀ y ∈ ℝ, x > y ⇒ ⌊x⌋ ≥ ⌊y⌋   #Introduce ∀

The middle part is the proof. Once we prove a statement, we state what we have proved at the end by indenting sequentially. This is the structure we always follow, and like I said above, this is how we approach every problem in the beginning, whether we know the proof or not, because this is what gets us going. Then we think about what to put in the middle that will show the validity of the statement. This is a very useful technique because it makes the proof easy to understand and read. It also helps to keep us organized.

Similar to the October 18 blog of this blogger (http://csc165progress.blogspot.ca/), we both find that we have to do similar proofs in MAT137 and CSC165. However, in CSC165, we have to use a specific type of structure and organize it in a specific manner, and similar to what the other blogger mentioned, I also lose marks if I don't use words or a small paragraph to explain what I am doing. Sometimes my entire proof in MAT137 is a paragraph with math steps inside the paragraph.

One way I think I can improve on using the structure effectively is by proving statements that I already have proved in MAT137 and using the structure of CSC165 on those statements. I believe that this will effectively improve my ability to use the proof structure properly, and I won't have to worry about thinking about the contents of the proof much. This will give me an opportunity to directly practice my ability on using the proof structure.

Tuesday, 14 October 2014

Week 5

This past week, we continued talking about proofs, and we learned some more proof techniques. We learned about proof by contradiction, and we continued to use the contrapositive. One useful technique I learned is that when we have trouble proving a statement, we can take the contrapositive of the statement and use a direct proof for the contrapositive. This is equivalent to proving the original statement. This is especially useful when proving 'if and only if' statements.
For example:
For all integers n, n is even if and only if n^2 is even.
It is difficult to prove that if n^2 is even then n is even. So we can take the contrapositive and say:
If n is odd, then n^2 has to be odd.
Then we can use a direct proof to prove the contrapositive:
Let n=2k+1 for some integer k.
Then n^2= 4k^2 + 4k + 1= 4(k^2 + 4k) +1, which is odd.

Although I didn't use the proof structure above, this example is one way where using the contrapositive can be very useful.

Looking back at the annotated lecture slides, I find it difficult to prove some statements without looking at the solution and memorizing it. One way I can improve my skills to prove basic statements is by practicing by tackling some problems myself on the practice section of the course notes. I can also find some problems on the internet and try to prove some theorems using the skills learned in class, so I can become better at solving problems.

My perception of what I should do to improve is similar to that of another blogger. On the last paragraph of the Week 5 slog (http://csc165maks.blogspot.ca/), this blogger also feels that to get a better grasp of the content, he/she needs to solve problems and practice herself. She also feels that using the contrapositive in many situations can make a problem much more simplified, so that is always something to consider and think about when having difficulty proving something directly.

Monday, 6 October 2014

Week 4

This past week was a thrill. In the beginning of the week, I had a lot of trouble understanding the material covered in the tutorial, (proving equivalencies of implications and statements), but after receiving the solutions to the tutorial excersices in the tutorial, I began to understand how to form the proofs and use the laws properly to prove equivalencies. I am happy that I am finally beginning to understand the material in this class.


I am happy that we used Venn Diagrams in class to illustrate the associative property and the distributive property in class. It showed me how the laws are true, although one of the distributive laws seemed surprising, as we don’t use the same logic in our everyday conversations. I also found that working on the assignment improved some of my skills as it made me focus on the material and sharpen my skills, especially when it comes to negating implications and writing in symbolic form. However, the one thing I still struggle with is coming up with an example for making an existential statement true and a statement involving the intersection of two sets false. I am referring to Question 4 of the assignment. I learned that making the antecedent false and the resultant true can still mean that the implication is true. It is called ‘vacuous truth’. Overall, working on this assignment was a wonderful experience.

I think that finding problems like these on the internet and asking the professor for practice problems will sharpen my skills with the course content. Also, drawing out Venn Diagrams myself of some of the laws of logic will help me understand why those rules are true. It is nice to see the professor do it, however doing it myself will ensure that I understand the nature of the laws.
I feel as though my experience in the course is different to that of another blogger (http://yahuiliuslog165.blogspot.ca/), who in his/her week 4 blog, mentioned that this course has similar content to that of MAT137. The blogger also said that he/she finds the concepts of this easy. I do not find the concepts easy and I feel as though we manipulate quantifiers in limit type proofs in this class. In MAT137, we did not go into depth of what a limit is formally. We learned the formal definition and learned how to use it. I find it interesting that for this blogger, the proofs in MAT137 seem to help him/her in this course.


I look forward to preparing for the test this coming Wednesday!