Unit 1 Reference Material PDF
Unit 1 Reference Material PDF
Unit 1 Reference Material PDF
•B ⊆ 𝐴 {1, 2} ⊆ {1,2,3}
•C ⊆ 𝐴 {1, 3} ⊆ {1, 2, 3}
•D ⊆ 𝐴 {3} ⊆ {1,2,3}
Basic Concepts of Set Theory: Inclusion and
Equality of sets
• A = {{1},2, 3}
• {1} ∈ A
• {{1}, 2} ⊆ 𝐴
• {{1}} ⊆ 𝐴
• {2, 3} ⊆ 𝐴
Basic Concepts of Set Theory: Inclusion and
Equality of sets
• Two sets A and B are said to be equal iff A ⊆
𝐵 𝑎𝑛𝑑 B ⊆ 𝐴.
• Example:
• A = {1,2,4} B = {1, 2, 2, 4}
•A = B
• A = {1, 4, 2} B = {1, 2 , 4}
•A = B
• P = {{1,2}, 4} Q = {1, 2, 4}
•P ≠ Q
Basic Concepts of Set Theory: Inclusion and
Equality of sets
• A set A is called a proper subset of set B if A ⊆ 𝐵 and
A ≠ 𝐵.
• It is denoted as A ⊂ 𝐵.
• A = { 1, 2} B = { 1, 2, 3, 4}
•A ⊂ 𝐵
Basic Concepts of Set Theory: Inclusion and
Equality of sets
• A set is called a universal set if it includes every set
under discussion.
• A universal set is denoted by E.
Basic Concepts of Set Theory: Inclusion and
Equality of sets
• A set which does not contain any element is called an
empty set or null set.
• It is denoted by ∅.
Set Theory
• N = {0, 1, 2, 3,...}, the set of natural numbers
• Z = {..., −2, −1, 0, 1, 2,...}, the set of integers
• Z+ = {1, 2, 3,...}, the set of positive integers
• Q = {p/q | p ∈ Z, q ∈ Z, and q ≠ 0}, the set of rational
numbers
• R, the set of real numbers
• R+, the set of positive real numbers
• C, the set of complex numbers
The notation for intervals of real numbers.
• When a and b are real numbers with a<b, we write
• [a, b]={x | a ≤ x ≤ b}
• [a, b) = {x | a ≤ x < b}
• (a, b]={x | a < x ≤ b}
• (a,b) = {x|a<x<b}
• [a, b] is called the closed interval from a to b and (a, b)
is called the open interval from a to b.
Example
• The set {N, Z, Q, R} is a set containing four elements, each of which is
a set.
• The four elements of this set are
• N, the set of natural numbers;
• Z, the set of integers;
• Q, the set of rational numbers; and
• R, the set of real numbers.
Empty Set
• There is a special set that has no elements. This set is
called the empty set, or null set, and is denoted by ∅.
• The empty set can also be denoted by { } (that is, we
represent the empty set with a pair of braces that
encloses all the elements in this set). Often, a set of
elements with certain properties turns out to be the
null set.
• For instance, the set of all positive integers that are
greater than their squares is the null set. A set with
one element is called a singleton set.
Singleton Set
• A set with one element is called a singleton set.
• A common error is to confuse the empty set ∅ with
the set {∅}, which is a singleton set.
• A useful analogy for remembering this difference is to
think of folders in a computer file system. The empty
set can be thought of as an empty folder and the set
consisting of just the empty set can be thought of as a
folder with exactly one folder inside, namely, the
empty folder.
Venn Diagrams
• Sets can be represented graphically using Venn diagrams, named after
the English mathematician John Venn, who introduced their use in
1881.
• In Venn diagrams the universal set U, which contains all the objects
under consideration, is represented by a rectangle. (Note that the
universal set varies depending on which objects are of interest.)
• Inside this rectangle, circles or other geometrical figures are used to
represent sets.
• Sometimes points are used to represent the particular elements of
the set.
• Venn diagrams are often used to indicate the relationships between
sets.
Example
• Draw a Venn diagram that represents
V, the set of vowels in the English
alphabet.
• We draw a rectangle to indicate
the universal set U, which is the
set of the 26 letters of the English
alphabet.
• Inside this rectangle we draw a
circle to represent V . Inside this
circle we indicate the elements of
V with points
Subset
• The set A is a subset of B if and only if
every element of A is also an element of B.
• We use the notation A ⊆ B to indicate that
A is a subset of the set B.
• We see that A ⊆ B if and only if the
quantification ∀x(x ∈ A → x ∈ B) is true.
• Note that to show that A is not a subset of
B we need only find one element x ∈ A
with x ∉ B.
• Showing that A is a Subset of B
• To show that A ⊆ B, show that if x belongs to A then x also belongs to B.
• Showing that A is Not a Subset of B
• To show that A ⊆ B, find a single x ∈ A such that x ∉ B.
The Size of the Set
• Let S be a set. If there are exactly n distinct elements in S where n is a
nonnegative integer, we say that S is a finite set and that n is the
cardinality of S. The cardinality of S is denoted by |S|.
• Example:
• Let A be the set of odd positive integers less than 10.
• Then |A| = 5.
Example
• Let S be the set of letters in the English alphabet.
Example
• Let S be the set of letters in the English alphabet.
• Then |S| = 26.
Power Set
• Given a set S, the power set of S is the set of all
subsets of the set S. The power set of S is denoted by
P(S).
• What is the power set of the set {0, 1, 2}?
• P({0, 1, 2}) = {∅,{0},{1},{2},{0, 1},{0, 2},{1, 2},{0, 1,
2}}.
• Note that the empty set and the set itself are
members of this set of subsets.
Example
• What is the power set of the empty set? What is the power set of the
set {∅}?
Example
• What is the power set of the empty set? What is the power set of the
set {∅}?
• A × B = {(a, b) | a ∈ A ∧ b ∈ B}.
Example
• What is the Cartesian product of A = {1, 2} and B
= {a, b, c}?
• A × B = {(1, a), (1, b), (1, c), (2, a), (2, b), (2, c)}.
Example
• Show that the Cartesian product B × A is not equal to the
Cartesian product A × B, where A = {1, 2} and B = {a, b, c}?
•A × B × C =
{(0, 1, 0), (0, 1, 1), (0, 1, 2), (0, 2, 0), (0, 2, 1), (0, 2,
2), (1, 1, 0), (1, 1, 1), (1, 1, 2), (1, 2, 0), (1, 2, 1), (1,
2, 2)}.
Example
• A = {1, 2}. What is A X A?
Example
• A = {1, 2}. What is A X A?
• A X A = {1,2} X {1,2}
De Morgan Law
A∪B=B∪A
A∩B=B∩A
Example
Generalized
Unions
•A∪B∪C
• It contains those
elements that are
in all of A, B, and
C.
Generalized
Intersections
•A∩B∩C
• It contains those
elements that are
in at least one of
the sets A, B, and
C,
Example
• Let A = {0, 2, 4, 6, 8}, B = {0, 1, 2, 3, 4}, and C = {0, 3, 6, 9}. What are A
∪ B ∪ C and A ∩ B ∩ C?
• 𝐧!/( 𝐧1 ! 𝐧2 ! … 𝐧𝐤 ! )
Permutation
• A number of different permutations of the letters of the word
JISSISSITTI is
• 11! / 1! 4! 4! 2! = 34650
Combination
• How many different committees of three students can be formed
from a group of four students?
• There are four ways to choose the three students for the committee,
where the order in which these students are chosen does not matter.
Combination
• Let S be the set {1, 2, 3, 4}.
• Then {1, 3, 4} is a 3-combination from S.
• Note that {4, 1, 3} is the same 3-combination as {1, 3, 4}, because the
order in which the elements of a set are listed does not matter.
Combinations
• An r-combination of elements of a set is an unordered selection of r
elements from the set.
• Thus, an r-combination is simply a subset of the set with r elements.
• The number of r-combinations of a set with n elements, where n is a
nonnegative integer and r is an integer with 0 ≤ r ≤ n, equals
n n!
C(n, r) = =
r r! n − r !
n n
• 0
= n
=1
n
• 1
=n
n 1
• r
= ∙ P(𝑛, 𝑟)
r!
n n n−1
• r
= × r−1
r
• The number of r-combinations with repetition that can be selected
from a set of n elements is 𝐧+𝒓−𝟏
𝐫
.
Example
• nCr = nCn−r
n! n! n!
• = = = nCr
n− n−r ! n−r ! n−n+r ! n−r ! r! n−r !
Example
• How many ways are there to select five players from a 10-member
tennis team to make a trip to a match at another school?
• Solution:
The number of such combinations is C(10, 5) = 10!/ 5! 5! = 252.
Example
• A group of 30 people have been trained as astronauts to go on the
first mission to Mars. How many ways are there to select a crew of six
people to go on this mission (assuming that all crew members have
the same job)?
• C(30, 6) = 30!/ 6! 24!
=30 · 29 · 28 · 27 · 26 · 25/ 6 · 5 · 4 · 3 · 2 · 1
= 593,775
Example
• How many poker hands of five cards can be dealt from a standard
deck of 52 cards?
• Solution: Because the order in which the five cards are dealt from a
deck of 52 cards does not matter, there are
C(52, 5) = 52!/5!47!
Example
• How many poker hands of five cards can be dealt from a standard
deck of 52 cards?
• Solution: Because the order in which the five cards are dealt from a
deck of 52 cards does not matter, there are
C(52, 5) = 52!/5!47!
= 52 · 51 · 50 · 49 · 48 / 5 · 4 · 3 · 2 · 1
= 2,598,960.
• Also, how many ways are there to select 47 cards from a standard
deck of 52 cards?
N
N
N N 0 N N−1 1 N N−2 2 N 0 N N N−𝑗
x+𝑦 = 𝑥 𝑦 + 𝑥 𝑦 + 𝑥 𝑦 + ⋯+ 𝑥 𝑦 = 𝑥 𝑦𝑗
0 1 2 N 𝑗
j=0
BINOMIAL COEFFICIENT
𝐧 𝐧
=
𝒋 𝐧−𝒋
𝐧+𝟏 𝐧 𝐧
= +
𝐣+𝟏 𝒋 𝐣+𝟏
𝐧 𝐧
𝐈𝐟 = 𝐭𝐡𝐞𝐧 𝐞𝐢𝐭𝐡𝐞𝐫 𝐚 = 𝐛 𝐨𝐫 𝐚 + 𝐛 = 𝐧
𝒂 𝒃
BINOMIAL COEFFICIENT
Discrete Mathematics
• Reference Books:
• J. P. Tremblay and R. Manohar, Discrete Mathematical Structures with
Applications to Computer Science, Tata McGraw-Hill,1997.
• S. Lipschutz and M. L. Lipson, Schaum’s Outline of Theory and Problems of
Discrete Mathematics, 2nd Ed., Tata McGraw-Hill,1999.
• K. H. Rosen, Discrete Mathematics and its applications, Tata McGraw-Hill, 6th
Ed., 2007.
• David Liben-Nowell, Discrete Mathematics for Computer Science, Wiley
publication, July 2017.
• Eric Gossett, Discrete Mathematics with Proof, 2nd Edition,Wiley publication,
July 2009.