• Relation 관계
    • Binary Relation R, from set A to B : subset of AxB

      Untitled

    • Binary Relation R on set A : subset of AxA

      • number of relations AxA: n^2 elements subset of AxA: 2^n^2 : number of relations
    • Reflexive Relations R is reflexive ↔ (a,a) ∈ R for all a ∈A *공집합에서의 관계는 reflexive

    • Symmetric Relations R is symmetric ↔ (a,b) ∈ R , (b,a) ∈ R for all a,b ∀x∀y[(x,y) ∈ R → (y,x) ∈R)]

    • Antisymmetric Relations R is antisymmetric ↔ (a,b) ∈ R and (b,a) ∈ R → a=b ∀x∀y [ (x,y) ∈ R ∧ (y,x) ∈ R → x=y ]

    • Transitive Relations ∀x∀y∀z [ (x,y) ∈ R ∧ (y,z) ∈ R → (x,z) ∈ R ]

    • ex)

      • R={(a,b)|a≤b} transitive, antisymmetric, reflexive
      • R={(a,b)|a=b} symmetric, reflexive
    • Composition 합성 R1: A to B, R2: B to C composition of R2 with R1: A to C (x,y): R1, (y,z): R2, (x,z): R2 * R1

    • Power R^1 = R R^n+1 = R^n ◦ R

      • R is transitive ↔ R^n ⊆ R
  • Representing relations
    • zero-one matrix: if (i,j) ∈R Mij = 1 else 0

      Untitled

      Untitled

    • Directed Graph if (i,j) ∈R , (i,j) is edge

      • Reflexivity all nodes have loop

      • Symmetry (x,y) is edge ↔ (y,x)

      • Antisymmetry if (x,y) is edge, (y,x) is not edge

      • Transivity (x,y) and (y,z) are edges → (x,z) is edge

        • graph 보고 판단 가능해야 함.
      • Power R^n의 (x,y): x에서 y의 path 존재시에만 존재

        Untitled

      • Paths R on set A에서, length n의 a to b path ↔ (a,b) ∈ R^n

  • Closures of Relations 관계의 폐포 R이 가지고 있지 않은 성질 P(reflexivity, symmetry, transitivity 등 )에 대해, P를 만족하고 R을 포함하는 가장 작은 관계 S를 폐포 closure이라고 한다.
    • reflexive closure 반사폐포 add {(a,a)|a ∈A}
    • symmetric closure 대칭폐포 add R-1: {(b,a)|(a,b)∈R}
    • transitive closure 추이폐포
      • connectivity relation R* : consists (a,b) s.t has path from a to b R* = UNION (n=1 n=∞) R^n
        • in terms of zero-one matrix: M_R* = M_R ∨ M_R^2 ∨… M_R^n
      • transitive closure of R is R*
        • pf)
        • i) R* is transitive
          • R* contains R^1
          • if(a,b) in R*, (b,c) in R* then path(a,b), path(b,c) exist in R
          • obtain path a to c: a to b to c
          • therefore (a,c) in R*: transitive
        • ii) R* ⊆ S, S is transitive relation contains R
          • sps S is transitive relation: S^n ⊆ S
          • S* = S^k union, S^k ⊆ S, therefore S* ⊆ S
          • if R ⊆ S: R⊆S (any path in R is also path in S)
          • R* ⊆ S* ⊆ S any translative relation that contains R must contain R* hence R* is transitive closure of R ■
  • Equivalence Relation 동치관계 reflexive, symmetric, transitive relation two element a, b is Equivalent: a~b, aRb : related by 동치폐포
    • R={(a,b)|a ≡ b (mod m))}

      • reflexivity: a≡a (mod m)(trivial)
      • symmetry: suppose a≡b (mod m): a-b is div by m, therefore b-a is divisible so b≡a (mod m)
      • Transivity suppose a≡b, b≡c (mod m) a-b = km, b-c = lm, a-c = (k+l)m: a ≡ c (mod m) Therefore, Equivalence relation.
    • Equivalence Class for equi relation R on a [a]_R = {s|(a,s)∈R} (동치인거 집합) if b ∈ [a]_R: b is representative(표상) of this equi class

      Untitled

      • aRb == [a]=[b] == [a]∩[b] ≠ ∅
        • pf) i→ii
          • assume aRb, c in [a]: aRc
          • bRa → aRc
          • c in [b]: [a]⊆[b] and vice versa →[a]=[b]
        • pf) ii→iii [a]=[b]: [a]∩[b] ≠ ∅ (trivial)
        • pf) iii→i c in [a] and c in [b] exists → aRc, bRc cRb(symmetry): aRb
  • Partition of a Set collection of disjoint nonempty subsets of S S를 겹치지 않는 집합들로 나누어 놓은 것임
    • Equi Relation partitioning set equi class: EQUAL or DISJOINT →each disjoint subset are equi classes