8. Properties of Relations & Functions
Here is a simple, clear note tailored for your exam review. I have used your examples and simple language to make it easy to memorize.
1. Property and Symbol Table
| Property | Symbol / Notation | Simple Meaning |
|---|---|---|
| Reflexive | \forall a \in A, (a,a) \in R | The Mirror. Every element pairs with itself. |
| Irreflexive | \forall a \in A, (a,a) \notin R | No Mirrors. No element pairs with itself. |
| Symmetric | (a,b) \in R \to (b,a) \in R | Return Ticket. If you go there, you must come back. |
| Transitive | (a,b) \in R, (b,c) \in R \to (a,c) \in R | The Shortcut. If A \to B and B \to C, then A \to C. |
| Antisymmetric | (a,b) \in R, (b,a) \in R \to a=b | One-Way (Loops OK). No return trips allowed, unless you stayed home. |
| Asymmetric | (a,b) \in R \to (b,a) \notin R | Strictly One-Way. No return trips, NO loops. |
2. Detailed Explanations (Simple Words)
A. Reflexive (The "Selfie" Property)
-
Definition: For every element inside Set A, it must be paired with itself in R. You cannot miss anyone.
-
Example: Set A = \{1, 2, 3\}.
-
R = \{ (1,1), (2,2), (3,3), (1,2) \} \to Reflexive (Everyone has a selfie).
-
R = \{ (1,1), (2,2) \} \to Not Reflexive (Where is 3,3? Missing!).
-
B. Irreflexive (Opposite of Reflexive)
-
Definition: No element is allowed to pair with itself. If you see even one "1,1", it fails.
-
Example:
-
R = \{ (1,2), (2,3) \} \to Irreflexive (No double numbers).
-
R = \{ (1,2), (2,2) \} \to Not Irreflexive (Because 2,2 is there).
-
C. Symmetric (The "Two-Way Street")
-
Definition: For every pair (a, b), you must find its partner (b, a).
- Note: You do not need to check pairs like (1,1) or (2,2). They are their own partners.
-
Example:
-
R = \{ (1,2), (2,1), (3,3) \} \to Symmetric (1,2 has 2,1. 3,3 is fine).
-
R = \{ (1,2) \} \to Not Symmetric (Missing 2,1).
-
D. Non-Symmetric
-
Definition: This just means the relation is not symmetric. At least one pair is missing its return ticket.
-
Example: R = \{ (1,2), (2,1), (2,3) \}.
- Here, (1,2) has a partner. But (2,3) is lonely (missing 3,2). So the whole list is Non-Symmetric.
E. Transitive (The "Shortcut")
-
Definition: If a connects to b, and b connects to c, then a must connect directly to c.
-
Example:
-
Check: We have (1,2) and (2,3). Do we have the shortcut (1,3)?
-
R = \{ (1,2), (2,3), (1,3) \} \to Transitive.
-
R = \{ (1,2), (2,3) \} \to Not Transitive (Missing the shortcut 1,3).
-
F. Antisymmetric vs. Asymmetric (The Confusion Killer)
This is where students make mistakes. Here is the simple difference:
-
Antisymmetric:
-
Rule: No return trips allowed... EXCEPT for loops like (1,1).
-
Traffic Rule: One-way street, but you can park in your own driveway.
-
Example: \{(1,2), (3,4), (1,1)\} is Antisymmetric.
-
-
Asymmetric:
-
Rule: No return trips allowed... AND NO LOOPS allowed.
-
Traffic Rule: Strictly one-way, and you cannot even stop at your own house.
-
Example: \{(1,2), (3,4)\} is Asymmetric.
-
Note: If you add (1,1) to this, it is no longer Asymmetric.
-
Tags: #data-engineering #sql