Sunday, October 5, 2014

Review of The CSC165 Material Before The Test

Hi everyone. We are in October now and the first CSC165 test is right around the corner, so I thought it'd be a good idea to review the course material that we've learnt so far in my SLOG, as some kind of preparation.

Quantifiers

There is really not much about the quantifiers, so far we've learnt the universal quantifier (∀) and the existential quantifier (). An important thing to remember is that to prove a universal claim we need to show that there is no counter-example, and to falsify it just one counter-example would do the job. Also, to verify an existential claim giving just one satisfactory example is enough and to falsify it, it is needed to be shown that there are no examples.

Implication, Conjunction, Dis-junction and Negation

Implication is in the form of P Q, where P is called the antecedent and Q the consequent, it means if P, then Q. Which also means P is necessary for Q to be true and Q is sufficient for P. The only time that an implication is false, is when P is true and Q is false other than this, an implication is always true.A converse of an implication is when P and Q are switched (Q  P), and when Q is equivalent to its converse a double implication is in place (P  Q). There is also Conjunction()and Dis-junction(). Conjunction is when two statements are combined together and they are both true, it is equivalent to the intersection in sets. Conjunction is false, if one of the statements is false. Dis-junction is when two statements are combined together and at least one of them is true. The only time a dis-junction is false is if and only if both statements are false, dis-junction is also similar to union in terms of sets. The symbol "¬", represents negation in logical symbols, negation means exactly what it sounds like and is associated with the word "not" in English. For example: the negation of Q is, not(Q) ⇔ ¬(Q) ⇔ (¬Q), and while I'm on the subject of negation, I should mention the word "Contrapositive" as well, this means when an implication is conversed and antecedent and consequent are both negated ( ¬ ¬P). The contrapositive of an implication is equivalent to the implication itself. There are different relations between conjuctions, dis-junctions, implications and negations, such as: ¬(Q) ⇔ P¬Q, (Q) ⇔ ¬PQ, ¬(PQ) ¬P¬Q, ¬(PQ) ⇔ ¬P¬Q, the last two relations are also know as De Morgan's law. The real magic happens when quantifiers are thrown into the mix as well.

Laws of Arithmetic, Mixed Quantifiers and Proof Outline

 Laws of arithmetic such as commutative, associative and distributive are also used in logic and they'll come in handy for proofs. Another important subject to pay attention to is mixed quantifiers, this is important because the order of using an existential claim and a universal claim in a statement matters. For example, there exist an x for all y is different than saying for all y there exist an x, the first statement means that there exist only one x for all the ys, and the second statement means that there exist an x for each y but the value of x can be changed for each different y. Mixed quantifiers is an interesting subject when mixed with implications, conjunctions, disjunctions and sets for transforming an English statement into a symbolic logical format and vice versa. I have a feeling that all the material that we've learned so far were to lay the foundation for proofs, and the first step on how to write a good proof was introduced to us this week, which was the proof outline. Even though I had some previous knowledge about how to write a good proof, I learned something new and that was to always be skeptical of my proofs and to adjust my justifications and comments in writing a proof with the audience that I'm writing for.

Bring on the test!

This Wednesday is going to be the first challenge in CSC165, or technically the second challenge if I count the first assignment and I feel that I'm ready for it, So bring it on Danny. No I'm just kidding, please take it easy on us Prof. Heap.

p.s. I am really enjoying the tutorials.  




Sunday, September 14, 2014

1st(week,blog,slog,post)

Hello to all the Sloggers, CSC165 students/staff and anyone who is reading.

This is my first attempt at blogging and I feel really excited to express my ideas about CSC165. So after this post I can officially say that I am no longer a blog virgin.

prostitutes appeal to pope!

What a great first week it was at U of T, there was a buzz surrounding everywhere I went in the campus, and that was the case for CSC165 first class as well. To be honest I was not sure what I was going to get from this class, because of the title it holds; Mathematical Expression and Reasoning for Computer Science, it certainly felt and sounded like something new and like all new things there was uncertainty and excitement of a new challenge following it. Anyway, the ambiguity jokes were right on target and the whole class got a good laugh out of them. On the other hand, I realized that computers don't have a sense of humor, they follow logical approach and precision.

Give it some time and think it through

Now about the second class, everyone can have a bad day and I think this was my bad day. Maybe I forgot to drink my brain enhancing juice, but for some reason I struggled to make sense of the material in the class, so I left the class a little confused and deep in thought. It was until later that night that a shining light bulb appeared above my head. I realized I had to change my perspective about CSC165, I realized the way to dance with this course is with pure mathematical logic state of mind and a lot similar to MAT137. PROOF PROOF PROOF and always going back to definitions.

TGIF

Even if there was still a little confusion about the second day material, it was gone at the beginning of the third class when the Ven diagrams where used by Prof. Heap to explain. This is why I love Fridays, good things always happen, and it was no different for my Friday CSC165 class. The topic of how to approach a problem the right way was introduced and I learned the recipe of strategizing before jumping into solving a problem. Quantifiers and counter examples were discussed too.

I have to say I am really excited now that I have a much clear perspective on CSC 165 and I look forward to post as frequently as possible on here.