Relations and Their Properties - PowerPoint PPT Presentation

1 / 12
About This Presentation
Title:

Relations and Their Properties

Description:

Binary relations represent relationships between the elements of two sets. ... Symmetric and antisymmetric are NOT exactly opposites ... – PowerPoint PPT presentation

Number of Views:53
Avg rating:3.0/5.0
Slides: 13
Provided by: mahmood5
Category:

less

Transcript and Presenter's Notes

Title: Relations and Their Properties


1
Relations and Their Properties
  • Section 8.1

2
Relations
  • Binary relations represent relationships between
    the elements of two sets.
  • A binary relation R from set A to set B is
    defined by R ? A ? B
  • If (a,b) ? R, we write
  • aRb (a is related to b by R)

3
Example
  • Example
  • A 0,1,2
  • B a,b
  • A ? B (0,a),(0,b),(1,a),(1,b),(2,a),(2,b)
  • Then R (0,a),(0,b),(1,a),(2,b) is a relation
    from A to B.
  • Can we write 0Ra ?
  • Can we write 2Rb ?
  • Can we write 1Rb ?

4
Example
  • A relation may be represented graphically or as a
    table.

5
Functions as Relations
  • A function is a relation that has the restriction
    that each element of A can be related to exactly
    one element of B.

6
Relations on a Set
  • A relation on the set A is a relation from set A
    to set A i.e., R ? A ? A
  • Let A 1, 2, 3, 4
  • Which ordered pairs are in the relation R
    (a,b) a divides b?

7
Relations on a Set
  • Which of these relations (on the set of integers)
    contain each of the pairs (1,1), (1,2), (2,1),
    (1,-1), and (2,2)?
  • R1 (a,b) a ? b
  • R2 (a,b) a gt b
  • R3 (a,b) a b, a ?b
  • R4 (a,b) a b
  • R5 (a,b) a b 1
  • R6 (a,b) a b ? 3

8
Properties of Relations
  • Let R be a relation on set A.
  • R is reflexive if (a,a)?R for every element a?A.
  • R is symmetric if (b,a)?R whenever (a,b)?R, where
    a,b?A.

9
Properties of Relations
  • R is antisymmetric if whenever (a,b)?R and
    (b,a)?R, then a b, where a,b?A.
  • Symmetric and antisymmetric are NOT exactly
    opposites
  • R is transitive if whenever (a,b)?R and (b,c)?R,
    then (a,c)?R, where a,b,c?A.

10
Example
  • Determine the properties of the following
    relations on 1,2,3,4
  • R1 (1,1), (1,2), (2,1), (2,2), (3,4), (4,1),
    (4,4)
  • R2 (1,1), (1,2), (2,1)
  • R3 (1,1), (1,2), (1,4), (2,1), (2,2), (3,3),
    (4,1), (4,4)
  • R4 (2,1), (3,1), (3,2), (4,1), (4,2), (4,3)
  • R5 (1,1), (1,2), (1,3), (1,4), (2,2), (2,3),
    (2,4), (3,3), (3,4), (4,4)
  • R6 (3,4)

11
Composition of Relations
  • If R1 is a relation from A to B and R2 is a
    relation from B to C, then the composition of R1
    with R2 (denoted R2?R1) is the relation from A to
    C.
  • If (a,b) is a member of R1 and (b,c) is a member
    of R2, then (a,c) is a member of R2 ? R1, where
    a?A, b?B, c?C.

12
Example
  • Let
  • Aa,b,c, Bw,x,y,z, CA,B,C,D
  • R1(a,z),(b,w), R2(w,B),(w,D),(x,A)
  • Find R2 ? R1
  • Find R1 ? R2
Write a Comment
User Comments (0)
About PowerShow.com