Understanding Set Relations

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Which of the following best describes a relation between sets?

  • The cardinality (size) of the union of two or more sets.
  • A description of how elements within or between sets are associated. (correct)
  • A function that maps elements from one set to another.
  • A listing of all possible subsets of a given set.

Given set A = {1, 2, 3} and set B = {a, b}, which of the following is a valid binary relation from A to B?

  • { 1, 2, 3, a, b }
  • { (1, 2), (a, 3) }
  • { (1, a, b), (2, a) }
  • { (1, a), (2, b), (3, a) } (correct)

If R is a binary relation, what does aRb signify?

  • a is not related to b under the relation R.
  • a is somehow related to Rb.
  • a is related to every element in a set called b.
  • The ordered pair (a, b) is an element of the relation R. (correct)

Given the relation R = {(1, 2), (2, 3), (1, 4)}, what is the range of R?

<p>{2, 3, 4} (B)</p> Signup and view all the answers

Consider a relation R on set A. For R to be reflexive, what condition must be met?

<p>For every a in A, (a, a) must be in R. (C)</p> Signup and view all the answers

If a relation R on a set A is symmetric, which of the following must be true?

<p>If (a, b) ∈ R, then (b, a) ∈ R. (A)</p> Signup and view all the answers

What is the key condition for a relation R on a set A to be considered antisymmetric?

<p>If (a, b) ∈ R and (b, a) ∈ R, then a = b. (D)</p> Signup and view all the answers

For a relation to be transitive, what condition must hold true?

<p>If (a, b) ∈ R and (b, c) ∈ R, then (a, c) ∈ R. (B)</p> Signup and view all the answers

Consider the relation R = {(1, 2), (2, 1), (1, 1), (2, 2)} on the set A = {1, 2}. Which properties does R possess?

<p>Reflexive, Symmetric, and Transitive (C)</p> Signup and view all the answers

Which of the following relations on the set of integers is both symmetric and transitive?

<p>R = {(a, b) | a = b} (C)</p> Signup and view all the answers

Let R1 = {(1, 2), (2, 3)} and R2 = {(2, 4), (3, 5)} be two relations. What is the composition of R1 and R2 (R2 o R1)?

<p>{(1, 4), (2, 5)} (A)</p> Signup and view all the answers

Given R1 = {(1, 1), (2, 2), (3, 3)} and R2 = {(1, 2), (2, 3)}, what is R1 ∪ R2?

<p>{(1, 1), (2, 2), (3, 3), (1, 2), (2, 3)} (A)</p> Signup and view all the answers

Using the relations R1 and R2 from the previous question, what is R1 ∩ R2?

<p>{} (C)</p> Signup and view all the answers

Given R1 = {(1, 1), (2, 2), (3, 3)} and R2 = {(1, 2), (1, 1)}, what is R2 - R1?

<p>{(1, 2)} (C)</p> Signup and view all the answers

How is a relation between finite sets typically represented using a matrix?

<p>Using a zero-one matrix where rows represent elements of the first set, columns represent elements of the second set, and entries indicate the presence or absence of a relation. (B)</p> Signup and view all the answers

Suppose you have set A = {a, b, c} and a relation R = {(a, b), (b, c), (c, a)}. How would you represent R as a directed graph (digraph)?

<p>Draw three vertices labeled a, b, and c, with directed edges from a to b, b to c, and c to a. (B)</p> Signup and view all the answers

In the matrix representation of a relation, what does a '1' in the (i, j)-th entry signify?

<p>The i-th element is related to the j-th element. (B)</p> Signup and view all the answers

Given the directed graph representation of a relation, how do you identify if the relation is reflexive?

<p>Check if there is a loop (an edge from a vertex to itself) at every vertex. (C)</p> Signup and view all the answers

What visual characteristic in the digraph of a relation indicates symmetry?

<p>For every directed edge from vertex 'a' to vertex 'b', there is also a directed edge from 'b' to 'a'. (C)</p> Signup and view all the answers

If a relation R is represented by a matrix M, how can you determine if R is reflexive?

<p>Check if all the diagonal elements of M are '1'. (B)</p> Signup and view all the answers

For a symmetric relation R represented by a matrix M, what property must the matrix possess?

<p>The matrix must be symmetric (M = M^T, where M^T is the transpose of M). (B)</p> Signup and view all the answers

Let R be a relation on A = {1, 2, 3} represented by the matrix [[1, 0, 1], [0, 1, 0], [1, 0, 1]]. Which ordered pairs are in R?

<p>{(1, 1), (1, 3), (2, 2), (3, 1), (3, 3)} (C)</p> Signup and view all the answers

Consider a relation R where R = {(a, b) | a is a parent of b}. Is this relation symmetric?

<p>No, because if 'a' is a parent of 'b', then 'b' cannot be a parent of 'a'. (D)</p> Signup and view all the answers

Which of the following relations is most likely to be transitive?

<p>'is taller than' (D)</p> Signup and view all the answers

Determine which of the following relations on the set of all people is reflexive:

<p>&quot;(a, b) | a has the same birthday as b&quot; (B)</p> Signup and view all the answers

Determine which of the following relations on the set of all people is antisymmetric:

<p>&quot;(a, b) | a is at least as tall as b&quot; (B)</p> Signup and view all the answers

If relation R = {(1, 2), (2, 3), (1, 3), (3, 3)} exists on set A = {1, 2, 3}, determine which property does NOT describe relation R.

<p>Symmetric (B)</p> Signup and view all the answers

Given a zeroes-one matrix representation of a relation, how is transitivity determined?

<p>If $M_R \bigcup M_R^2 = M_R$, than the relation is transitive. (B)</p> Signup and view all the answers

Given R₁ = {(a, b), (b, c)} and R₂ = {(x, y), (y, z)}, under what circumstances would it be possible to perform R₁ U R₂?

<p>R₁ and R₂ can be combined if they are relations from the same set A to the same set B. (A)</p> Signup and view all the answers

For a set A = {1, 2, 3} with relations R = {(1, 2), (2, 3)} and S = {(1, 1), (3, 2)}, find S ∘ R.

<p>S ∘ R = {(1, 3)} (B)</p> Signup and view all the answers

If R is a binary relation from A to B, what statement is false?

<p>The range of R must equal to B. (A)</p> Signup and view all the answers

What property must a directed graph follow to visually represent transitivity?

<p>If a path exists from vertex x to vertex y to vertex z, there is also a direct edge from x to z. (B)</p> Signup and view all the answers

Let A = {1, 2, 3, 4}. Which relation R on A is neither reflexive, symmetric, antisymmetric, nor transitive?

<p>R = {(1, 2)} (D)</p> Signup and view all the answers

What is the significance of the elements of sets A and B not needing to be listed in any particular arbitrary order?

<p>Zero-one matrix is unaffected by the organization of elements. (D)</p> Signup and view all the answers

If language x is available on computer y, what type of relation does this statement represent?

<p>It represents a relation between the set of language and set of computers. (C)</p> Signup and view all the answers

Flashcards

What is a Binary Relation?

A relation from set A to set B is a set R of ordered pairs where the first element comes from A and the second from B.

What does aRb mean?

Denoted as aRb, this means that the ordered pair (a, b) is an element of the relation R.

What is the Domain of a Binary Relation?

The set of all first entries (first coordinates) which occur in the relation.

What is the Range of a Binary Relation?

The set of all second coordinates in a binary relation.

Signup and view all the flashcards

What is a Binary Relation on a Set?

A binary relation R on a set A is a subset of A × A or from A to A.

Signup and view all the flashcards

What is a Reflexive Relation?

A relation R is reflexive if (a,a) ∈ R for every element a ∈ A.

Signup and view all the flashcards

What is a Symmetric Relation?

R is symmetric if (b,a) ∈ R whenever (a,b) ∈ R for all (a,b) ∈ A.

Signup and view all the flashcards

What is an Antisymmetric Relation?

A relation R on a set A such that for all a,b ∈ A if (a,b) ∈ R and (b,a) ∈ R, then a = b is called antisymmetric.

Signup and view all the flashcards

What is a Transitive Relation?

A relation R on a set A is called transitive if whenever (a,b) ∈ R and (b,c) ∈ R, then (a,c) ∈ R, for all a,b,c ∈ A.

Signup and view all the flashcards

Combining Relations

Given two relations R₁ and R₂, we can combine them using basic set operations to form new relations.

Signup and view all the flashcards

What is Composition of a Relation?

Let R be a relation from set A to set B and S a relation from B to set C. The composite of R and S is the relation consisting of ordered pairs (a, c), where a ЄА, с ЄС, and for which there exists an element b ∈ B such that (a, b) ∈ R and (b, c) ∈ S. We denote the composite of R and S by S o R.

Signup and view all the flashcards

What is a Digraph?

A directed graph consists of a set V of vertices (or nodes) together with a set E of ordered pairs of elements of V called edges (or arcs).

Signup and view all the flashcards

What is a loop in a digraph?

An edge of the form (a,a) in a digraph.

Signup and view all the flashcards

How can relations be represented using matrices?

A relation between finite sets can be represented using a zero-one matrix, where a 1 indicates the relation exists and 0 indicates it does not.

Signup and view all the flashcards

Study Notes

  • A relationship between elements of sets is a key aspect when discussing sets.
  • Relations can exist within a single set or among multiple sets.
  • Relations are descriptive tools for illustrating relationships between objects.

Examples of Relations

  • M = {(x,y)| x is married to y} is a relation on the set of people, e.g., if A = {Dingdong, Mateo, Dennis, Daniel }, B = {Sarah, Jenilyn, Marian, Kathryn }, then M = { (Dingdong, Marian), (Mateo, Sarah), (Dennis, Jenilyn) }.
  • R = {(x,y) | language x is available on computer y} showcases the relation between sets of languages and computers.
  • G = {(x,y) | x < y} gives a relation of pairs where x is less than y.
  • H = {(x,y) | y = x3} represents a relation where y is the cube of x.
  • I = {(x,y) | x+y = 7} is a relation where the sum of x and y equals 7.

Binary Relations

  • A binary relation R from set A to set B is a subset of R ⊆ A × B.
  • A binary relation from A to B is a set R of ordered pairs where the first element of each ordered pair is from A, and the second is from B.
  • For example: If A = {0,1,2} and B = {a,b}, then R = {(0, a), (0, b), (1,a), (2, b)} is a relation from A to B.
  • Notation:
    • aRb ⇔ (a, b) ∈ R
    • aRb ⇔ (a, b) ∉ R
  • If R = {(0, a), (0, b), (1,a), (2, b)}, then (0, a) ∈ R and (1, b) ∉ R.
  • Domain of a relation includes all first entries of ordered pairs.
  • Range includes all second coordinates.
  • Example:
    • If A = {1,2,3} and B = {1,2,3,4}, and G = {(a,b)| a < b}, then G = {(1,2), (1,3), (1,4),(2,3),(2,4), (3,4)}.
    • Dom(G) = {1,2,3}
    • Range(G) = {2,3,4}
  • A binary relation R on a set A is a subset of A × A or a relation from A to A.
  • Ex: If A = {a,b,c}, then R = {(a,a), (a,b), (a,c)} is a relation on A.
  • Ex: If A = {1, 2, 3, 4}, then R = {(a,b) | a divides b} is R = {(1,1), (1, 2), (1,3), (1, 4), (2, 2), (2, 4), (3, 3), (4, 4)}.

Relations example

  • Consider the following relations on Z:
    • R₁ = { (a, b) | a≤b}
    • R₂ = { (a, b) | a>b }
    • R₃ = { (a, b) | a = b or a = −b }
    • R₄ = { (a, b) | a = b }
    • R₅ = { (a, b) | a = b+1 }
    • R₆ = { (a, b) | a + b ≤ 3 }
  • Pair containments for each relation:
    • R₁ contains (1,1), (1,2), (2,2)
    • R₂ contains (2,1), (1,-1)
    • R₃ contains (1,1), (1,-1), (2,2)
    • R₄ contains (1,1), (2,2)
    • R₅ contains (2,1)
    • R₆ contains (1,1), (1,2), (2,1), (1,-1)
  • List the ordered pairs in the relation R from A = {0, 1, 2, 3, 4} to B = {0, 1, 2, 3}, where (a, b) ∈ R if and only if of these sets:
    • a = b. R1 = {(0,0),(1,1), (2,2), (3,3)}
    • a + b = 4. R2 = {(1,3),(2,2), (3,1),(4,0)}
    • a > b. R3 = {(1,0), (2,0), (2,1), (3,0),(3,1),(3,2), (4,0),(4,1), (4,2),(4,3)}

Properties of Relations

  • Reflexive
  • Symmetric
  • Antisymmetric
  • Transitive

Reflexive Relations

  • R is reflexive if and only if (a,a) ∈ R for every element a ∈ A.
  • Symbolically: ∀x[x∈A → (x,x) ∈ R]
  • R = {(1,1),(2,2), (3,3), (4,4) }
  • S= {(Java, Java), (Pascal, Pascal), (C#,C#)}
  • Consider the following relations on {1, 2, 3, 4}:
    • R₂ = { (1,1), (1,2), (2,1) }
    • R3 = { (1,1), (1,2), (1,4), (2,1), (2,2), (3,3), (4,1), (4,4) }
    • R₄ = { (2,1), (3,1), (3,2), (4,1), (4,2), (4,3) }
  • R3 is reflexive

Symmetric Relations

  • R is symmetric if and only if (b,a) ∈ R whenever (a,b) ∈ R for all (a,b) ∈ A.
  • Symbolically: ∀x∀y [(x,y) ∈R → (y,x) ∈ R]
  • R = {(1,2), (2,1), (3,4), (4,3), (4,4)}
  • S = {printer, ribbon), (ribbon, printer), (pen, paper), (paper, pen)}

Antisymmetric Relations

  • A relation R on a set A for all a,b ∈ A, if (a,b) ∈ R and (b,a) ∈ R, then a = b is called antisymmetric.
  • Symbolically: ∀x∀y [(x,y) ∈R ∧ (y,x) ∈ R → x = y]
  • For all a,b if (a,b)  R and a ≠ b, then (b,a)  R
  • R = {(1,2), (5,6), (3,7),(4,9),(2,2)}
  • Ex:
    • R₂ = { (1,1), (1,2), (2,1) }
    • R3 = { (1,1), (1,2), (1,4), (2,1), (2,2), (3,3), (4,1), (4,4) }
    • R₄ = { (1,1), (2,1), (3,1), (3,2), (4,1), (4,2), (4,3) }
  • R2 and R3 are symmetric
  • R₄ is antisymmetric

Transitive Relations

  • A relation R on a set A is transitive if whenever (a,b) ∈ R and (b,c) ∈ R, then (a,c) ∈ R, for all a,b,c ∈ A.
  • Symbolically: VxVy Vz[(x,y) ∈R ∧ (y,z) ∈ R → (x,z) ∈ R ]
  • Ex: R = {(1,2), (2,3),(1,3), (3,4), (2,4), (1,4) }
  • Given a relation on the set {1, 2, 3, 4}, decide whether it is reflexive, whether it is symmetric, whether it is antisymmetric, and whether it is transitive:
    • {(1, 1), (1, 2), (2, 1), (2, 2), (3, 3), (4, 4)}
      • Reflexive because (a, a) is in the relation for all a = 1, 2, 3, 4.
      • Symmetric because for every (a, b), there is (b, a)
      • Not antisymmetric because there is (1, 2) and (2, 1)
      • Transitive because while there are (1, 2) and (2, 1), there is also (1, 1) or (2, 2) in the relation.
  • Determine if the relations on the set {1, 2, 3, 4} are reflexive, symmetric, antisymmetric, and transitive:
    • {(2, 2), (2, 3), (2, 4), (3, 2), (3, 3), (3, 4)}
    • { (2, 4), (4, 2)}
    • {(1, 2), (2,2), (2, 3), (3, 4)}
    • {(1, 1), (2, 2), (2,4), (3,1), (3, 3), (4, 4)}

Combining Relations

  • Given two relations R1 and R2, combine them using set operations:
    • R1 ∪ R2
    • R1 ∩ R2
    • R1 − R2
    • R2 − R1
  • Ex: A = {1,2,3} and B = {1,2,3,4}
    • R1 = {(1,1),(2,2),(3,3)}
    • R2 = {(1,1),(1,2),(1,3),(1,4)}
    • R1 ∪ R2 ={(1,1), (1,2), (1,3),(1,4),(2,2),(3,3)}
    • R1 ∩ R2 ={(1,1)}
    • R1 − R2 ={(2,2),(3,3)}
    • R2 − R1 ={(1,2), (1,3),(1,4)}

Composition of a Relation

  • R is a relation from set A to set B, and S is a relation from B to set C. The composite of R and S has ordered pairs (a, c), where a ∈ A, c ∈ C, and there is an element b ∈ B where (a, b) ∈ R and (b, c) ∈ S. This is denoted S ◦ R.
  • Computing the composite of two relations requires finding elements that are the second element of ordered pairs in the first relation and the first element of ordered pairs in the second relation
  • Ex: R is the relation from {1, 2, 3} to {1, 2, 3, 4}.
    • R = {(1, 1), (1, 4), (2, 3), (3, 1), (3, 4)}
    • S is the relation from {1, 2, 3, 4} to {0, 1, 2}.
    • S = {(1, 0), (2, 0), (3, 1), (3, 2), (4, 1)}
    • S ○ R = { (1,0), (1,1 ), (2,1), (2,2) , (3,0), (3,1)}

Representing Relations Using

  • Digraphs
  • Matrices
  • A directed graph, or digraph, consists of a set V of vertices (or nodes) together with a set E of ordered pairs of elements of V called edges (or arcs).
    • The vertex a is the initial vertex of the edge (a,b), and the vertex b is the edge’s terminal vertex.
    • An edge of the form (a,a) is called a loop.
  • Ex: Draw the directed graph with vertices a, b, c, and d, for relation R = {(a, b), (a, d), (b, b), (b, d), (c, a), (c, b), (d, b)}
  • What are the ordered pairs in the relation represented by this directed graph?
    • R = {(1, 3), (1, 4), (2, 1), (2, 2), (2, 3), (3, 1), (3, 3), (4, 1), (4, 3) }

Representing Relations Using Matrices

  • A relation between finite sets is represented using a zero-one matrix.
  • If R is a relation from A = {a1, a2, …, am} to B = {b1, b2, …, bn}:
    • The elements can be arbitrarily ordered; when A = B, the same ordering is used.
    • The relation R is represented by the m x n matrix MR = [mij], where mij is 1 if (ai, bj) ∈ R, 0 if (ai, bj) ∉ R.
    • The matrix representing R has a 1 as its (i,j) entry when ai is related to bj and a 0 if ai is not related to bj.
  • Ex: A = {1,2,3} and B = {1,2}. R is the relation from A to B containing (a,b) if a ∈ A, b ∈ B, and a > b. The matrix representing R (assuming the increasing numerical order) is:
  • Let A = {1, 2, 3,} and B = {1,2,3,4,5}. The ordered pairs in the relation R represented by the matrix is: R = { (1,2),(2,1),(2,3),(2,4), (3,1), (3,3), (3,5)}.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

More Like This

Set Theory Quiz
6 questions

Set Theory Quiz

StellarUnderstanding avatar
StellarUnderstanding
6 - Binary Relations
6 questions

6 - Binary Relations

AffluentBowenite6835 avatar
AffluentBowenite6835
Cours d'algèbre 1 - Module 113
10 questions
Use Quizgecko on...
Browser
Browser