Cartesian Product
Context: FIT1058_MOC Β· builds sets of ordered tuples Β· cardinality multiplies Β· underlies in Sets of Strings
Quick Revision
- π― Objective: = all ordered pairs, first from , second from β order matters.
- π¦ Core Components: ordered pair β β -tuples.
- β‘ Key Constraint: not commutative (); multiplicative growth, not exponential.
π Core
1. The Product (Ordered Tuples)
- Ordered pair β , order matters ( unless ).
- Definition β .
- Contrast a set β tuples are ordered; set elements are not.
2. Cardinality Multiplies
- Product rule β (independent choices).
- factors β length- tuples, .
3. Geometry & Strings
- Spaces β = plane, = 3-D space.
- Strings β length- string over = element of , so (Sets of Strings).
Key identities:
βοΈ Core Decision Matrix
| Constructor | Size | Growth |
|---|---|---|
| multiplicative | ||
| polynomial in | ||
| Power Set | exponential |
When It Flips: the two principal set constructors grow very differently β Cartesian product multiplies sizes, the power set exponentiates. Product is not commutative but its cardinality is order-independent.
π Exam Execution Trace
Manual Execution Trace
, :
| Step / State | Quantity | Result |
|---|---|---|
| 0 (Init) | β | β |
| 1 | ||
| 2 | ||
| 3 |
β οΈ Common Mistakes
- π‘ Not commutative β and are different tuples; and have equal size but differ as sets.
π§ Active Recall
Why is , and why are the elements ordered pairs?
- Hint: Independent choice + role.
Answer
- Short answer: choices for the first component, for the second βΉ product; components have distinct roles.
- Why: Ordered β ; a set would ignore that order.
How does a length- string over relate to a Cartesian product, and its count?
- Hint: String = tuple.
Answer
- Short answer: A length- string is a -tuple in .
- Why: Product rule β .