2014年10月22日星期三

CSC165H1 SLOG6 BY MINGYU LIU

Mingyu Liu @ CSC165H1 SLOG6


We finally finish the last part of Proof of Math in this week’s lecture which is proof by cases, and we are taking steps to learn algorithm analysis and asymptotic notation. This week is extremely interesting because it is all about computer science instead of boring Math; therefore I feel comfortable in learning this week’s lecture.

I believe that there are no difficulties in the material this week, after learning proof for three weeks; the last part of proof is easy for me. The concluding part of proof is called proof by cases which can simply understand as splitting your argument into different cases and prove the conclusion for each case. The important thing to remember before going anywhere further is that a valid proof must cover all possibilities which mean that you just have to consider all possible cases of one given proof. For example, to prove if you have a problem in your life, then no need to be concerned. In order to make your proof valid, you have to initially consider all possible cases in the question. As we can see in the question, there are totally two cases containing in this question which are ‘YES’ and ‘NO’; In this two cases, proof can be written like this, you have a problem in your life, can you do something about it? Cases 1, which indicate YES, then you do not need to worry about this. However, case 2, which indicates NO, is also that need not be concerned about this. This example seems funny, but it actually illustrates valid proof is equal to consider all cases. In other words, if you cannot review all possible cases, your proof will be meaningless.

After Larry gives us some examples and exercises of proof by cases, he then allows us to review all proof patterns. Basically, two categories in proof patterns, the first one is named introduction rules which you can simply understand by making smaller statement into a larger statement. For instance, in conjunction introduction, assuming C is red and C is fast; therefore C is red and fast.
Another rule is elimination rules. This rule is the reverse version of the introduction rules which mean that making a larger statement into smaller statement. For instance, in negation elimination prove the car is not red is false, we can get the car is red.

The latter part of this week’s lecture is algorithms. Bubble sort and merge sort are two sorting algorithms. Bubble sort is a simple sorting algorithm that works by repeatedly stepping through the list to be sorted, comparing each pair of adjacent items and swapping them if they are located in the wrong order (reference from Wikipedia). Merge sort is somewhat working to divide a list into two parts and set it in order. Through observation, we learn that merge sort is faster than bubble sort and with larger input size; the advantage of merge  sort over bubble sort becomes larger. Running time is what Larry also introduces this week. Basically, we count the number of steps of a function, but it depends on the input will execute how many steps. This part is only an introduction of algorithm this week. I will continue to learn the algorithm next week further.


In conclusion, this week’s lecture covers proofs and algorithm which is not so difficult for me. For proof, Larry provides me a small but useful tip which I feel extremely helpful is that practice is one of your most important weapons for solving proof, because the more times you practice, the more familiarities you will get with proof patterns.

Sixth slog
Mingyu Liu

2014年10月16日星期四

CSC165H1 SLOG5 BY MINGYU LIU

Mingyu Liu @ CSC165H1 SLOG5


The beginning of this week’s slog, I am going to start with the material which I grasp well. It is called non-Boolean function which means that a function that is not return True or False.In other words, the function will return to neither True nor False statement. For example, ‘X > 5’ is a boolean function, but x^2 is non-Boolean function. The symbol of non-Boolean function is written in this way ‘LXJ’ which means floor of ‘x’. I will provide an example to further explain what this symbol does. Assuming you want get the largest integer of 3.5, the symbol ‘LXJ’ is what I suggest to use. If you write your function by doing ‘L3.5J’, your function will return to ‘3’ which is the largest integer of ‘3.5’. One more thing that the professor wants us to remember is that ‘LXJ’ is not a variable. This means that you cannot write a equation like for all ‘LxJ’ is in R, because a quantifier is not applicable to ‘LXJ’.

After non-Boolean part, professor also teaches us about prove something false which means that disprove something. The simple way of understanding this part is using an example which is that ‘how to disprove all cars are red? Just prove there is a car that is not red’. Some tips from professor are that make sure to negate it correctly firstly, and then prove the negated statement, finally draw examples to obtain intuition.

In this week I have learned about proof about non-Boolean functions, proof something false and proof about limits. I believe the most difficult part in this week is ‘prove about limits’; therefore, I will continue working on this part on the weekend.

Fifth slog
Mingyu Liu

2014年10月7日星期二

CSC165H1 SLOG4 BY MINGYU LIU

Mingyu Liu @ CSC165H1 SLOG4

In this week’s lecture I have learned something more challenging than language of Math which is proof. According to course note, basically, proof is an argument that convinces someone who is logical, careful and precise and it is a tool in order to help you to understand why something is true. In the three hours lecture, I not only learn about what are proofs, but also the form and detail of proofs.

The form and method of proof is what I grasp well in this week’s lecture. To start, proof form is used to describe what method do you use in your step of proofing a statement and make the audience more easily to understand. Assuming I do not write any explanations in my proof form, the audience will certainly get confused if they have limited math knowledge, because the methods which I use to proof the statement are based on my math knowledge; therefore, they will not understand what I am trying to say unless I provide my explanations in my proof form clearly. For example, a question which is asked to proof ‘if n is odd, then n^2 must be odd’. There is a step which is square both sides in order to get some algebra. If I write the method in English or our symbolic form, the audience will understand this step sufficiently. As a result, proof form is an essential part of proofing.

Another thing which I learn very well is using contrapositive method to proof. The contrapositive method is a useful tool, because is hard to proof in original direction sometimes. For instance, when I proof something that is odd, but it is hard to proof in normal direction; therefore, we can proof not even instead of odd.

The hardest thing I have learned in this week is contradiction which I will ask TA in this week’s tutorial. Overall, professor teaches me some useful tips about course material and hopefully I will get a great mark in term test.

Forth slog
Mingyu Liu