Abstract


  • Basically a Subset of Cartesian Product filtered by some conditions which define the relation among the elements from the given Set
  • Commonly used in Database, the columns are the different sets, the Cartesian Product of the columns are all the potential relation. Each row is a actual Order n-tuples inside the relation

Binary Relation

  • Let , we say

Inversion of Relation

Composition of Relation


  • The composite of 2 Relation - R and S
  • Given Set A, B, C, and
  • and are related
    1. If there is a ‘path’ from x to z, there must have a path from ( to and to )
    2. If there is a path from ( to and to ), there must a path from to

Composition is Associative

  • Let be Set
  • The we have 3 Relation:

Inverse of Composition

  • Let be Set
  • The we have 3 Relation:

Relation Properties


  • Not properties of the elements of the Set!

Reflexive

  • Every element in the given Set must be related to itself

Symmetric

  • If an element is related to another element, the another element must be related to this element too

Transitive

  • If an element is related to another element, and that element is related to a third element. Then this must be related to the third element

Equivalence Relation

Equivalence Class

  • Basically same as the component of a Partition or elements of Equivalence Relation
  • Can be represented with , it means the Equivalence Class contains element
  • and are the same iff is in the same equivalence class as

Theorem


Lemma Rel.1

Theorem 8.3.4

Terminologies


Arrow Diagram

  • Visualize Relation
  • Usually used when there is more than one Set involve in the relation

Relation Domain

  • Basically the Set of elements of the left hand Set that is involved in the Relation

Relation Co-domain

  • The whole Set at the right hand side

Range

  • Basically the Set of elements of the right hand set that is involved in the Relation

N-ary Relation

  • A Relation involving 2 Set is called binary relation, also known as 2-ary
  • Ternary is 3-ary
  • Quaternary is 4-ary

Congruence Modulo 3

Transitive Closure of Relation

  • The Relation obtained by adding the least number of Ordered Pair to ensure Transitive
  • Represented with
  • Following 3 properties:
    1. is transitive
    2. , where is any other transitive relation that contains