


























































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



























































6.1 Relation Basics 6.2 n-ary Relation 6.3 Representing Relations 7.1 Graph Basics 7.2 Graph Terminology 7.3 Graph Representations 7.4 Connectedness 7.5 Euler and Hamilton 7.7 Planar Graphs 7.8 Coloring
Sections Skipped
5.3, 5. 6.4, 6.5, 6.
A proposition is a statement that is true
or false. Atomic propositions p,q,r… are combined to form compound propositions using the following logical connectives :
Logical operators/connectives are defined by
Negation truth table (unary):
Binary truth tables:
p q (^) p q p q p q p q (^) p q T T F F
10 0010 1111 1001
Given an implication p q
the converse is q p while the contrapositive is ¬ q ¬ p
last column is all TRUE for tautology relevant columns equal for equivalence
TRUE starting from supposed tautology 1 st^ proposition from 2nd
Excluded middle Negating creates opposite Definition of implication in terms of Not and Or
y x R (x,y ) and x y R (x,y ) may
Logical English Logical Puzzles
Precise English statements can be expressed in terms of logical constructs. In cases of English puzzles, this can be useful for solving.
EG: Can there be a man that shaves exactly all the people that don’t shave themselves.
statement satisfiable:
Natural numbers: N = { 0, 1, 2, 3, 4, … }
Integers: Z = { … - 3, - 2, - 1, 0, 1, 2, 3, … }
Positive integers: Z+^ = {1, 2, 3, 4, 5, … }
Real numbers: R
Rational numbers: Q (decimal numbers with repeating decimal expansion)
2 nd^ version reminds us that |2^ s| = 2 |s|
A B = { (a, b) | a A and b B } |A 1 A 2 … An| = |A 1 ||A 2 | … |An|
Complement
Union
Intersection
Disjoint Union
A
A B