← View in Interactive Graph

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)

B. Irreflexive (Opposite of Reflexive)

C. Symmetric (The "Two-Way Street")

D. Non-Symmetric

E. Transitive (The "Shortcut")

F. Antisymmetric vs. Asymmetric (The Confusion Killer)

This is where students make mistakes. Here is the simple difference:

  1. 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.

  2. 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

Logic_and_Math_In_Programming