Docsity

Relation in Set Theory, Lecture notes of Computer science

Partial preview of the text

Download Relation in Set Theory and more Lecture notes Computer science in PDF only on Docsity!

Set Operations and Venn Diagrams (Q) If A = {1.2.3,4,7,8} and B= {2,4,7,9, 10}: A-— B= {1,3,8} {A-(ANB B-A= {9,10} {B-(ANB AAB = (A — B)U(B— A) = {1,3,8,9, 10} * Universal set — set consisting of all elements under consideration. Set Theory and Cartesian Products Cartesian Product It means the Cartesian product is also a set whose elements are also a set whose elements are in the form of an ordered pair. * No. of elements: (A x B) = mn. * Plane: R x R = {(x. y) | x € R.y € R} (an ordered pair). * Example: Let A= {1,2} and B= {a,b,c}. Bx A= {(a,1), (a, 2), (b, 1), (b, 2), (ce, 1), (c, 2) } n(Bx A)=3xX2=6 Hence, a plane can be treated as the Cartesian product of the set of real numbers. + 3D space: Rx Rx Ror R? = {(x,y,z) |x eR yERzeER}. * N dimensional space: R” = (Rx Rx...) 2 times - Euclidean space. * N dimensional complex space: C” = (Cx Cx...) n times - (unitary space). 2. Universal Relation: A x BC Ax B.So Ax Bis also a relation from A to B. * Note: Void relation is the smallest relation, and Universal relation is the largest relation from A to B. 3. Identity Relation: 1, > If for every element of A, it is related to itself only. * A= {a,b,c,d} * Identity relation: {(a, a), (b, 6), (ec, c), (d, d)} * Reflexive /, not irreflexive / * |R,U Rs] <|Ri]+1Rol ° Ax B+ Bx A (i.e., not commutative) but |Ax BJ) =|BxAl. Properties of Relations (Reflexivity) ¢ Reflexive Relation: R is reflexive on A if for acA,(a,a)eER. « Example (R is reflexive): R= {(a,a), (6, b), (e,c), (d, d)}. * Irreflexive Relation: If no element of A is related to itself. « VaeA,(a,a) ER. * Example: R = {(1,2).(3,4)}. So irreflexive. Comparison OT KeTIeXIVITy & IrreTiexIVITy It means reflexivity & irreflexivity are the extreme cases. In reflexivity, all elements of A are related to itself, while in irreflexivity, none of the elements of A are related to itself. * Non-reflexive: If a relation is neither reflexive nor irreflexive. i.e., for at least one element of A, (a,a) € Rand for another element, (b, b) ¢ R. Reflexive Closure * Reflexive closure: Given a relation R on A not reflexive, then we can make it reflexive by using: KR oRUE, (7, Is the identity relation on A).