Chapter 5 : Logic and Boolean Algebra Flashcards
What is the basis of all mathematical reasoning, and of all automated reasoning
- Logic
What makes up a correct mathematical argument?
- Proof
What is called when we prove a mathematical statement is true?
- Theorem
What is used to verify that computer programs produce the correct output for all possible input values?
- Proofs
What is a proposition?
- Declarative sentence
- Means a sentence that declares a fact ( Which return True or False )
What is a Notation?
- Variables are used to represnt propositions
List out 4 conventional letters used for propositional variables ( Notation )
- p
- q
- r
- s
List out 2 values for truth value of proposition
- True - T
- False - F
Determine which is / isn’t a propositional logic and list out the truth values of those that are propositions
1. “Listen”
2. “What time is it?”
3. “x + 2 = 2 and x + y = z”
4. 2 is a prime number
5. Kuala Lumpur is the capital of Malaysia
- Not a proposition
- Not a proposition
- Not a proposition
- Question doesn’t provide values for x , y and z
- A proposition , True
- A proposition , True
Determine which is / isn’t a propositional logic and list out the truth values of those that are propositions
1. 2 + 3 = 5
2. 5 + 7 = 10
3. x + 2 = 11
4. 2 + 3 = 4
5. Read this carefully
6. Cat is an insect
7. Answer this question
8. What time is it?
- A proposition , True
- A proposition , False (5 + 7 not equal to 10 )
- Not a proposition
- Question doesn’t provide values for x
- A proposition , False (2 + 3 not equal to 4 )
- Not a proposition
- A proposition , False ( Cat isn’t an insect )
- Not a proposition
- Not a proposition
What are compound compositions?
- Mathematical statements are constructed by combining one or more propositions
- Formed from existing propositions using logical operators
How are compound compositions formes?
- From existing propositions using logical operators
What does logical operations include?
- Comparisons of 2 data
- Result will be either True or False
How can logical operations be represented ?
- Using truth table ( True - 1 , False - 0 )
What determined the number of rows inside a truth table?
- All the possible values taken by the propositions involved in the statement
- If a compound statement containes n proposition variables there will need to be 2^n rows in the truth table
List out all 6 nouns for Logical Connectives
- Negation
- Conjunction
- Disjunction
- Exclusive Disjunction ( XOR )
- Implication / Conditional
- Biconditional
What is the connectives and symbol for negation?
- Connectives
- not
- Symbol
- ~
- ¬
- Think of it as a Not Gate
What is the connectives and symbol for conjunction?
- Connectives
- and
- but
- Symbol
- ( ^ )
What is the connectives and symbol for disjunction?
- Connectives
- or
- Symbol
- ∨
What is the connectives and symbol for implication / conditional?
- Connectives
- if .. (p) .. then only .. (q) ..
- Symbol
- p → q
What is the connectives and symbol for exclusive disjunction?
- Connectives
- exclusive or ( xor )
- Symbol
- ⊕
What is the connectives and symbol for negation?
- Connectives
- if ..(p).. and only if ..(q)..
- Symbol
- p ↔ q
List out the truth table of Negation
p ¬p
T F
F T
- Not Gate
- It is the statement “It is not the case that p”
- Opposite truth value of p
Find the negation of the following and then express in simple english
1. Today is Friday
2. At least 10 inches of rain fell today in Miami
3. 1 + 1 = 2
4. Lions cannot fly
5. I will study hard, or I will not pass this course
6. 1 + 2 = 3 or 2 + 1 = 3
- Today is not Friday
- Less than 10 inches of rain fell today in Miami
- At Least ( > 10 ) , Negation Less than ( 10 < )
- 1 + 1 ≠ 2
- Lions can fly
- I will not study hard, and I will pass this course
- = ~ ( 1 + 2 = 3 ) and ~ ( 2 + 1 = 3 )
= 1 + 2 ≠ 3 and 2 + 1 ≠ 3