Greetings, audience.
This blog feels more and more like an intimate space for my inner thoughts about CSC165. Mostly because it often feels like I have 0 traffic and 0 post views (literally, I actually do). That's okay though. The company of me, myself, and I is more than enough. I mean, three is a crowd, right? There's some kind of english proverb about three being a crowd, no? *crickets chirping*
Moving on, then.
Today was the day of reckoning; a true test of skill. Yes, today was CSC165's Test 1 day. Armed with a double-sided, size 6 font cheat-sheet, I went into the test feeling overwhelmed, and frightened. I left feeling... ecstatic? Today was like the culmination of all of the concepts that I had been struggling with. However, the difference was that the test was formatted in such a way that it was very reflective of the practice test that Professor Heap had provided us with. It was more than fair, and still very challenging -- especially to people who were not prepared. However, it was very do-able to the people who had prepared by reviewing lectures, assignment one, past tests, and the course textbook. Kind and benevolent Heap. Compassionate Heap. Danny? Can I call you Danny?You took pity on these pathetic, miserable First Years, and you showed them the light. Hurrah.
For my cheat sheet, I prepared by consolidating information from all of the above mentioned resources, and doing my best to categorize this information by subject and concept. I included explanations or simple english translations of each law, including Transitivity, which ended up not being on the test. I feel that, despite not being on the test, that I have a stronger grasp of Transitivity. I do not regret spending time on this concept. YOLO.
I found that one of the questions on the test was very reflective of question 4 of Assignment 1. I had already had a strong grasp on the concepts of proving or disproving existential and universal statements, so this question ended up being very straightforward. In summary:
To prove a universal statement: you must prove that every element is an example -- that there is no counter example.
To disprove a universal statement: you must provide at least a single counter-example
To prove an existential statement: you must provide a single example
To disprove an existential statement: you must prove that every element is a counter-example -- that there is no example.
I believe that it's very important to be able to visualize statements in terms of sets -- to be able to determine whether proving a statement implies that a set must be occupied, or that a set must not be occupied. Not because every statement should be interpreted as a set -- but because it is important to be able to determine how to prove a statement true or false, and this is glaringly obvious with the aid of sets, especially at an introductory level. It is another aid to ensure that you are interpreting and understanding logical statements correctly. This concept becomes increasingly more difficult with the introduction of multiple quantifiers and multiple predicates.
Another concept on Test 1were the concepts of logic in Python (programming language). In summary:
(True not in ____) is logically equivalent to (not any ____)
- True not in = there is no true example, all are false
- This is similar to saying "all are not", "none are true", "not any"
- For all, not P(x)
(False not in _____)is logically equivalent to (all _____)
- False not in = there is no counter-example, all are True
- This is similar to saying "all are true", "none are false"
- For all, P(x)
(False in ____) is logically equivalent to (not all ______)
- This is similar to saying "there are some that are not", "there is a False", "not all are"
- There exists x such that P(x) is False
(True in ______) is logically equivalent to (any _____)
- This is similar to saying "There exists at least one example", "Any"
- There exists x such that P(x) is True
Therefore,
- not in = universal quantifier.
- in = existential quantifier
- any/not all = existential quantifier
- all/not any = universal quantifier
Another way to think about this: In English, when you ask someone about the existence of midnight snacks, you can phrase the question in a variety of ways:
"Are there any chips?" --->
any: is there at least one bag of chips? at least one example
"Aren't there any chips?" --->
not any: there are no chips? no example
"You ate all of the chips" --->
all: all of the bag were eaten, without any exception. the entirety. no counter-example.
"So, what you're saying is that not all of the chips were eaten" --->
not all: there is at least one counter-example. Yay! a bag of chips.
I think the moral of the story is that there better be some leftover chips. Or something like that. Overall, today was a lovely day. I will celebrate by eating copious amounts of junk food, and studying for my linear algebra quiz tomorrow. A quiz that I will most likely fail, because I have neglected it in lieu of studying for 165. Curses.