Discrete Mathematics: Adjective Synonyms
Discrete Mathematics: Adjective Synonyms
Discrete Mathematics: Adjective Synonyms
Group theory
Counting Theory
Probability
Graph Theory
Trees
Boolean Algebra
Sets Introduction
Types of Sets
Sets Operations
Algebra of Sets
Multisets
Inclusion-Exclusion Principle
Mathematical Induction
Introduction of Sets
Examples:
1. Let P = {k, l, m, n}
The cardinality of the set P is 4.
by |θ| = 0
Sets of even positive integer is not a finite set.
2. Infinite Set
A set which contains infinite number of elements is called an infinite
set.
Example − S={x| x ∈ N and x>10}
3. Subset
A set X is a subset of set Y (Written as X⊆Y) if every element of X
is an element of set Y.
Example 1 − Let, X={1,2,3,4,5,6} and Y={1,2}. Here set Y is a
be equal.
Example − If A={1,2,6} and B={6,1,2}, they are equal
Set Union
The union of sets A and B (denoted byA∪B) is the set of
elements which are in A, in B, or in both A and B.
Hence, A∪B={x|x∈A OR x∈B}.
Example
If A={10,11,12,13} and B = {13,14,15},
then A∪B={10,11,12,13,14,15}. (The common element
occurs only once)
Set Intersection
The intersection of sets A and B (denoted by A∩B)
is the set of elements which are in both A and B.
Hence, A∩B={x|x∈A AND x∈B}.
Example − If A={e,f,g} and B={f,g,h} then A∩B={f}.
Set Difference/ Relative Complement
The set difference of sets A and B (denoted by A–B) is
the set of elements which are only in A but not in B.
Hence, A−B={x|x∈A AND x∉B}.
Example − If A={10,11,12,13} and B={13,14,15},
then (A−B)={10,11,12} and (B−A)={14,15}. Here, we can
see (A−B)≠(B−A).
Symmetric Difference of Sets:
The symmetric difference of two sets A and B is the set containing
all the elements that are in A or B but not in both and is denoted
by A ⨁ B i.e.
A ⨁ B = (A ∪ B) - (A ∩ B)
Example: Let A = {a, b, c, d}
B = {a, b, l, m}
A ⨁ B = {c, d, l, m}
Complement of a Set
The complement of a set A (denoted by A′) is the
A = {1, 2, 3}
Ac = {all natural numbers except 1, 2, and 3}.
Cartesian Product / Cross Product
− A×B={(a,1),(a,2),(b,1),(b,2)}
The Cartesian product of B and A is written as
− B×A={(1,a),(1,b),(2,a),(2,b)}
Example: Let P = {a, b, c} and Q = {k, l, m, n}.
The Cartesian product of P and Q is
Power Set
Power set of a set S is the set of all subsets of S including the empty set.
The cardinality of a power set of a set S of cardinality n is 2n. Power set
is denoted as P(S).
Example −
{a,c,d},{b,c,d}
Subsets with 4 elements − {a,b,c,d}{a,b,c,d}
Hence, P(S)={{∅},{a},{b},{c},{d},{a,b},{a,c},{a,d},{b,c},{b,d},{c,d},{a,b,c},
{a,b,d},{a,c,d},{b,c,d},{a,b,c,d}}
|P(S)|=24=16
Note − The power set of an empty set is also an empty set.
|P({∅})|=20=1
Partitioning of a Set
Partition of a set, say S, is a collection of n disjoint
subsets, say P1,P2,…Pn that satisfies the following
three conditions −
Pi does not contain the empty set.
[Pi≠{∅} for all 0<i≤n]
The union of the subsets must equal the entire
original set.
[P1∪P2∪⋯∪Pn=S]
The intersection of any two distinct sets is empty.
[Pa∩Pb={∅}, for a≠b where n≥a,b≥0]
Example
Let S={a,b,c,d,e,f,g,h}
One probable partitioning is {a},{b,c,d},{e,f,g,h}{a},{b,c,d},
{e,f,g,h}
Another probable partitioning is {a,b},{c,d},{e,f,g,h}
Let A = {l, l, m, m, n, n, n, n}
B = {l, m, m, m, n},
A ∪ B = {l, l, m, m, m, n, n, n, n}
2. Intersections of Multisets: The intersection of two multisets A
and B, is a multiset such that the multiplicity of an element is
equal to the minimum of the multiplicity of an element in A and B
and is denoted by A ∩ B.
Let A = {l, l, m, n, p, q, q, r}
B = {l, m, m, p, q, r, r, r, r}
A ∩ B = {l, m, p, q, r}.
3. Difference of Multisets: The difference of two multisets A and B,
is a multiset such that the multiplicity of an element is equal to the
multiplicity of the element in A minus the multiplicity of the element
in B if the difference is +ve, and is equal to 0 if the difference is 0 or
negative
Example:
Let A = {l, m, m, m, n, n, n, p, p, p}
B = {l, m, m, m, n, r, r, r}
A - B = {n, n, p, p, p}
4. Sum of Multisets: The sum of two multisets A and B, is a multiset
such that the multiplicity of an element is equal to the sum of the
multiplicity of an element in A and B
Example:
Let A = {l, m, n, p, r}
B = {l, l, m, n, n, n, p, r, r}
A + B = {l, l, l, m, m, n, n, n, n, p, p, r, r, r}
5. Cardinality of Sets: The cardinality of a multiset is the
number of distinct elements in a multiset without
considering the multiplicity of an element
Example:
A = {l, l, m, m, n, n, n, p, p, p, p, q, q, q}
The cardinality of the multiset A is 5.
Ordered Set
It is defined as the ordered collection of distinct objects.
Example:
Roll no {3, 6, 7, 8, 9}
Week Days {S, M, T, W, TH, F, S}
Algebra of Sets