Unit summary
Sets are collections of distinct objects with operations union, intersection, difference and complement, and laws such as De Morgan's. Relations are subsets of Cartesian products with properties reflexive, symmetric, antisymmetric and transitive; equivalence relations partition a set. Closures add the smallest set of pairs for a property, and Warshall's algorithm finds the transitive closure in O(n³). Functions may be injective, surjective or bijective, can be composed and, if bijective, inverted. Floor, ceiling, logarithmic, exponential and polynomial functions are widely used.
Glossary
| Term | Meaning |
|---|---|
| Set | Collection of distinct objects |
| Power set | Set of all subsets, size 2ⁿ |
| Cartesian product | All ordered pairs from two sets |
| Equivalence relation | Reflexive, symmetric and transitive relation |
| Partition | Disjoint blocks covering a set |
| Transitive closure | Smallest transitive relation containing R |
| Injective | One-to-one function |
| Surjective | Onto function |
| Bijective | Both injective and surjective |
| Floor and ceiling | Round down and round up to an integer |
Question bank
Short answer questions
- State De Morgan's laws.
- Define equivalence relation.
- Define bijective function.
- Find ⌊−3.5⌋ and ⌈−3.5⌉.
- What is the time complexity of Warshall's algorithm?
Long answer questions
- Explain set operations and their properties with Venn diagrams.
- Explain types of relations and equivalence classes with examples.
- Explain Warshall's algorithm with an example.
- Explain injective, surjective and bijective functions with inverses.
- Explain useful functions for computer science.
Sources
- Official BCA syllabus Mathematics Foundations to Computer Science I, course code CC101, Unit I
