Set Theroy
Set Theroy
Set
Example:
1) suppose a company manufactured 5 different products a, b, c, d, and e.
Mathematically, we might identify the whole set of products as P, say, and write:
P = (a,b,c,d,e)which is translated as 'the set of company products, P, consists of the members (or
elements) a, b, c, d and e.The elements of a set are usually put within braces (curly brackets) and
the elementsseparated by commas, as shown for set P above.
2)The employees of a company working in the purchase department could be
writtenas:P= (Jones, Wilson, Gopan, Smith, Hari)
The warehouse locations of a large supermarket chain could be written as:
W = (Mumbai, Delhi, Bangalore, Chennai, Triandrum, Kochi)
Notation:
Usually a set is represented in two ways (1) roster form(2)Set builder form
(1)Roster form
in this form all the elements of the set are listed ,if possible, separated by commas and
enclosed within braces
The warehouse locations of a large supermarket chain could be written as:
W = (Mumbai, Delhi, Bangalore, Chennai, Triandrum, Kochi)
Types of sets:
Subsets.
A subset of some set A, say, is a set which contains some of the elements of
A. denoted as AB
Example:
ifA= (h,i,j,k,l), then:
X = (i,j,l) is a subset of A
Y = (h,1) is a subset of A
Z = (i,j) is a subset of A and also a subset of X.
Number of a set:
The number of a set.(cardinal or size ) The number of a set A, written as n[A], is defined as the
number of elements that A contains.
For example,
ifA= (a,b,c,d,e), then n[A] = 5 (since there are 5 elements in A);
ifD= (Sales, Purchasing, Inventory, Payroll), then n[D] = 4.
Set equality.
Two sets are equal only if they have identical elements. Thus, if
A = (x, y, z) and B = (x, y, z), then A = B.otherwise if AB and BA
The Universal Set.
A set is called universal set if it is the super set of all sets.
The complement of a set.
If A is any set, with some universal set U defined, thecomplement of A, normally written as A', is
defined as 'all those elements that are notcontained in A but are contained in U'. For the example
of the workers on the production line (given in d above), S was specified as the set of skilled
workers within the universalset of all workers on the line. Therefore, S' would be all the workers
that were not skilled.
i.e. the set of unskilled workers.
Null Set :
A set which contains no elements at all is called the null set or empty set and is denoted by the
symbol .Eg:A={x/x2+1=0, x is real}
Singleton Set :
A set which contains only one element is called a singleton set.eg:A={o},{n}
Finite Set:
A set which contains a finite number of elements is called a finite set.
B={x/x is an even positive integer (100 }
Infinite Set:
A set which contains a infinite number of elements is called a finite set.
B={x/x is an even positive integer}
Proper Subset:
Any subset A of the set B is called the proper subset of B , if there is atleast one element of B
which does not belong to A ie) AB but A≠B and is denoted as AB
Power set:
Given a set S, the set of all subsets of the set S is called the power set set of S and is denoted by
P(S).
Property :If a set S has n elements, then its power set has 2n elements
SET OPERATIONS:
In ordinary arithmetic and algebra there are four common operations that can be
performed; namely, addition, subtraction, multiplication and division. With sets,
however, just two operations are defined. These are set union and set intersection.
Set Union:
The Union of two sets A and B is written as AB and defined as that set which
contains all the elements lying within either A or B or both.
For example, if A = (c,d,f,h,j) and B = (d,m,c,f,n,p), then the union of A and B is AB
=(c,d,f,h,j,m,n,p), these being the elements that lie in either A or B. So that any element of A must
be an element of AB; similarly any element of B must also be an element of AB.
Set union for three or more sets is defined in an obvious way. That is, if A, B and C are any three
sets, ABC is the set containing all the elements lying within (i) anyone of A, B or C, (ii) any
two of them or (iii) all three.
Example 2 (To demonstrate set union)
If A = (m,n,o,p); B = (m,o,p,q); C = (m,p,r); and the universal set is defined as
U = (k,l,m,n,o,p,q,r,s), then:
a) AB = (m,n,o,p,q)
b) AC = (m,n,o,p,r)
c) BC = (m,o,p,q,r)
d) ABC = (m,n,o,p,q,r)
e) (AB)' = (k,l,r,s), which is describing all the elements that are not in AB but are in the
universal set U.
Set Intersection
The intersection of two sets A and B is written as A B and defined as that set
which contains all the elements lying within both A or B.
For example, if A = (a,b,c,d,f,g,) and B = (c,f,g,h,j), then the intersection of A and B is A B =
(c,f,g), since these are the elements that lie in both sets.
The intersection of three or more sets is a natural extension of the above. If P, Q and R are any
three sets then P QR is the set containing all the elements that lie in all three sets.
Any combinations of union and intersection can be used with sets. For, example, if X and Y are
the sets specified above and Z = (d,f,g,j). then: (XY) Z = (c,f,g) (d,f,g,j) =(c,d,f,g,j) which
can be described in words as 'the set of elements that are in either both of X and Y or in Z’.
Example 3 (To demonstrate set intersection)
If A=(m,n,o,p};B=(m,o,p.q);C=(n,q,r);with a universal set defined as (k,l,m,n,o,p,q,r,s).Then:
a) AB = (m,o,p), since a1l these elements are in both sets.
Similarly,
b) A e = (n)
c) BC = (q).
d) A B C has no elements, is sometimes called the empty set and can be written
A BC = {}. Note n[{}]=0.
e) (A B)' = (k,l,n,q,r,s) is the complement of AB and is the set of all elements that are
NOT in both A and B.
f) (AB) C =(m,n,o,p,q)Ç(n,q,r)= (n.q) is the set of all elements that are in A or B
and also in C.
Disjoint Set:
If AB is the empty set ie if A and B does not have any element in common then the sets A and B
are said to be disjoint.if A={1,3,5} and B={2,4,6,8} then A B= and hence A and B are
disjoint.
Diffference of A and B:
If A and B are any two sets then the set of elements that belong to A but donot belong to B is
called the difference of A and B or relative complement of B wrt A and is denoted by A-B or A\B.
Eg: If A={1,2,3} and B={1,3,5,7} then A-B={2} and B-A={5,7}.
Symmetric difference of A and B :
If A and B are any two sets ,the set of elements that belong toA or B, but not to both is called the
symmetric difference of A and B is denoted by AB or A B or A+B AB =(A-B)(B-A).
Eg:If A={a,b,c,d} and B={c,d,e,f} then AB ={a,b,e,f}.
Identity Laws
A∪ø = A A∩U=A
A∪U = U A∩ø=ø
Domination Laws:
AU=U AU=
AA’=U AA’=
Commutative Laws:
(i) A U B = B U A (ii) A ∩ B = B ∩ A
2. Associative Laws:
For any three finite sets A, B and C;
(i) (A U B) U C = A U (B U C) (ii) (A ∩ B) ∩ C = A ∩ (B ∩ C)
3. Idempotent Laws:
(i) A U A = A (ii) A ∩ A = A
4. Distributive Laws:
(i) A U (B ∩ C) = (A U B) ∩ (A U C)(ii) A ∩ (B U C) = (A ∩ B) U (A ∩ C)
Thus, union and intersection are distributive over intersection and union respectively.
5. De Morgan’s Laws:
(i) A – (B U C) = (A – B) ∩ (A – C) (ii) A - (B ∩ C) = (A – B) U (A – C)
If s is a statement of equality of two sets expressions each of which may contain the sets
A,B,A’,B’ etc., and U and the only set operation symbols and then the dual of s, denoted
by sd is obtained from s by replacing (1) each occurrence of and U(in S) by U and
respectively and (2)each occurrence of and (in s) by and respectively.
The principle of duality states that whenever s a statement of equality of two set expression is a
valid theorem then its dual sd is also a valid theorem.
Problems:
Soln:
(A-C)(C-B) = {x xA and x C and x B}
={xxA and x B }
(2) If A,B and C are sets , prove both analytically and graphically, that A-(BC)=(A-B)(A-
C).
(3) If A,B and C are sets, prove both analytically and graphically, that A(B-C) =(AB)-(AC)
={x xA and (x B and x C} ={x xA and (x B and x C’}
={x x(AB C )} =AB C
(4) If A,B and C are sets, prove that A∪(B∩C ) = (C∪B∩ A using set identities.
Hour -2
Ordered pair:
An ordered pair is a pair of objects with an order associated with them.
If objects are represented by x and y, then we write the ordered pair as (x, y).
Two ordered pairs a, b) and (c, d) are equal if and only if a = c and b = d. For example the
ordered pair (1, 2) is not equal to the ordered pair (2, 1)
CartesianProduct:
The set of all ordered pairs (a, b), where a is an element of A and b is an element of B, is called
the Cartesian product of A and B and is denoted by A×B .
Note that A×φ = φ×A = φ because there is no element in φ to form ordered pairs with
elements of A. The concept of Cartesian product can be extended to that of more than two sets.
Ordered n-tuple: An ordered n-tuple is a set of n objects with an order associated with them
(rigorous definition to be filled in). If n objects are represented by x1, x2, ...,xn, then we write the
ordered n-tuple as (x1, x2, ..., xn) .
Cartesian product: Let A1, ...,An be n sets. Then the set of all ordered n-tuples (x1, ...,xn) , where
x i ∈A i for all i, 1≤i≤n , is called the Cartesian product of A , ..., A , and is denoted by
1 n
A 1×A 2×.... A n .
Example 3:
Let A = {1, 2}, B = {a, b} and C = {5, 6}. Then
A 1 ×B×C = {(1, a, 5), (1, a, 6), (1, b, 5), (1, b, 6), (2, a, 5), (2, a, 6), (2, b, 5), (2, b, 6)} .
Equality of n-tuples: Two ordered n-tuples (x1, ...,xn) and (y1, ..., yn) are equal if and only if xi =
yi for all i, 1≤i≤n .
For example the ordered 3-tuple (1, 2, 3) is not equal to the ordered n-tuple (2, 3, 1).
Venn Diagrams
. A Venn diagram is a simple pictorial representation of a set.
Venn diagrams are useful for demonstrating general relationships between sets.
(7) Use Venn diagram to prove that is an associative operation (AB)C = A(BC).
let as label the various regions. Set A consists of the points in the region labeled 1,2,3,4; Set
B consists of the points in the region labeled 2,3,4,5,6; set C consists of the points in the
region labeled 3,4,6,7 ; Now AB = (AB)-(AB)= {R1,R2,R3,R4,R5,R6}-{R2,R3}where Ri
represents the region labeled i ={R1,R4,R5,R6}
(AB)C ={R1,R2,R3,R4,R5,R6,R7}-{R4,R6}={R1,R3,R5,R7}
Now BC ={R2,R3,R4,R5,R6,R7}}-{R3,R6} = {R2,R4,R5,R7}
A(BC) ={R1,R2,R3,R4,R5,R6,R7}-{R2,R4}={R1,R3,R5,R7}
Hence (AB)C =A(BC)
(8) Use Venn diagram to prove that (AB)×C =(A×C)(B×C), where A,B,C are sets.
(9) Simplify the following sets, using set identities a) A∪B∪( A∩B∩C )
b) ( A∩B )∪[ B∩((C∩D)∪(C∩D))]
(12)
Find the sets A and B , if a)A-B={1,3,7,11}, B-A = {2,6,8} and AB = {4,9}
Hour-3
Relations:
When A and B are sets, a subset R of the Cartesian product AB is called a binary relation
from A to B viz., If R is a binary relation from A to B , R is a set of ordered pairs (a,b) where
aA and bB. when (a,b)R, we use the notation aRb.
Ex: Let A={0,1,2,3,4} , B={0,1,2,3} and aRb iff a+b = 4 then R = {(1,3),(2,2),(3,1),(4,0)}.
Then R={(1,3),(2,2),(3,1),(4,0)}. The domain of R ={1,2,3,4} and the image of R ={0,1,2,3}
Universal Relation:
Void Relation:
Ex: If A ={3,4,5} and R is defined as aRb iff a+b)10, then R is a null set ,since no element in
AA satisfies the given condition.
Identity relation:
Inverse Relation:
When R is any relation from a set A to a Set B, the inverse of R , denoted by R -1,is the
relation from B to A which consists of those ordered pairs got by interchanging the elements
of the ordered pairs in R.
OPERATIONS ON RELATIONS:
As binary relations are sets of ordered pairs, all set operations can be done on relations. The
resulting sets are ordered pairs and hence are relations.
If R and S denote two relations, the intersection of R and S denoted by RS, is defined by
a(RS)b = aRbaSb .
If R and S denote two relations, the union of R and S, denoted by RS,is defined by
a(RS)b = aRbaSb .
If R and S denote two relations, the difference of R and S, denoted by R-S, is defined by
a(R-S)b = aRbaSb.
COMPOSITION OF RELATIONS:
If R is a relation from set A to a set B and S is a relation from set B to Set C, viz., R is a
subset of AB and S is a subset of BC, then the composition of R and S, denotedbyb RS is
defined by a(RS)c, if for some bB we have aRb and bRc.
PROPERTIES OF RELATIONS:
1) A Relation R on a set A issaid to be reflexive, if aRba for every aA, if(a,a)R for every
aA.
3) A relation R on a set A is said to be antisymmetric, whenever (a,b) and (b,a)R then a=b.If
there exists a,b A such that (a,b) and (b,a)R but ab, then R is not antisymmetric.
4) A relation R on a set A is said to be transitive, if whenever aRb and bRc then aRc viz., if
whenever (a,b) and (b,c)R then (a,c)R. if there exists a,b,cA such that (a,b) and (b,c)R
but (a,c)R, then R is not transitive.
A set A together with a partial order relation R is called a partiaally ordered set or poset
1. List the ordered pairs in the relation R from A={0,1,2,3,4} to B={0,1,2,3} where (a,b)R
4. R and S are “Congruent modulo 4” relations respectively on the set of integers. That is R
= {(a,b)ab (mod 3)} and S = {(a,b)ab (mod 4)}. Find (i)RS (ii)RS (iii)R-
S (iv)S-R (v)RS
5. If the relations R1,R2,R3,…R6 are defined on the set of real numbers as given below:
R1 = {(a,b)a)b} R2 = {(a,b)ab} R3 =
{(a,b)a(b} R4 = {(a,b)ab} R5= {(a,b)a=b}
R6 = {(a,b)ab}
Find The following composite relations.
R1R2, R2R2, R1R4, R3R5, R5R3, R6R3, R6R4 and R6R6.
Soln:
(i)R1R2=R1 for eg let(5,3)R1 and let (3,1),(3,2),(3,3)R2 then R1R2 consists of
(5,1),(5,2),(5,3)R2which belong to R1
Similarly (ii)R2R2 = R2
(iii)R1R4 =R2
(iv)R3R5= R3
(v)R5R3=R3
(vi)R6R3=R3
(vii) R6R4 =R2
(viii) R6R6=R2.
6. Determine whether the relation R on the set of all integers is reflexive, symmetric,
EQUIVALENCE CLASSES:
If R is an equivalence relation on a set A, the set of all elements of A that are related to an
element a of A is called the equivalence class of a and denoted by [a]R.
In other words The equivalence class of a under the relation R is defined as [a] =
{x│(a,x)R} any element b[a] is called a representative of the equivalence class [a].
PARTITION OF A SET :
If S is a non empty set, a collection of disjoint non empty subsets of s whose union is S is
called a partition of S. In other words, the collection of subsets Ai, is a parttion of s iff
¿ Ai ¿ Ai
(i)Ai, for each I (ii)AiAj = , for ij and (iii) i = S , where i represents the
union of the subsets Ai for all i.
Let R be an equivalence relation of a non- empty set A. Let A 1,A2,…Akbe the distinct
equivalence classes of A under R.For every aAi , a[a]R, by the above theorem.
[ ]
¿ a R =¿ Ai =A
a∈A i i
Ai = [a]R. therefore Also ,by the above theorem, when [a] R[b]R,
then [ a ] R∩[ b ]R = ϕ viz,. AiAj= , if [a]R = Ai and [b]R=Aj.
(i) R1 is the relation on the set of integers such that aR1b iff a=b or a=-b
(ii)R2 is the relation on the set of integers such that aR2b iff a
b(mod m), where m is a positive integer )1
(iii)R3 is the relation on the set of real numbers
such that aR3b iff (a-b) is an integer.
9. (i)If R is the relation on the set of ordered pairs of positive integers such that (a,b),
The edge of the form (a, a), represented by using an arc from the vertex a back to itself, is
called a loop.
The digraph representing the relation can be used to determine whether the relation has the
standard properties explained as follows:
(i)A relation R is reflexive iff there is a loop at every vertex of a digraph of the relation R, so
that every ordered pair of the form (a, a) occurs in R, If no vertex has a loop, then R is
irreflexive.
(ii)A relation R is symmetric iff for every edge between distinct vertices in its digraph there
is an edge in the opposite direction, so that (b, a) is in R whenever (a,b) is in R.
(iii)A relation R is antisymmetric iff there are never two edges in opposite directions between
distinct vertices.
(iv) A relation R is transitive iff whenever there is an edge from a vertex a to a vertex b and
from the vertex b to a vertex c, there is an edge from a to c.
11. (i)Prove that the relation of set inclusion is a partial ordering on any collection of sets.
12. (i)If R is the equivalence relation on the set A={1,2,3,4,5,6,} given below , find the
c+d, verify that A is an equivalence relation on A and also find the quotient set of A by R.
(ii)If the relation R on the set of integers Z is defined by aRb if a b(mod 4), find the
partition induced by R
Soln:
(i)A= {(1,1),(1,2),(1,3),(1,4),(2,1),(2,2),(2,3),(2,4),(3,1),(3,2),(3,3),(3,4),(4,1),(4,2),(4,3),
(4,4)}.
If we take R A, it can be verified that R is an equivalence relation. The quotient set A/R
is the collection of equivalence classes of R. It is easily seen that
[(1,1)] = {(1,1)}
[(1,2)] = {(1,2),(2,1)}
[(1,3)] = {(1,3),(2,2),(3,1)}
[(1,4)] = {(1,4),(2,3),(3,2),(4,1)}
[(2,4)] = {(2,4),(3,3),(4,2)}
[(3,4)] = {(3,4),(4,3)}
[(4,4)] = {(4,4)}
Thus [(1,1)],[(1,2)],[(1,3)],[(1,4)],[(2,4)],[(3,4)],[(4,4)] from the quotient set A/R.
(ii) The equivalence classes of R are the following:
[0]R = {…,-8,-4,0,4,8,12,…}
[1]R= {….,-7,-3,1,5,9,13,…}
[2]R={…,-6,-2,2,6,10,14,…}
[3]R={…,-5,-1,3,7,11,15,…}
Thus [0]R,[1]R ,[2]Rand [3]Rfrom the partition of R.
HOUR-7
14. If R is the relation on A={1,2,3} such that (a,b)R, iffa+b= even, find the relational
[ ] [ ]
0 1 1 0 1 0
1 1 1 0 1 1
1 0 0 1 1 1
MR = and MS=
Find the matrices that represent a)RS b)RS c)RS
d)SR e)RS.
Soln:
[ ] [ ]
0ν 0 1ν 1 0ν 0 0 1 0
1ν0 1ν 1 1ν 1 1 1 1
1ν1 0ν 1 0 ν1 1 1 1
(a)MRS=MRMS= =
[ ] [ ]
0∧0 1∧1 0∧0 0 1 0
1∧0 1∧1 1∧1 1 1 1
1∧1 0∧1 0∧1 1 0 0
(b)MRS=MRMS = =
[ ] [ ]
0ν 0ν 0 1ν 1ν0 0 ν1ν 0 0 1 1
0ν 0ν 1 1ν 1ν1 0 ν1ν 1 1 1 1
0ν 0ν 0 1ν 0ν 0 0ν 0ν 0 0 1 0
(c)MRS = MRMS = =
[ ] [ ]
0ν1 ν0 0ν1 ν0 0ν1 ν0 1 1 1
0ν 1ν1 0ν1 ν0 0ν1 ν0 1 1 1
0ν 1ν1 1ν1ν 0 0ν1 ν0 1 1 1
(d) M SR=MSMR= =
[ ] 0 0 0
1 0 0
0 1 1
(e)MRS= .MRS-MRS=
[ ]
1 0 1
0 1 0
16. Examine if the relation R represented by MR = 1 0 1
is an equivalence relation,
using the properties of MR.
HOUR-8
The simplest form of the digraph of a partial ordering on a finite set that contains sufficient
information about the partial ordering is called a Hasse diagram.
(i)Since the partial ordering is a reflexive relation, its digraph has loops at all vertices.
(ii)Since the partial ordering is transitive, we need not show those edge that must be present
due to transitivity.
(iii)If we assume that all edges are directed upward, we need not show the directions of the
edges.
Thus the Hasse diagram representing a partial ordering can be obtained from its digraph, by
removing all the loops, by removing all edges that are present due to transitivity and by
drawing each edge without arrows so that its initial vertex is below its terminal vertex.
A poset is defined as a set S together with a partial order relation R. In a poset the notation
ab denotes that (a, b) R. ab is read as “a precedes b”.
Similarly an element aP is called a minimal member of P, if there is no element bP such
that b(a.
If there exists an element aP such that ba for all bP, then a is called the greatest member
of the poset. {P,}.
Similarly, If there exists an element aP such that ab for all bP, then a is called the least
member of the poset. {P,}.
When A is a subset of a poset {P,} and if u is an element of P such that au for all elements
aA, then u is called an upper bound of A. Similarly if l is an element of P such that l a for
all elements aA, then l is called a lower bound of A.
The element x is called the least upper bound (LUB) or supremum of the subset A of a poset
{P,}, if x is an upper bound that is less than every other upper bound of A.
Similarly the element y is called the greatest lower bound (GLB) or infimum of the subset A
of a poset {P,}, if y is a lower bound that is greater than every other lower bound of A.
17. List the ordered pairs in the relation on {1,2,3,4} corresponding to the following matrix:
[ ]
1 1 1 0
0 1 0 0
0 0 1 1
1 0 0 1
Also draw the directed graph representing this relation. Use the graph to
find if the relation is reflexive , symmetric and/or transitive
18. List the ordered pairs in the relation represented by the digraph given in the fig also use
the graph to prove that the relation is a partial ordering.Also draw the directed graphs
20. Draw theHasse diagram representing the partial ordering {(A,B)(AB)} on the power
set P(S) where S = {a,b,c}.Find the maximal, minimal, greatest and least elements of the
poset.Find also the upper bounds and LUB of the subset({a},{b}, {c}) and the lower
bounds and GLB of the subsets ({a,b},{a,c},{b,c})