The third week of CSC165 got very challenging because it required clear concept about logic and mathematical expressions, which are the essential foundations of the course. The lecture this week covered a lot of materials, this included the use of conjunctions. disjunctions, negations. truth tables and finally manipulation laws. Although the lectures in the beginning two weeks introduced and covered some of the first 3 topics, this week's lecture was much more in depth and mathematical. At first, I found it very challenging to quickly adapt to the mathematical statements Prof Zhang presented. For example, if R(x): Car x is red and F(x): Car x is a Ferrari, using R(x) or F(x) is already sufficient to present "Car x is red or a Ferrari. Fortunately, the lecture used a lot of pictures of different cars to present the case and I was able to quickly understand specifically how the predicates worked. After lecturing on about conjunction and disjunction, Prof Zhang told an amusing joke:
"A logician’s wife is having a baby. The doctor immediately hands the newborn to the dad.
His wife asks impatiently: “So, is it a boy or a girl?”
The logician replies: “Yes.” "
Not only did I enjoyed this part of the class most, I found it really helpful when incorporating humor into the lecture as I was able to quickly understand fully how disjunction works (satisfying either of the conditions will make the statement true).
The next part of the lecture moved to negating predicates and quantifiers. At first, my understanding for negation was not very solid as I still didn't understand why the negation for "for all" is "there exist". Furthermore, I found negating "and" and "or" statements difficult. Yet, by going through the exercises shown on the slides and working with my peers, I was able to overcome my problems by visualizing Venn diagrams.
The final part of the lecture covered truth tables and laws formed through the use of truth tables. While at first I thought Venn diagrams can help us visualize all conditions, Prof Zhang showed the flaw of such technique by displaying how the visualization method fails when the number of predicates increases. Hence, constructing truth tables were necessary for computer scientists. As a student who enjoys mathematics, I find it very enjoyable when professor showed us how we can come up with logical proofs with the assist of truth tables, such as De Morgan's Law. I hope through this lecture I will be able to identify other laws and solve various complex mathematical problems in the future.