Sunday, 30 November 2014

Week 12

This past week, we learned some very interesting proof techniques. Rather than going to Professor Danny's lectures, I want to the Tuesday night lecture instead (due to work conflicts) so this blog is based on on Larry's lecture. One very interesting proof technique we learned is called simple induction. The idea of this is to test a base case of a theorem. Then we assume P(n) is true, where P(n) is a predicate true for some n and we test to see if P(n) implies P(n+1).

The idea of induction is similar to that of falling dominoes. If we tip over domino 1 in a line of dominoes, then we know domino 1 falls. We also know domino 2 falls since domino 1 knocks it over, and so on. So if we assume domino n falls, then domino n+1 also falls because domino n hits domino n+1. We use this idea to prove many theorems. I find induction to be a very useful method because it helps to prove many theorems that are very difficult to prove using direct proof. One such example is: 
3n-1 is a multiple of 2 for all integers n.
First we test the base case: P(1) = 3-1 = 2 which is a multiple of 2.
Then we assume P(n). We must show P(n+1) is true.
Then 3n+1-1 = 3*3n -1 = (2*3n) + (3n-1)
(2*3n) is divisible by 2 since when divided by two, the expression results of an integer 3n, and (3n-1) by our inductive hypothesis. So P(n) implies P(n+1) and our statement is true.
This is an example of how using induction can substitute a direct proof, since it can be very difficult to derive the statement above.

I found it nice that the professor used the domino analogy to explain the concept of induction to us, because without it, it would be difficult to understand why induction works and the theory behind induction. It was also nice to see the professor give us some examples in class and walk us through it step by step, as it that gave us an opportunity to solve problems with him, giving us the ability to try some problems at home involving simple induction. I found the concept of induction simple enough to follow, and I did a few problems at home. It was very beneficial to go to office hours and have some of my practice work corrected.

In order to improve my skills on induction, I think that it will be beneficial to continue finding some basic problems on the internet and solving them on my own to get practice. Although induction is not a concept that we are required to master for the final exam, I believe that working on some proof problems using induction and learning strong induction will be beneficial for the final exam, because there will be some problems in the final exam that will be easier to solve using induction as per the professor. Therefore, by practicing induction, I will be improving my skills in proving theorems and I may benefit by solving some problems on the final exam more quickly. I can also improve my skills on induction by referring to a calculus book and reading the section on induction, as it may go more into depth on the topic of induction and give me some interesting problems to work on that haven't been presented in this course.

I feel as though my experience is similar to that of the blogger (http://yuejiang165.blogspot.ca/) in her final blog entry. I too had a difficulty proving the first question on A3 not because it was something I couldn't solve, but mainly because I had to prove that abs(x+y) ≥ abs(x-y), and I did not know how to fit that aspect within my proof. In other words, I struggled with the structure of the proof for this question. I also agree with the blogger (http://arvindrameshslog165.blogspot.ca/) in his last paragraph of his final blog entry which states that he finds the concepts of induction not too easy and not too hard. Similar to him, I also found the material very simple once I went to office hours and worked on some problems. I am glad to see that my peers are enthusiastic and are working hard, and that my experience and thoughts are very similar to these bloggers.

It is time for me to get ready for the final exam, and I will need to utilize the office hours of the professor and the information in the course notes for review!

Tuesday, 25 November 2014

Problem Solving Section

Problem Solving Section
I found this problem that was challenging and relevant to the topic of induction introduced:

Use Mathematical Induction to prove that if S is a non-empty set of positive integers, then S has a smallest element (also known as the Well Ordering Property)

Understand the Problem

Polya mentions that the first step of solving any problem is reading the question, presumably carefully. By reading the problem, I know that I must use induction in my proof of the Well Ordering Property. This means that I must have a base case, assume P(n) and prove P(n+1). If I am able to do that successfully, I will have solved the problem.

Make a Plan

One way I thought of proceeding is by doing a proof by contradiction using induction. This seems like the most direct way of proceeding. I can assume that S does not have a smallest element and is non-empty, but if the base case is in the set S (the base case being 1), then 1 must be the smallest element. This leads to a contradiction. I can proceed with my proof using induction using this idea.

Carry Out the Plan

Let A = {n∈ \mathbb{N}| n is not an element of S}. Assume that S is not empty and that it does not have a least element.
Let P(n) : n∈A.
We know that 1 is not an element of S because if 1 was an element of S, then it would be the smallest element in S as it is the smallest element in \mathbb{N}. In this case, we would be done. So 1 is an element of A and P(1) is true.

Let P(k) be true.
If k+1 is in S, while no element from 1 and k is in S, then k+1 would be the least element in S. Therefore (k+1) is not an element of S. Thus P(k+1) is true and by Mathematical induction, A=\mathbb{N} and S is empty.

Therefore, we have a contradiction as we assumed S to be non-empty. Therefore if S is non-empty, it must have a least element.

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.

Monday, 10 November 2014

Week 8-9

This past week, we continued to talk about Big Theta and Big Omega. We took polynomials and proved if they are in big Oh of another polynomial. We did the same sort of examples for Big Theta as well. I feel as though I have improved in my understanding of Big Theta and Big Oh since last week because I understand the proofs given to us in class and I am able to solve similar problems myself.

I personally feel as though the big Oh problems presented last week are simple enough to solve. If we are to prove that a polynomial is in the big Oh of another polynomial, we simply over estimate the left hand side and underestimate the right hand side until we get both polynomials to have the same highest degree, and we set the breakpoint to be 1. Although there are many ways to prove a polynomial is in the Big Oh of another polynomial, this way works for me the best.

One thing I find difficulty in doing is proving a polynomial is not in the Big Oh or Big Theta of another polynomial. One way I can practice doing this is by going to the other professor's website and take a look at his examples, and try them on my own. I believe this will be an excellent way for me to practice using the concepts learned in class, and if I am not able to solve the problem, then the proof will be there for me to learn from. I believe this will sharpen my skills in disproving big Oh problems. I also need to practice some of my calculus skills in order to prove some functions are or not in the Big Oh of other functions, because L'Hopital's rule can come in handy, and I haven't been differentiating well lately since I dropped MAT137 (since I my transfer credits for calculus got approved).

I find that my experience is similar to that of another blogger (http://tsod165.blogspot.ca/) in her Week 9 blog. This blogger feels that there is some overlap between CSC108 and CSC165 when it comes to learning about run times. This makes the content of CSC108 easier. I also think that the test went well and was fairly simple, and I am happy to see that bloggers like this one feel the same way. However I don't agree with the blogger when she says that "I realized that the same technique used for the proof of \floor{x+1}=\floor{x}+1 doesn't necessarily work for \floor{x+z}=\floor{x}+z."
Assume x∈ℝ
 Then ⌊x⌋ ≤ x #By definition part 2.
 Then ⌊x⌋+1 ≤ x+1
 Then ⌊x⌋+1 ≤ ⌊x+1⌋ #By definition part 3, because ⌊x⌋+1 ∈ ℤ.
 Then ⌊x+1⌋ ≤ x+1 #By definition part 2.
 Then ⌊x+1⌋ -1 ≤ x
 Then ⌊x+1⌋ -1≤ ⌊x⌋
 Then ⌊x+1⌋ ≤ ⌊x⌋+1 #By definition part 3, because ⌊x+1⌋ -1∈ℤ by definition part 1.
 Then ⌊x+1⌋ ≤ ⌊x⌋+1 ∧ ⌊x⌋+1 ≤ ⌊x+1⌋ #Introduce ∧
 Then ⌊x + 1⌋ = ⌊x⌋ + 1 #Equality
∀x ∈ ℝ, ⌊x + 1⌋ = ⌊x⌋ + 1 #Introduce ∀

I believe that by replacing 1 by z in the proof above, where z is any integer, will prove that
∀x ∈ ℝ, ⌊x + z⌋ = ⌊x⌋ + z. I don't see how the same technique can't be used because z has the exact same properties as 1 does.