π Module 2: Binary Relations
Duration: Weeks 3-7
π Core Topics
Properties of Relations
- Reflexive & Irreflexive: Self-relationships
- Symmetric, Antisymmetric & Asymmetric: Bidirectional behavior
- Transitive: Chain relationships
- Composition & Closures: Building new relations
Equivalence Relations (Weeks 3-4)
- Definition and properties
- Equivalence classes
- Partitions and quotient sets
- Fundamental theorem: Equivalences <-> Partitions
Order Relations (Weeks 4-5)
- Partial Orders (Posets): β€ relation
- Linear/Total Orders: Complete ordering
- Well-orderings: Every subset has minimum
- Hasse Diagrams: Visual representation
- Elements: Maximal/minimal, greatest/least
- Structures: Chains and antichains
- Dilworthβs Theorem: Chain decomposition
Functions (Week 5)
- Functions as special relations
- Components: Domain, codomain, range, image, preimage
- Types:
- Injective (one-to-one)
- Surjective (onto)
- Bijective: Both injective and surjective
- Composition and inverses
Lattices (Week 7)
- Upper and lower bounds
- Suprema and infima
- Complete lattices
- Modular and distributive lattices
- Boolean algebras as lattices
π Key Definitions
| Relation Type | Properties | Example |
|---|---|---|
| Equivalence | Reflexive + Symmetric + Transitive | Equality, Congruence |
| Partial Order | Reflexive + Antisymmetric + Transitive | Divisibility, Subset |
| Total Order | Partial Order + Any two comparable | β€ on β |
| Function | Each input maps to exactly one output | f: β β β, f(n) = nΒ² |
π‘ Applications
Real-world uses:
- ποΈ Database design and normalization
- π Program analysis and verification
- π Scheduling and task ordering
- π Cryptographic hash functions
- π― Algorithm optimization
β Learning Outcomes
By the end of this module, you will be able to:
- β Determine and prove properties of relations
- β Find equivalence classes and construct quotient sets
- β Draw and interpret Hasse diagrams for partial orders
- β Prove functions are injective/surjective/bijective
- β Compose functions and find inverses
- β Apply pigeonhole principle to solve counting problems