GateAI

GATE CSE Sets, Relations and Functions PYQs

Standard yield1.8% of Engineering Mathematics

In this topic, GATE tests the foundational properties of finite sets, combinatorial counting of structured objects (such as matrices and function spaces), and t… Read the guide

Questions
5
Asked
2014–2024
Total marks
7
Marks / paper
0.3

5 GATE CSE Sets, Relations and Functions PYQs with solutions, from Engineering Mathematics. Browse all GATE CSE PYQs.

Questions

Every official paper that asked this topic, newest first.

What GATE tests in Sets, Relations and Functions

Concepts, patterns, formulas and traps distilled from past papers.

In this topic, GATE tests the foundational properties of finite sets, combinatorial counting of structured objects (such as matrices and function spaces), and the existence of mappings (injections, surjections, and bijections). The focus is on comparing cardinalities of constructed sets and understanding how equal or unequal cardinalities govern the existence of specific mapping types.

Core concepts

  • Set cardinality
  • Power set definition and cardinality
  • Inclusive integer range counting
  • Involutions (functions satisfying f(f(x)) = x)
  • Bijection, Injection, and Surjection properties of invertible functions
  • Fixed points of finite set permutations (f(x) = x)
  • Parity and counting arguments on finite set cardinalities
  • Set Cardinality and Combinatorics
  • Matrix configurations over finite alphabets
  • Function spaces and total functions (BA)
  • Injective, Surjective, and Bijective mappings between finite sets
  • Function cardinality and function spaces (BA)
  • Bijection (one-to-one and onto) and equinumerosity
  • Cartesian product cardinality
  • Principle of Inclusion-Exclusion bounds on union of sets
  • Logarithmic scaling of large combinatorial powers

Recurring question patterns

  • Power Set Cardinality Computation

    RareNAT1 marks2015

    Given an explicitly defined finite set or integer range (often starting from 0 to test inclusive counting), compute the total number of subsets (the cardinality of the power set) using 2∣S∣2^{|S|}.

  • Properties of Involutions and Finite Set Mappings

    RareMCQ2 marks2014

    Given a function f:S→Sf: S \to S satisfying an algebraic relation like f(f(x))=xf(f(x)) = x on a finite set SS, evaluate statements concerning injectivity, surjectivity, identity mapping, and the existence of fixed points.

  • Cardinality Comparison and Existence of Mappings

    RareMSQ1 marks2021

    Two abstract sets S1S_1 and S2S_2 are defined via combinatorial constructions (e.g., matrices over finite alphabets, set of total functions). Candidates compute ∣S1∣|S_1| and ∣S2∣|S_2| to evaluate assertions regarding injective, surjective, or bijective mappings between them.

  • Higher-Order Function Space Cardinality

    OccasionalNAT2 marks2014

    Determining the size of a set of functions and subsequent meta-functions between such sets, usually requiring logarithmic compression to evaluate the final integer answer.

  • Cardinality Constraints from Bijections

    OccasionalNAT1 marks2024

    Given bijective mappings between compound sets derived from finite sets (such as A×AA \times A and A∪BA \cup B), setting up bounds via the Principle of Inclusion-Exclusion to find the number of valid integer cardinalities.

Formulas GATE uses

Power Set Cardinality

∣P(S)∣=2∣S∣|\mathcal{P}(S)| = 2^{|S|}

Used to find the number of all possible subsets of a finite set SS.

Inclusive Integer Range Cardinality

∣{a,a+1,…,b}∣=b−a+1|\{a, a+1, \dots, b\}| = b - a + 1

Used to find the number of elements in a contiguous set of integers from aa to bb inclusive.

Cycle Decomposition of Involutions

2k+m=∣S∣2k + m = |S|

Used to relate the number of 2-cycles (kk) and fixed points / 1-cycles (mm) to the total cardinality of the set ∣S∣|S|.

Invertibility Condition for Involutions

f(f(x))=x  ⟹  f=f−1  ⟹  f is bijective (injective and surjective)f(f(x)) = x \implies f = f^{-1} \implies f \text{ is bijective (injective and surjective)}

Used to prove that any self-inverse mapping on a set is both one-to-one and onto.

Number of Matrices Over a Finite Set

∣S∣=∣A∣n×m|S| = |A|^{n \times m}

Determining the number of n×mn \times m matrices where each entry is chosen independently from an alphabet/set AA.

Total Number of Functions

∣BA∣=∣B∣∣A∣|B^A| = |B|^{|A|}

Computing the number of total functions from domain set AA to codomain set BB.

Existence of Mappings between Finite Sets

∣A∣=∣B∣  ⟹  Bijection exists  ⟹  (Injection exists∧Surjection exists)|A| = |B| \implies \text{Bijection exists} \implies (\text{Injection exists} \land \text{Surjection exists})

Evaluating the validity of assertions about injective, surjective, and bijective mappings between finite sets of identical cardinality.

Number of Functions Between Sets

∣BA∣=∣B∣∣A∣|B^A| = |B|^{|A|}

Used to compute total number of functions from domain set AA to codomain set BB.

Bijection Cardinality Equivalence

f:X→Y is bijective  ⟹  ∣X∣=∣Y∣f: X \to Y \text{ is bijective} \implies |X| = |Y|

Used to equate cardinalities of sets connected by a one-to-one and onto function.

Cartesian Product Cardinality

∣A×B∣=∣A∣×∣B∣|A \times B| = |A| \times |B|

Used when computing domain or codomain size of product sets.

Inclusion-Exclusion Cardinality Bounds

∣A∣≤∣A∪B∣=∣A∣+∣B∣−∣A∩B∣≤∣A∣+∣B∣|A| \le |A \cup B| = |A| + |B| - |A \cap B| \le |A| + |B|

Used to establish bounds on the union of two finite sets.

Examiner traps in Sets, Relations and Functions

  • Off-by-one counting error: assuming the set {0, 1, , n} has n elements instead of n + 1, leading to computing 210 = 1024 instead of 211 = 2048.
  • Off-by-one error when counting elements in a range starting at 0 (e.g., forgetting that |{0, 1, , 2014}| = 2015, an odd number).
  • Assuming an involution must be the identity map globally (f(x) = x for all x) rather than permitting 2-cycles / pairwise swaps.
  • Failing to recognize that f f = I implies f is its own two-sided inverse, directly guaranteeing that f is onto.
  • Confusing domain and codomain powers when computing function count (|A||B| vs |B||A|).
  • Selecting only 'bijection exists' and missing 'surjection exists' or 'injection exists' in an MSQ format.
  • Miscalculating matrix cardinality as |A| × n2 instead of |A|n2.
  • Confusing |B||A| with |A||B| when computing total functions.
  • Forgetting to enforce non-emptiness (|A| ≥ 1), which might incorrectly allow |A| = 0.
  • Missing extreme overlap cases in set unions (disjoint vs subset) leading to missing valid integer solutions for |A|.

How questions are asked

  • Direct NAT power set size calculation
  • Multi-statement verification on function properties
  • Identify valid mapping properties (injection/surjection/bijection) between two constructed sets
  • Evaluate nested log of total function count
  • Determine the count of possible set cardinalities satisfying bijective conditions

Paper trends

  • Appears as a 1-mark NAT testing quick evaluation of power set size with minimal computational complexity.

    2015

  • In 2014, emphasis was placed on combining functional identities (f(f(x))=xf(f(x)) = x) with discrete parity arguments based on set cardinality (∣S∣=2015|S| = 2015) to determine surjectivity and fixed-point presence.

    2014

  • With the introduction of MSQ question types in 2021, set theory questions test multiple logical consequences of cardinality equality (e.g., bijection implies both injection and surjection) across individual options.

    2021

  • Both questions appear as NAT items testing cardinality principles rather than abstract proofs, shifting from direct nested function counting to inequality-bounded algebraic reasoning on set cardinalities.

    2024, 2014

Difficulty notes

Easy: Direct evaluation of power set size 2∣S∣2^{|S|} for a contiguous range of integers. Medium: Base set defined with predicates/conditions (e.g., divisibility or prime criteria) before power set evaluation. Hard: Nested power sets (e.g., ∣P(P(S))∣|\mathcal{P}(\mathcal{P}(S))|) or subsets with specific size/parity constraints.