Unit 1 SET Theory Notes 2024
Unit 1 SET Theory Notes 2024
SET
Definition:
-A set is an unordered collection of different elements.
-That is a collection of distinct and well defined objects is called set.
-These objects are called elements or members.
-sets are usually denoted by capital letters A,B,C,… and the elements are denoted by small
letters.
-A set can be written explicitly by listing its elements using set bracket.
-If the order of the elements is changed or any element of a set is repeated, it does not make any
changes in the set.
-If A is a set and x is a elements of the set A, we write it as xϵA.
The set is represented by listing all the elements comprising it. The elements are enclosed within
braces and separated by commas.
Example 1 − Set of vowels in English alphabet, A={a,e,i,o,u}
Example 2 − Set of odd numbers less than 10, B={1,3,5,7,9}
Cardinality of a Set
Cardinality of a set S, denoted by |S|, is the number of elements of the set. The number is also
referred as the cardinal number. If a set has an infinite number of elements, its cardinality is ∞.
Example − |{1,4,3,5}|=4,|{1,2,3,4,5,…}|=∞|
If there are two sets X and Y,
|X|=|Y| denotes two sets X and Y having same cardinality. It occurs when the number of
elements in X is exactly equal to the number of elements in Y. In this case, there exists a
bijective function ‘f’ from X to Y.
|X|<|Y| denotes that set X’s cardinality is less than set Y’s cardinality. It occurs when
number of elements in X is less than that of Y. Here, the function ‘f’ from X to Y is
injective function but not bijective.
If |X|≤|Y| and |X|≥|Y| then |X|=|Y|. The sets X and Y are commonly referred as equivalent
sets.
Types of Sets
Sets can be classified into many types. Some of which are finite, infinite, subset, universal,
proper, singleton set, etc.
Finite Set
Infinite Set
A set which contains infinite number of elements is called an infinite set.
Example − S={x|x∈N and x>10}
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 subset of set X as all the elements of set
Y is in set X. Hence, we can write Y⊆X.
Example 2 –
Let, X={1,2,3} and Y={1,2,3}. Here set Y is a subset (Not a proper subset) of set X as all
the elements of set Y is in set X. Hence, we can write Y⊆X.
Proper Subset
The term “proper subset” can be defined as “subset of but not equal to”. A Set X is a proper
subset of set Y (Written as X⊂Y) if every element of X is an element of set Y and |X|<|Y|.
Example –
Let, X={1,2,3,4,5,6} and Y={1,2}. Here set Y⊂X since all elements in Y are contained
in X too and X has at least one element is more than set Y.
It is a collection of all elements in a particular context or application. All the sets in that context
or application are essentially subsets of this universal set. Universal sets are represented as U.
Example –
We may define U as the set of all animals on earth. In this case, set of all mammals is a
subset of U, set of all fishes is a subset of U, set of all insects is a subset of U, and so on.
Singleton set or unit set contains only one element. A singleton set is denoted by {s}.
Example − S={x|x∈N, 7<x<9} = {8}
Equal Set
If two sets contain the same elements they are said to be equal.
Example –
If A={1,2,6} and B={6,1,2}, they are equal as every element of set A is an element of set B
and every element of set B is an element of set A.
Equivalent Set
If the cardinalities of two sets are same, they are called equivalent sets.
Example –
If A={1,2,6} and B={16,17,22}, they are equivalent as cardinality of A is equal to the
cardinality of B. i.e. |A|=|B|=3
Overlapping Set
Two sets that have at least one common element are called overlapping sets.
In case of overlapping sets −
n(A∪B) = n(A) + n(B) − n(A∩B)
Example –
Let, A={1,2,6} and B={6,12,42}. There is a common element ‘6’, hence these sets are
overlapping sets.
Disjoint Set
Two sets A and B are called disjoint sets if they do not have even one element in common.
Therefore, disjoint sets have the following properties −
n(A∩B) = ∅
Example –
Let, A={1,2,6} and B={7,9,14} there is not a single common element, hence these sets are
disjoint sets.
Types of Sets
Venn Diagrams
Venn diagram, invented in 1880 by John Venn, is a schematic diagram that shows all possible
logical relations between different mathematical sets.
Examples
Set Union
The union of sets A and B (denoted by A∪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={11,12,13} and B={13,14,15} then A∩B={13}.
Complement of a Set
The complement of a set A (denoted by A′) is the set of elements which are not in set A.
Hence, A′={x|x∉A}.
More specifically, A’′=(U−A) where U is a universal set which contains all objects.
Example − If A={x|x belongs to set of odd integers} then A’′={y | y does not belong to set of
odd integers}
Let A and B be 2 sets. Then the Cartesian products of A and B denoted by A×B is set of all
ordered pairs (a,b). where a ∈A and b∈B.
In symbols A×B = {(a,b) / a ∈A , b∈B}
ie., The Cartesian product of n number of sets A1,A2,…An denoted as A1×A2⋯×An can be
defined as all possible ordered pairs (x1,x2,…xn) where x1∈A1, x2∈A2,…xn ∈An .
Note: A×B ≠ B×A.
Example –
1). If we take two sets A={a,b} and B={1,2}
The Cartesian product of A and B is written as : 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)}
2). If A={a,b,c} and B={1,2,3} compute A×B, B×A and A×A.
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 −
For a set S={a,b,c,d} let us calculate the subsets −
Subsets with 0 elements − {∅} (the empty set)
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
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.
Min set:
Let A be set and let B1, B2, B3, B4,……… Bn be the subsets of ‘A’, A set of form D1∩D2∩
D3,∩…..∩Dn where each Di may be either Bi or Bic is called min terms or minset generated by
Bi.
Max Set:
Let A be set and let B1, B2, B3, B4,……… Bn be the subsets of ‘A’, A set of form
D1UD2UD3U,…..UDn where each Di may be either Bi or Bic is called max terms or maxset
generated by Bi.
Qn. 1
Function
Relation
“Relations and Functions” are the most important topics in algebra. Relations and functions –
these are the two different words having different meanings mathematically. You might get
confused about their difference. Before we go deeper, let’s understand the difference between
both with a simple example.
An ordered pair is represented as (INPUT, OUTPUT):
The relation shows the relationship between INPUT and OUTPUT. Whereas, a function is a
relation which derives one OUTPUT for each given INPUT.
Note: All functions are relations, but not all relations are functions.
Relation:
Definition: A relation R from a set A into another set B is a subset of A×B.
It is a subset of the Cartesian product. Or simply, a bunch of points (ordered pairs). In other
words, the relation between the two sets is defined as the collection of the ordered pair, in which
the ordered pair is formed by the object from each set.
Note: If a set A has m elements and a set B has n elements then there are mn elements in A×B
and 2mn subsets for A×B.
Example: {(-2, 1), (4, 3), (7, -3)}, usually written in set notation form with curly brackets.
Types of Relations
1. Universal Relations
2. Reflexive Relations
3. Symmetric Relations
1. Universal Relation
A universal (or full relation) is a type of relation in which every element of a set is related to each
other. Consider set A = {a, b, c}. Now one of the universal relations will be R = {x, y} where, |x
– y| ≥ 0. For universal relation, R = A × A
2. Reflexive Relation
In a reflexive relation, every element maps to itself. For example, consider a set A = {1, 2,}. Now
an example of reflexive relation will be R = {(1, 1), (2, 2), (1, 2), (2, 1)}. The reflexive relation is
given by- (a, a) ∈ R
3. Symmetric Relation
In a symmetric relation, if a=b is true then b=a is also true. In other words, a relation R is
symmetric only if (b, a) ∈ R is true when (a,b) ∈ R. An example of symmetric relation will be R
= {(1, 2), (2, 1)} for a set A = {1, 2}. So, for a symmetric relation, aRb ⇒ bRa, ∀ a, b ∈ A
4. Anti symmetric
Let R be a relation on a set A then R is called antisymmetric, ., if xRy and yRx, then x = y. or it
can be defined as, relation R is antisymmetric if either (x,y)∉R or (y,x)∉R whenever x ≠ y.
5. Transitive Relation
For transitive relation, if (x, y) ∈ R, (y, z) ∈ R, then (x, z) ∈ R. For a transitive relation,
aRb and bRc ⇒ aRc ∀ a, b, c ∈ A.
6. Equivalence Relation
If a relation is reflexive, symmetric and transitive at the same time it is known as an equivalence
relation.
Partially Ordered Set (poset)
Then R is called a partial order relation, and the set S together with partial order is called a
partially order set or POSET and is denoted by (S, ≤).
Example:
1. The set N of natural numbers form a poset under the relation '≤' because firstly x ≤ x,
secondly, if x ≤ y and y ≤ x, then we have x = y and lastly if x ≤ y and y ≤ z, it implies x ≤
z for all x, y, z ∈ N.
2. The set N of natural numbers under divisibility i.e., 'x divides y' forms a poset because x/x
for every x ∈ N. Also if x/y and y/x, we have x = y. Again if x/y, y/z we have x/z, for
every x, y, z ∈ N.
3. Show whether the relation (x, y) ∈ R, if, x ≥ y defined on the set of +ve integers is a partial
order relation.
Solution:
Consider the set A = {1, 2, 3, 4} containing four +ve integers. Find the relation for this set
such as R = {(2, 1), (3, 1), (3, 2), (4, 1), (4, 2), (4, 3), (1, 1), (2, 2), (3, 3), (4, 4)}.
Reflexive: The relation is reflexive as for every a ∈ A. (a, a) ∈ R, i.e. (1, 1), (2, 2), (3, 3),
(4, 4) ∈ R.
Antisymmetric: The relation is antisymmetric as whenever (a, b) and (b, a) ∈ R, we have
a = b.
Transitive: The relation is transitive as whenever (a, b) and (b, c) ∈ R, we have (a, c) ∈ R.
1 1 0 0 0
1 1 0 0 0
M R 0 0 1 1 0
0 0 1 1 1
0 0 0 1 1
K In Wk-1
1 1 1 0 0 0
1 1 0 0 0
1, 2 1, 2 (1,1),(1,2),(2,1),(2,2) W1 0 0 1 1 0
0 0 1 1 1
0 0 0 1 1
2 1, 2 1, 2 (1,1),(1,2),(2,1),(2,2) W1= W2
3 1 1 0 0 0
1 1 0 0 0
3,4 3 ,4 (3,3),(3,4),(4,3),(4,4) W3 0 0 1 1 0
0 0 1 1 1
0 0 0 1 1
4 1 1 0 0 0
(3,3),(3,4),(3,5)
1 1 0 0 0
3,4,5 3,4,5 (4,3),(4,4),(4,5) W4 0 0 1 1 1
0 0 1 1 1
(5,3),(5,4),(5,5)
0 0 1 1 1
5 1 1 0 0 0
1 1 0 0 0
4,5 4,5 W5 0 0 1 1 1
0 0 1 1 1
(4,4),(4,5),(5,4),(5,5)
0 0 1 1 1
1 0 1 0 1
0 0 1 1 0
M R 0 0 1 0 1
0 1 0 1 0
0 0 0 1 0
K In Wk-1
1 1 0 1 0 1
0 0 1 1 0
1 1, 3 , 5 (1,1),(1,3),(1,5) W1 0 0 1 0 1
0 1 0 1 0
0 0 0 1 0
2
1 0 1 0 1
4 3, 4 (4,3),(4,4) 0 0 1 1
0
W2 0 0 1 0 1
0 1 1 1 0
0 0 0 1 0
3 1 0 1 0 1
(1,3),(1,5),(2,3),(2,5) 0 0 1 1 1
1 , 2, 3 3 ,5 W3 0 0 1 0 1
(3,3), ( 3,5) 0 1 1 1 0
0 0 0 1 0
4 1 0 1 0 1
(2,2),(2,4)
0 1 1 1 1
2,4,5 2,4 (4,2),(4,4) W4 0 0 1 0 1
0 1 1 1 0
(5,2),(5,4) 0 1 0 1 0
5 1 0 1 1 1
0 1 1 1 1
1,3 4 W5 0 0 1 1 1
0 1 1 1 0
(1,4),(3,4) 0 1 0 1 0