Professional Documents
Culture Documents
ENG’G,
PhD. T. M. (lacking Dissertation)
Electronics Engineering Department
CIT - University
Introduction
Sets and Elements
Universal set, empty set, power sets
Subset and superset
Finite and infinite sets
Set Operations
Product of Sets
Fundamental Set Properties
2
Discrete: consisting of distinct or
unconnected elements
Discrete Mathematics
Discrete Mathematics is a collection of
mathematical topics that examine and use
finite or countably infinite mathematical
objects.
3
Definition: Well-defined collection of distinct
objects
Members or Elements: part of the collection
Roster Method: Description of a set by listing the
elements, enclosed with braces
Examples:
V = {a,e,i,o,u}
P = {red, blue, yellow}
Membership examples
“a belongs to the set of V” is written as:
aV
“j does not belong to the set of V:
jV
4
Set-builder method
A = { x | x S, P(x) } or A = { x S | P(x) }
Example:
5
Common Standard Symbols which denote
sets of numbers
N : The set of all natural numbers (i.e.,all
positive integers)
Z : The set of all integers
Z+ : The set of all positive integers
E : The set of all even integers
6
Subsets
“X is a subset of Y” is written as X Y
Example:
X = {a,e,i,o,u}, Y = {a, i, u} and
Z= {b,c,d,f,g}
Y Z, since a Y, but a Z
7
Superset
X and Y are sets. If X Y, then “X is contained in
Y” or “Y contains X” or Y is a superset of X,
written Y X
Proper Subset
X and Y are sets. X is a proper subset of Y if X
Y and there exists at least one element in Y that is
not in X. This is written X Y.
Example:
X = {a,e,i,o,u}, Y = {a,e,i,o,u,y}
X Y , since y Y, but y X
8
Set Equality
X and Y are sets. They are said to be equal if every
element of X is an element of Y and every element of Y
is an element of X, i.e. X Y and Y X
Examples:
{1,2,3} = {2,3,1}
X = {red, blue, yellow} and Y = {c | c is a primary
color} Therefore, X=Y
Empty (Null) Set
A Set is Empty (Null) if it contains no elements.
The Empty Set is written as
The Empty Set is a subset of every set
9
Finite and Infinite Sets
X is a set. If there exists a nonnegative integer n such
that X has n elements, then X is called a finite set with
n elements.
If a set is not finite, then it is an infinite set.
Examples:
Y = {1,2,3} is a finite set
P = {red, blue, yellow} is a finite set
E , the set of all even integers, is an infinite set
, the Empty Set, is a finite set with 0 elements
10
Cardinality of Sets
Let S be a finite set with n distinct elements,
where n ≥ 0. Then |S| = n , where the
cardinality (number of elements) of S is n
Example:
If P = {red, blue, yellow}, then |P| = 3
Singleton
A set with only one element is a singleton
Example:
H = { 4 }, |H| = 1, H is a singleton
11
Power Set
For any set X ,the power set of X ,written
P(X),is the set of all subsets of X
Example:
If X = {red, blue, yellow}, then P(X) = { ,
{red}, {blue}, {yellow}, {red,blue}, {red,
yellow}, {blue, yellow}, {red, blue, yellow} }
Universal Set
An arbitrarily chosen, but fixed set
12
Venn Diagrams
Abstract visualization of a Universal set, U as a
rectangle, with all subsets of U shown as circles.
Shaded portion represents the corresponding set
Example:
In Figure 1, Set X, shaded, is a subset of the Universal
set, U
13
Union of Sets
14
Intersection of Sets
15
Disjoint Sets
16
Difference
17
Complement
18
19
Ordered Pair
X and Y are sets. If x X and y Y, then an ordered
pair is written (x,y)
Order of elements is important. (x,y) is not
necessarily equal to (y,x)
Cartesian Product
The Cartesian product of two sets X and Y ,written
X × Y ,is the set
X × Y ={(x,y)|x ∈ X , y ∈ Y}
For any set X, X × = = × X
Example:
X = {a,b}, Y = {c,d}
X × Y = {(a,c), (a,d), (b,c), (b,d)}
Y × X = {(c,a), (d,a), (c,b), (d,b)}
20
21
Venn diagram application
Example:
In a survey involving 1000 respondents on
brand preferences, 120 prefer brand X only,
200 prefer brand Y only and 150 prefer brand
Z only, 370 prefer either brand X or Y but not
Z, 450 prefer brand Y or Z but not X, and 370
prefer either brand Z or X but not Y and non
prefers all the three brands at a time. How
many persons have no brand preference?
22
Introduction
Propositions
Conjunction
Disjunction
Negation
23
Definition: Methods of reasoning, provides
rules and techniques to determine whether
an argument is valid
Theorem: a statement that can be shown to
be true (under certain conditions)
Example: If x is an even integer, then x + 1 is an
odd integer
This statement is true under the condition
that x is an integer is true
24
A statement, or a proposition, is a declarative
sentence that is either true or false, but not both
Uppercase letters denote propositions
Examples:
P: 2 is an even number (true)
Q: 7 is an even number (false)
R: A is a vowel (true)
The following are not propositions:
P: My cat is beautiful
Q: My house is big
25
Truth value
One of the values “truth” (T) or “falsity” (F) assigned to
a statement
Negation
The negation of P, writtenP , is the statement obtained
by negating statement P
Example:
P: A is a consonant
P: it is the case that A is not a consonant
Truth Table
P P
T F
F T
26
Conjunction - Any
propositions can be
combined by the word AND
to form a compound p q
composition called the
conjunction. F F F
Let P and Q be statements.The F T F
conjunction of P and Q, written
P ^ Q , is the statement formed T F F
by joining statements P and Q
using the word “and” T T T
The statement P ^ Q is true if
both p and q are true;
otherwise P ^ Q is false
Truth Table for Conjunction:
27
Disjunction
Let P and Q be statements.
The disjunction of P and Q,
written P v Q , is the
statement formed by joining
statements P and Q using
the word “or” p q
The statement P v Q is true F F F
if at least one of the F T T
statements P and Q is true; T F T
otherwise P v Q is false
T T T
The symbol v is read “or”
Truth Table for Disjunction:
28
Implication
Let P and Q be
statements.The
statement “if P then Q”
is called an implication
or condition.
The implication “if P p q p q
then Q” is written P
Q
P is called the
p q
hypothesis, Q is called F F T
the conclusion
Truth Table for F T T
Implication:
T F F
T T T
29
Implication
Let P: Today is Sunday and Q: I will wash the car.
PQ:
If today is Sunday, then I will wash the car
The converse of this implication is written Q P
If I wash the car, then today is Sunday
The inverse of this implication is P Q
If today is not Sunday, then I will not wash the car
The contrapositive of this implication is Q P
If I do not wash the car, then today is not Sunday
q p
30
Biimplication
Let P and Q be statements. p q
The statement “P if and F F T
only if Q” is called the F T F
biimplication or T F F
biconditional of P and Q T T T
The biconditional “P if
and only if Q” is written P p q p q p q
Q
“P if and only if Q”
Truth Table for the
Biconditional:
31
Precedence of logical
connectives is:
highest
^ second highest
v third highest
→ fourth highest
↔ fifth highest
32
Tautology
A statement formula A is said to be a tautology if the truth
value of A is T for any assignment of the truth values T
and F to the statement variables occurring in A
Contradiction
A statement formula A is said to be a contradiction if the
truth value of A is F for any assignment of the truth values
T and F to the statement variables occurring in A
Contingency – a compound proposition that is neither a
tautology nor a contradiction.
33
Tautology
p -p pv-p
F T T
T F T
Contradiction
p -p p^-p
F T F
T F F
34
Logically Implies
A statement formula A is said to logically imply a
statement formula B if the statement formula A → B is a
tautology. If A logically implies B, then symbolically we
write A → B
Logically Equivalent
A statement formula A is said to be logically equivalent
to a statement formula B if the statement formula
A ↔ B is a tautology. If A is logically equivalent to B ,
then symbolically we write A B
35
© Dr. Eric Gossett 36
Predicate or Propositional Function
Let x be a variable and D be a set; P(x) is a sentence
Then P(x) is called a predicate or propositional
function with respect to the set D if for each value of
x in D, P(x) is a statement; i.e., P(x) is true or false
Moreover, D is called the domain (universe) of
discourse and x is called the free variable
37
Quantifier
The two basic quantifiers are “for all”
and “there exists”.
We often use the symbol ∀ to denote
“for all” and the symbol ∃ to denote
“there exists.”
Example:
All automobiles have wheels.
This statement makes an assertion about all
automobiles. It is true, because every automobile does
have wheels.
There exists a woman who is blonde
This statement is of a different nature. It does not claim
that all women have blonde hair—merely that there
exists at least one woman who does. Since that is true,
the statement is true.
38
Universal Quantifier
39
Existential Quantifier
Let P(x) be a predicate and let D be the universe of
discourse. The existential quantification of P(x) is
the statement:
There exists x, P(x)
The symbol is read as “there exists”
x D, P( x) or x, P( x)
Bound Variable
The variable appearing iN:x, P( x)
or
x, P( x)
40
Negation of Predicates (DeMorgan’s Laws)
x, P( x) x, P( x)
Example:
If P(x) is the statement “x has won a race”
where the domain of discourse is all
runners, then the universal quantification of
P(x) is x, P( x) , i.e., every runner has
won a race. The negation of this statement
is “it is not the case that every runner has
won a race. Therefore there exists at least
one runner who has not won a race. x, P( x)
Therefore:
x, P( x) x, P( x)
41
© Dr. Eric Gossett 42
The Boolean Algebra on B= {0, 1} is defined as follows:
+01 · 01
0 01 0 00
1 11 1 01
43
Duality
The dual of any Boolean theorem is also a theorem.
Parentheses must be used to preserve operator precedence.
45
Introduction
Functions
Relations
46
Relation
A relation is a set of ordered pair.
All subsets from the Cartesian product of set A
and set B (AxB)
Notation
When we have the property that one value is
related to another, we call this relation a binary
relation and we write it as
xRy
Function
A function is a relationship between two sets of
numbers. It is also defined as a relationship that for
each first element there is one and only one second
element.
X Y
a 1
b 2
c 3
d 4
5
A function is said to be an injection if it is one-to-one.
Onto Functions
A function f from A to B is called onto or
surjective, if and only if for every element
b B there is an element a A with
f a =b
X Y
a 1
b 2
c 3
d
One-to-one Correspondence
1 20 20 1
2 80 80 2
3 120 120 3
4 160 160 4
Problem
x 12
Answer : f 1
x
2
Function Composition
f g x f g x
Operation of Functions
f g x f x g x
f g x f x g x
fg x f x g x
f / g x f x / g x
Problem
a. p q x 2x 1 3x 1
2
b. pq 5 228
c. p q x 6x 1
2
d. q p 5 28
Problem
Answer : 8
Topic Outline:
1. Number System
2. Significant Figures
3. Greatest Common Factor
4. Least Common Multiple
5. Counting Techniques
6. Combination
7. Permutation
8. Probability
Number System
Complex Numbers
Whole
Negative
Numbers
Natural
Zero
Number System
Complex Number
- Is an expression involving a combination of real and
imaginary numbers
- They are written in the form :
a + bi
where:
a and b are real numbers
Real Numbers
- Are the rational and irrational numbers taken together.
- Example: { 2, 5, -4, 0, 2/3, -3/4, √2, , etc.}
Imaginary Numbers
- Are the square roots of negative numbers
- Example: √-2 = i √2
Number System
Rule:
To find the GCF, factor the given
numbers in canonical form and
MULTIPLY the common prime factors
with least exponent in the
given numbers
Least Common Multiple
The Least Common Multiple of two or more numbers
is the least integer that is a multiple of each of the
given numbers
Rule:
To find the LCM, factor the given numbers in
canonical form and MULTIPLY all unique prime
factors and the common factors with the highest
exponent.
Sample Problems: Least Common
Multiple
1. Find the LCM of the numbers 15, 21, 36.
2. Ben exercise every 12 days and Isabel
every 8 days. Ben and Isabel are
exercised today. How many days will it be
until they exercise together again ?
PROBABILITY
If an experiment is performed in two stages,
with m ways to accomplish the first stage and
n ways to accomplish the second stage, then
there are mn ways to accomplish the
experiment.
This rule is easily extended to k stages, with
the number of ways equal to
n1 n2 n3 … nk
(n r )!
r
r!(n r )!
r
0 Impossible
Definitio
ns
The result of a single trial in a probability experiment
is an outcome.
P( A and B) P( A B) P( A) P( B)
A A B
B
P( A or B) P( A B) P( A) P( B) P( A B)
If events A and B are mutually exclusive, then the
addition rule is simplified to:
P( A or B) P( A B) P( A) P( B)
Examples
THANK YOU.