Discrete Structure Chapter 2.1 - Logic Circuits-29
Discrete Structure Chapter 2.1 - Logic Circuits-29
Discrete Structure Chapter 2.1 - Logic Circuits-29
Predicate
Universal Quantifier
Existential Quantifier
De Morgans Laws
Other Rules for Quantifiers
Analogy Between Sets and Statements
SSK3003
Discrete Structures
Predicate
An open sentence p(x) is a declarative sentence
that becomes a statement when x is given a
particular value chosen from a universe of
values. An open sentence is also known as a
predicate.
SSK3003
Discrete Structures
Example Predicate
Let p(x) = If x > 4, then x + 10 > 14 be an open sentence.
Let x U, where U = {1, 2, 3, 4, }. Find the truth value of
each statement formed when these values are substituted for
x in p(x).
p(1) is TRUE because 1 > 4 is FALSE.
p(2) is TRUE because 2 > 4 is FALSE.
p(3) is TRUE because 3 > 4 is FALSE.
SSK3003
Discrete Structures
Discrete Structures
Universal Quantifier
The statement
For all x U, p(x)
is symbolized by
x U p(x).
The above statement is TRUE if and only if p(x) is TRUE for every
x U.
The symbol is called the universal quantifier.
SSK3003
Discrete Structures
SSK3003
Discrete Structures
SSK3003
Discrete Structures
Existential Quantifier
The statement
There exists an x U such that p(x)
is symbolized by
x U p(x).
The above statement is TRUE if and only there is at
least one element x U such that p(x) is TRUE.
The symbol is called the existential quantifier.
SSK3003
Discrete Structures
SSK3003
Discrete Structures
SSK3003
Discrete Structures
10
De Morgans Laws
The rules for the negation of quantified
statements are
~[x U p(x)] [x U ~ p(x)]
~[x U p(x)] [x U ~ p(x)].
These rules are called De Morgans laws.
SSK3003
Discrete Structures
11
Discrete Structures
12
Discrete Structures
13
SSK3003
Discrete Structures
14
SSK3003
Discrete Structures
15
Discrete Structures
16
x [x
S T p(x) v q(x)]
Intersection:
x [x
S T p(x) ^ q(x)]
Complement:
x [x
S ~ p(x)]
Symmetric Difference:
x [x
S T p(x) q(x)]
Subset
(S T) x [p(x) q(x)]
Equal
(S = T) x [p(x) q(x)]
SSK3003
Discrete Structures
17
SSK3003
Discrete Structures
18
Summary Section
Statements containing variables are called
predicates and can be made into logical
statements with quantifiers. The quantifiers are
the symbols (for all) and (there exists).
These symbols refer to the particular universal
set for the variables in the predicate.
SSK3003
Discrete Structures
19
Summary Section
Important rules of predicate calculus include
the following
~[x U p(x)] [x U ~ p(x)]
~[x U p(x)] [x U ~ p(x)]
x y p(x,y) y x p(x,y)
x y p(x,y) y x p(x,y)
x y p(x,y) y x p(x,y)
SSK3003
Discrete Structures
20
Logic Circuits
Logic Circuits
NOT, AND and OR Gates
NAN and NOR Gates
XOR Gate
SSK3003
Discrete Structures
21
Logic Circuits
Logic circuits can be found in computers,
telephones, digital clocks, and television sets
plus a great many more devices. In a logic circuit
current flows through gates to an output line.
The input current to the gate has only two states,
ON (1) or OFF (0). The output depends upon the
type of gate in the circuit.
SSK3003
Discrete Structures
22
SSK3003
Discrete Structures
23
SSK3003
Discrete Structures
24
SSK3003
Discrete Structures
25
SSK3003
Discrete Structures
26
SSK3003
Discrete Structures
27
XOR Gate
SSK3003
Discrete Structures
28
Summary Section
Logic circuits contain NOT, AND, OR, NAND, NOR
and XOR gates.
Logic circuits frequently can be simplified
using the Table of Logical Equivalences.
SSK3003
Discrete Structures
29