Cartesian Products Intersection When Sets Share Elements
Let and be finite sets and let . We will show that the Cartesian products and have exactly elements in common.
A pair lies in both and exactly when:
- and , and also
- and .
Equivalently, this means and . Therefore the intersection satisfies
Now if , then the set has elements (since each coordinate can be any of the common elements).
So the cardinality of the intersection is
Important note (consistency check): The standard result gives common elements, not . The statement “ elements in common” matches the size of a power set (i.e., ), but not the intersection of Cartesian products.
Cartesian Product Basics (Sets and Elements)
Derive the intersection $(A×B)∩(B×A)$
- 1Step 1
A pair iff and .
- 2Step 2
means and ; means and .
- 3Step 3
From both conditions, and .
- 4Step 4
Thus .
- 5Step 5
If , then .
About the $2^n$ claim
For Cartesian products, the intersection size becomes . The expression is typical for power sets: , not for .
To connect with the common “” intuition, observe:
- counts ordered pairs of common elements, giving outcomes.
- counts subsets of common elements, giving outcomes.
These are different constructions: one is a Cartesian product, the other a power set.
We can state this cleanly with keywords:
- Cartesian product
- Intersection of sets
- Power set
- Cardinality
Common-element counts: Cartesian products vs power set
For , the intersection size of Cartesian products is , while is the power set size.
FAQ / Edge cases
Intersection of Cartesian Products
Knowledge Check
If , what is ?
Explore Related Topics
Relational Algebra Equivalence: Why $\pi_A(R) - \pi_A((\pi_A(R) \times S) - R)$ Represents Division
The expression
[ \pi_A(R)-\pi_A\big((\pi_A(R)\times S)-R\big) ]
is a derived form of the relational‑algebra division operator, returning all (A) values that pair with every tuple in (S).
- Division is defined as (R\div S={a\mid\forall b\in S,;(a,b)\in R}).
- The formula works by (1) projecting candidate (A) values, (2) forming all required ((A,B)) pairs with (S), (3) subtracting existing pairs to find missing ones, (4) projecting the missing (A) values, and (5) removing them from the candidates.
- In the example, (R(A,B)={(1,x),(1,y),(2,x),(2,y),(3,x)}) and (S(B)={x,y}) yield (R\div S={1,2}).
- This construction captures the universal (“for all”) query pattern, unlike selection, join, or simple projection.
Time Complexity via Divide-and-Conquer Recurrences (Two Worked Examples)
Maximum number of edges in a bipartite graph: why $\lfloor n^2/4\rfloor$ is optimal