Skip to content
← All questions

How does the humans-and-pets example illustrate that a relation is a subset of the Cartesian product?

The example defines a set of humans and a set of pets. The Cartesian product contains all possible human-pet pairings. The ownership relation is shown to include only specific pairings (e.g., h1h_1 owns c1c_1, h2h_2 owns d1d_1) while excluding others (e.g., h4h_4 owns no pets). This selective inclusion demonstrates that the relation is a subset of the full Cartesian product.

Conditions

  • The sets are humans {h1h_1, h2h_2, h3h_3, h4h_4} and pets {d1d_1, c1c_1, d2d_2, m1m_1}.
  • The relation is ownership.

Reasoning, step by step

  1. List the elements of the humans set and the pets set.
  2. Conceptualize the Cartesian product as all possible ordered pairs (human, pet).
  3. Identify the specific ordered pairs that satisfy the ownership relation (e.g., (h1h_1, c1c_1), (h2h_2, d1d_1)).
  4. Note the ordered pairs that do not satisfy the relation (e.g., (h4h_4, d1d_1)).
  5. Conclude that the relation consists only of the satisfying pairs, making it a subset of the Cartesian product.

Example

The video draws arrows for specific ownerships: h1h_1 to c1c_1, h2h_2 to d1d_1, and h3h_3 to d1d_1. It leaves h4h_4, d2d_2, and m1m_1 unconnected. The lecturer states that some pairings were in the relation and some were not, illustrating that it is not all possible pairings.

Common misconceptions

  • Assuming the relation includes all humans and all pets.
  • Thinking the Cartesian product is the same as the relation.

Watch the explanation

Connected concepts

Explore next

Related questions

Find a method

↗
Meet the concept

↗
Understand why

↗
Meet the concept

↗

Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.