L01 - Introduction+Proposition
L01 - Introduction+Proposition
COLLEGE OF ICT
IS 143
Discrete Structure
Lecture 1
Instructor
Dr. Joseph Cosmas
Kijitonyama Campus
Block A,
Room No. A023
[email protected]
Objectives
The objectives of this course are to:
1) Develop the fundamental understanding of discrete
mathematical structures such as propositional logic, predicate
logic, sets, relations, graphs and their applications in
Computer science and engineering.
Proof Techniques
Discrete Probability
Course Info.
Primary Text:
W.D. Wallis, A Beginner's Guide to Discrete Mathematics,
Springer, 2011.
James L. Hein, Discrete Structures, Logic, and
Computability, Jones & Bartlett Learning, 2010.
Kenneth Rosen, Discrete Mathematics and Its
Applications, 7th Ed., McGraw Hill, 2011.
Gordon J. Pace, Mathematics of Discrete Structures for
Computer Science, Springer, 2012.
Harriett Capron (1996), Essentials of Computing (2nd
Edition), Prentice Hall
Course Info.
Course Conduct
30 Lecture Hours
15 Tutorial Hours
Course Assessment:
Coursework: Accounts for 40%
Assignments: 20%
Mid-Term: 20% (one or two tests)
Propositional variables: P, Q, R, S, . . .
I ain’t goin’.
Binary Logical Operator
Binary
Truth Table
o Conjunction: ‘and’
P Q PQ
Symbol:
0 0 0
o Example: P - ‘I am going to town’ 0 1 0
Q - ‘It is going to rain’ 1 0 0
1 1 1
o Equivalent forms:
If P, then Q
P implies Q
If P, Q
P only if Q
P is a sufficient condition for Q
Q if P
Q whenever P
Q is a necessary condition for P
More terminology:
Q P is the CONVERSE of P Q
Q P is the CONTRAPOSITIVE of P Q
Binary Logical Operator (Cont…)
Example:
P: I go to Harry’s
Q: I go to the country
R: I will go shopping
If......P......or.....Q.....then....not..…R
(P V Q)R
Truth Table
Constructing a truth table:
o count in binary
Truth Table
P Q R (P V Q)R
0 0 0 1
0 0 1 1
0 1 0 1
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 0
Application Proposition Logic (Exercise)
1. How can this English sentence be translated into a logical
expression?
o “You can access the Internet from campus only if you are a computer
science major or you are not a freshman.”
o “You cannot ride the roller coaster if you are under 4 feet tall unless
you are older than 16 years old.”