Bifalgorithm post · Brisk · Chapter 1

How many different relations can exist between two sets?

How many different relations can exist between two sets? (Brisk · Chapter 1) — "Now if I define a relation between X and Y, I’m simply specifying that certain…

Ideas in this flowchart

  • Relations between two sets X and Y
  • A relation specifies which ordered pairs are included and which are excluded.
  • The possible ordered pairs come from the Cartesian product X × Y.
  • Examples of relations between X and Y
  • R = {(Harry, Mt. Dew), (Ron, Mt. Dew)}
  • S = {(Hermione, Mt. Dew), (Hermione, Dr. Pepper), (Harry, Dr. Pepper)}
  • T = ∅, containing no ordered pairs
  • Each ordered pair in X × Y is either present or absent from a relation.
  • There are |X| · |Y| possible ordered pairs.
  • Each possible pair has two choices: present or absent.
  • The total number of relations is 2^(|X|·|Y|).
  • The set of all relations between X and Y is the power set of X × Y.
  • When |X × Y| = 6, there are 2^6 = 64 relations.
  • Among these relations are the empty relation and the relation containing all six ordered pairs.
  • The paragraph raises questions about relations containing exactly one or exactly five ordered pairs.
Feed/

How many different relations can exist between two sets?

Channel

Brisk

1 page

"Now if I define a relation between X and Y, I’m simply specifying that certain of these ordered pairs are in the relation, and certain ones are not. For example, I could define a relation R that contains only {(Harry, Mt. Dew), (Ron, Mt. Dew)}. I could define another relation S that contains {(Hermione, Mt. Dew), (Hermione, Dr. Pepper), (Harry, Dr. Pepper)}. I could define another relation T that has none of the ordered pairs; in other words, T = ∅. A question that should occur to you is: how many different relations are there between two sets X and Y? Every one of the ordered pairs in X × Y either is, or is not, in a particular relation between X and Y. Since there are a total of |X| · |Y| ordered pairs, and each one of them can be either present or absent from each relation, there must be a total of 2^(|X|·|Y|) different relations between them. Put another way, the set of all relations between X and Y is the power set of X × Y. In the example above, then, there are a whopping 2^6, or 64, different relations between those two little sets. One of those relations is the empty set. Another one has all six ordered pairs in it. The rest fall somewhere in the middle. Food for thought: how many of these relations have exactly one ordered pair? How many have exactly five?"

Flowchart preview
Series cover
👍
0
0 comments0 shares

Sign in to view and post comments.