๐Ÿง  Sets, Relations, and Functions โ€“ UGC NET Computer Science Complete Guide

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

OperationSymbolMeaning
UnionA โˆช BElements in A or B
IntersectionA โˆฉ BCommon elements
DifferenceA โˆ’ BElements in A not in B
ComplementA’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.

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *