Sets, Relations, and Functions form the backbone of Discrete Mathematics, which is a core part of the UGC NET Computer Science syllabus (Unit 1: Discrete Structures and Optimization). These topics are highly scoring and frequently asked in the exam.
This guide will help you understand all concepts in a clear, structured, and exam-oriented way.
๐น Sets
โ What is a Set?
A set is a well-defined collection of distinct objects.
Example:
- A = {1, 2, 3, 4}
- B = {a, e, i, o, u}
๐ Types of Sets
- Finite Set โ Limited elements
- Infinite Set โ Unlimited elements
- Empty Set (โ ) โ No elements
- Universal Set (U) โ All possible elements
- Subset (โ) โ A โ B
๐ Set Operations
| Operation | Symbol | Meaning |
|---|---|---|
| Union | A โช B | Elements in A or B |
| Intersection | A โฉ B | Common elements |
| Difference | A โ B | Elements in A not in B |
| Complement | A’ | Elements not in A |
โก Important Laws
- Commutative: A โช B = B โช A
- Associative: (A โช B) โช C = A โช (B โช C)
- Distributive:
- A โฉ (B โช C) = (A โฉ B) โช (A โฉ C)
๐ Power Set
The power set is the set of all subsets.
- If a set has n elements โ Power set has 2โฟ elements
๐น Relations
โ Definition
A relation R from set A to B is a subset of A ร B (Cartesian product).
๐ Types of Relations
1. Reflexive
(a, a) โ R for all a โ A
2. Symmetric
If (a, b) โ R โ (b, a) โ R
3. Transitive
If (a, b) โ R and (b, c) โ R โ (a, c) โ R
โก Equivalence Relation
A relation that is:
- Reflexive
- Symmetric
- Transitive
๐ It partitions a set into equivalence classes
๐ Representation of Relations
- Roster form
- Matrix form
- Directed graph (Digraph)
๐น Functions
โ Definition
A function is a special type of relation where each element of domain has exactly one image in codomain.
๐ Types of Functions
1. One-One (Injective)
Different inputs โ Different outputs
2. Onto (Surjective)
Every element in codomain is mapped
3. Bijective
Both one-one and onto
๐ Special Functions
- Identity Function: f(x) = x
- Constant Function: f(x) = c
๐ Composition of Functions
- (f โ g)(x) = f(g(x))
๐ Inverse Function
- Exists only if function is bijective
๐ Important Concepts for UGC NET
Focus on these high-weightage areas:
- Set identities and laws
- Power set problems
- Types of relations (especially equivalence)
- Closure properties
- Function types (injective, surjective, bijective)
- Composition and inverse
๐ฏ Exam Tips
- Practice Venn diagram-based questions
- Solve previous year questions (PYQs)
- Focus on relation properties (very common in exam)
- Practice identifying function types quickly
๐ Conclusion
Sets, Relations, and Functions are foundational topics in UGC NET Computer Science. With proper practice and conceptual clarity, you can easily score full marks from this section.
Mastering these concepts will also help in advanced topics like graph theory, databases, and automata theory.