Abstract


Real-world Implication

Commonly used in Database, the columns are the different sets, the Cartesian Product of the columns are all the potential relation aka all the rows that can be stored inside the database. 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
  • For all in and all in , the below 2 conditions must be fulfilled in order to have composition of relation
    1. If there is a ‘path’ from to , there must have a path from to AND to , the part
    2. If there is a ‘path’ from to and to , there must has a path from to , the part

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

Domain

  • Basically the Set of elements of the left hand Set that is involved in the 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