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

2014年9月30日星期二

CSC165H1 SLOG3 BY MINGYU LIU

Mingyu Liu @ CSC165H1 SLOG3

This is the third time of writing SLOGs for CSC165, in this week's lecture, we have finished talking about the language of MATH which is called 'Bi-implication'. Initially, professor posts some slides in order to review the former lecture which is a means to place a foundation for further lecture as well as recall my memories. For example, P => Q is equivalent to -/P v Q and -/(P => Q) is equivalent to P ^ -/Q. I believe this part provides me a great tip which I can be used for exercises in the lecture after. Then our professor talks about bi-implication which can be utilized to translate from conjunction of two disjunctions and also from disjunction to conjunction. The method of doing that requires mathematical ways which are distributive way. After bi-implication, the lecture also covers the negation of bi-implication which is a little difficult than bi-implication because it requires 'De Morgan's law'; therefore, I believe this part is what I grasp well in this week's lecture.
Moreover, transitivity and proof which I believe to be not that difficult. For example, the transitivity of this expression (P(x) => Q(x) ^ (Q(x) => R(x)) is P(x) => R(x). the reason why it is not difficult, because professor uses a visual way to teach us the definition of transitivity which means that if P implies Q and Q implies R, then Q must include P and R must include Q; therefore, R includes P for sure. For the proof part, professor teaches us about how to find the chain with ^ and v. For example, if there are no particular features in the expression, you will just have to start from downward to upward; otherwise, you can start from upward.
The interesting part of this week's lecture is that the professor makes a small activity of lecture which requires a group of three people and thinks the problem together. This is absolutely interesting because it improves the interaction between the lecture and students.
In conclusion, we have finished the language of math in this week's lecture and the difficult part which I encounter is mixed quantifiers. According to the professor, the language of math is not only for using symbols but understanding and expressing in a logical way. Finally, I hope my first test will be good.

Third slog
Mingyu Liu

2014年9月25日星期四

CSC165H1 SLOG2 BY MINGYU LIU

Mingyu Liu @ CSC165H1 SLOG2


In the lecture of this week, Professor Danny Heap continues to teach us about language of math which mainly concentrates on conjunction, disjunction, negation and Demorgan's laws. i will start with the first topic which the Professor has covered in the lecture. Conjunction is news to me; therefore, my primary aim is to understand it by knowing its definition which is combining two statements by claiming they are both true. For instance, there are for two statements which are both true. The first statement says that car 'X' is red and the second statement has a saying which is car 'X' is a Ferrari; therefore, the conjunction of these two statements is called Car 'X' is a Ferrari and red. This is a case which is told by using human language, but using mathematical language is far more different to express. in human language,  we use 'and' to combine two statements while we use symbol '^' to combine statements in Math. This means that 'statement 1' and 'statement 2' is the same as 'statement 1' ^ 'statement 2'.

After the introduction of conjunction, professor also talks about disjunction which we use 'v' to describe it in Math and 'or' in human language. i understand it in a different way which is that treating disjunction as a set of 'union'. For example, 'Statement 1' V 'Statement 2' equals to 'Statement 1' U 'Statement 2'. Negation is what I grasp well in this week's lecture which using 'not' and the symbol '-\' to prove statements that are negative. For example,'Not all red cars are Ferrari'can be written in this way: '-\(Axec,R(x)=>F(x)).

Professor also teaches us some useful tips which are changing 'not all... ' In 'There is one that is not... 'and 'there does not exist... 'to 'all...are not'. These tips are useful because we can understand what the question requires us to do both quickly and efficiently; therefore, the way of solving the problem is just change the word simply.

There are no difficulties of this week's lecture, but the exercise of TUT is a little bit difficult for me. For instance, question number two of exercise which makes me encounter some problems which is that I initially write all the answers to get true, but the correct answers are different. After the teaching of TA, I find out during TUT.

In conclusion,lectures and tutorials of this week continue the topic of how to change human language into mathematical expression. Professor does superb work to help me understand the lecture and TA  helps me to resolve the problems of exercise with patience. Next week, I will continue to collaborate hard in both lecture and tutorial.

Second slog
Mingyu Liu

2014年9月18日星期四

CSC165H1 SLOG1 BY MINGYU LIU

Mingyu Liu @ CSC165H1 SLOG1

I will start at something I have leaned something new in this week's lectures.
Professor begins with visualization with Venn Diagram contains two essential symbols which are "X" and "O". The meaning of first symbol "X" is that there is no element in this area, for instance, if there is no element in the intersection area of "P" and "Q", "X" is what you need to indicate this situation. The second symbol "O" contains meaning which is there are some elements exist in somewhere, for example, if there has some elements in the intersection area of "P" and "Q", writing "O" in the intersection area indicates there are elements in the intersection area.

Predicate and implication is what I grasp well in this week's course. Predicate simply indicates that you can use the easy way to write "X" is in the set "L" into "L(X)" which is exactly the same. Moreover, "L(X)" without specifying "X" is an open sentence which means that "X" can be substituted for specifying the "X". Implication contains assumption and conclusion which can be submitted in "P=>Q". The most important thing of implication is that assumption requires conclusion, but the assumption does not cause conclusion.

The most difficult part in the lecture of Tuesday is statement and sentences. The reason why it is difficult because the difference between sentences and statement is confusing. For example, A statement is a sentence but it is a sentence that is not open. However, sentence is not always a statement. Due to the confusion, when I am facing exercises, I cannot really determine which one is the sentence and statement.To solve this problem, I will do some exercises and ask professor if necessary.

The teaching style is exactly what i enjoy the most during this week's lecture, because instead of using tedious definition to teach students, professor replaces traditional course material by using an idiom which is called "Sometimes there are more than one way, even in math. Some ways are more commonly used than others." In my opinion, students are more attracted by interesting instead of boring teaching style. Professor uses idiom which to make students focus on course; therefore, students grasp knowledge better in course when they are interested in course.

When I was doing my exercises this week, I first confused about where should I put each letter which is A, T, P in the correct posion into Venn Diagram. The tutorial actually is really helpful which helps me to understand my question. For example, A be the set of all possible python programs which mean that A indicates the rectangle of the Venn Diagram.

In conclusion, lectures and tutorials of this week were superb experience which taught me how to utilize a mathematical expression to transform human language into simple mathematical language, and also, use Venn Diagram to verify statements. Difficulties did occur in this week which are the differences between statements and sentences. Overall, CSC165 is an interesting course which definitely deserves time to study hard.

My very first Blog
Mingyu Liu