Bifalgorithm post · Brisk · Chapter 1

What is a relation between two sets?

What is a relation between two sets? (Brisk · Chapter 1) — "A relation between a set X and Y is a subset of the Cartesian product X × Y. Recall that X × Y yiel…

Ideas in this flowchart

  • Une relation entre X et Y est une structure fondée sur les paires ordonnées de X et Y.
  • Une relation entre X et Y est un sous-ensemble du produit cartésien X × Y.
  • Le produit cartésien X × Y contient une paire ordonnée pour chaque combinaison d’un élément de X et d’un élément de Y.
  • Si X contient 5 éléments et Y en contient 4, alors X × Y contient 20 paires ordonnées.
  • Exemple : X = {Harry, Ron, Hermione} et Y = {Dr. Pepper, Mt. Dew}.
  • Dans cet exemple, X × Y contient les six combinaisons possibles entre les personnes et les boissons.
  • Chaque combinaison possible doit apparaître dans le produit cartésien.
  • Une énumération méthodique peut regrouper d’abord toutes les paires de Harry, puis celles de Ron et d’Hermione.
  • L’ordre d’énumération n’a aucune importance, car les éléments d’un ensemble ne sont pas ordonnés.
Feed/

What is a relation between two sets?

Channel

Brisk

1 page

"A relation between a set X and Y is a subset of the Cartesian product X × Y. Recall that X × Y yields a set of ordered pairs, one for each combination of an element from X and an element from Y. If X has 5 elements and Y has 4, then X × Y is a set of 20 ordered pairs. To make it concrete, if X is the set {Harry, Ron, Hermione}, and Y is the set {Dr. Pepper, Mt. Dew}, then X × Y is {(Harry, Dr. Pepper), (Harry, Mt. Dew), (Ron, Dr. Pepper), (Ron, Mt. Dew), (Hermione, Dr. Pepper), (Hermione, Mt. Dew)}. Convince yourself that every possible combination is in there. I listed them out methodically to make sure I didn’t miss any—all the Harry’s first, with each drink in order, then all the Ron’s, etc.—but of course there’s no order to the members of a set, so I could have listed them in any order."

Flowchart preview
Series cover
👍
0
0 comments0 shares

Sign in to view and post comments.