GateAI

GATE CSE Engineering Mathematics (EM) PYQs

In GATE Computer Science, Discrete Mathematics is heavily tested across mathematical logic, set theory, relations & partial orders/lattices, group theory, combi… Read the guide

Topics
11
Questions
261
Marks / paper
14.8
Asked
since 2011

These are the 261 GATE CSE Engineering Mathematics PYQs (since 2011), grouped topic-wise with solutions. See all GATE CSE PYQs or GATE CSE question papers by year.

Topics

Open a topic to browse its questions, or practice it as a timed test.

By year

Jump to the first question from each year’s paper.

What GATE tests in Engineering Mathematics

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

In GATE Computer Science, Discrete Mathematics is heavily tested across mathematical logic, set theory, relations & partial orders/lattices, group theory, combinatorics, and graph theory. Probability and Statistics in GATE CS is consistently tested with 2 to 4 questions per year, spanning fundamental combinatorics, conditional probability, Bayes' theorem, discrete and continuous random variables, and expectation/variance properties. Linear Algebra in GATE CS is consistently tested across fundamental properties of matrices, systems of linear equations, and spectral theory (eigenvalues and eigenvectors).

Core concepts

  • Propositional Logic, truth tables, tautologies, contradictions, and sound inference rules
  • First-Order Logic (FOL), quantifiers (∀, ∃), and negation distribution
  • Set identities, power sets, Cartesian products, and symmetric differences
  • Binary relations: reflexivity, symmetry, transitivity, antisymmetry, and circularity
  • Partial Orders, Hasse diagrams, lattices, meets/joins, and linear extensions / topological sorts
  • Function properties: injectivity, surjectivity, bijectivity, and composition properties
  • Group theory basics: order of elements, cyclic groups, subgroups, self-inverse elements, and direct products
  • Graph theory fundamentals: Handshaking Lemma, bipartite graphs, trees, planarity, chromatic numbers, matchings, vertex covers, and diameter
  • Conditional probability, law of total probability, and Bayes' theorem
  • Independent vs. mutually exclusive events
  • Linearity of expectation and indicator random variables
  • Discrete distributions: Bernoulli, Binomial, Poisson, Geometric, Uniform

How questions show up

  • Graph Invariants and Degree-Sum Counting

    Commonmixed1 marks2022, 2018, 2017, 2016

    Problems leveraging the Handshaking Lemma (∑deg(v)=2∣E∣\sum \text{deg}(v) = 2|E|), counting bounds on planar graphs, bipartite graph edge maximization, or tree edge-degree equations to deduce vertex degrees, component counts, or chromatic numbers.

  • Predicate Logic Equivalences and English-to-Logic Translation

    CommonMCQ1 marks2025, 2017, 2016, 2015

    Translating natural language statements containing quantifiers (∀,∃\forall, \exists) and implications into First-Order Logic (FOL), or determining valid entailments and equivalences using quantifier negation rules.

  • Binary Relations, Equivalence Classes, and Posets/Lattices

    Commonmixed2 marks2026, 2025, 2024, 2023

    Analyzing binary relation properties (reflexive, symmetric, transitive, antisymmetric, circular), counting relations/linear extensions, or verifying whether a given poset satisfies lattice properties (existence of unique GLB/meet and LUB/join).

  • Group Theory Structures and Subgroups

    Occasionalmixed1.5 marks2024, 2021, 2020, 2019

    Testing properties of groups, subgroup orders using Lagrange's theorem, cyclic group properties of prime order, and counting self-inverse elements in direct products of cyclic groups.

  • Combinatorial and Recursive Counting

    CommonNAT1.5 marks2026, 2024, 2022, 2021

    Counting subsets satisfying constraints, integer partitions (identical items into identical bins), topological sorts/linear extensions, or finding matchings via recurrence relations (e.g., Fibonacci-like sequences on paths).

  • Bayes' Theorem and Conditional Probability Updates

    CommonNAT2 marks2025, 2021, 2017, 2016

    Scenarios involving two or more sources/states (e.g., faulty coins, binary signal transmission through noisy channels, disease/job tests) where an observed signal/result requires computing the posterior probability of the underlying cause.

High-yield formulas

Handshaking Lemma

∑v∈Vdeg(v)=2∣E∣\sum_{v \in V} \text{deg}(v) = 2|E|

Relating vertex degrees to the total number of edges in an undirected graph.

Fermat's Little Theorem

ap−1≡1(modp)(where p is prime and gcd⁡(a,p)=1)a^{p-1} \equiv 1 \pmod p \quad (\text{where } p \text{ is prime and } \gcd(a, p) = 1)

Computing large exponent modular reductions.

Number of Reflexive Relations

2n(n−1)=2n2−n2^{n(n-1)} = 2^{n^2 - n}

Counting binary relations on an nn-element set that contain all diagonal pairs (x,x)(x, x).

Lagrange's Subgroup Theorem

∣H∣ divides ∣G∣|H| \text{ divides } |G|

Constraining possible subgroup sizes for any finite group GG.

Maximum Edges in a Bipartite Graph

⌊n/2⌋⋅⌈n/2⌉=⌊n24⌋\lfloor n/2 \rfloor \cdot \lceil n/2 \rceil = \left\lfloor \frac{n^2}{4} \right\rfloor

Finding the edge maximum for a bipartite graph on nn vertices.

Disconnected Graph Maximum Edges

(n−12)=(n−1)(n−2)2\binom{n-1}{2} = \frac{(n-1)(n-2)}{2}

Maximizing edges in a disconnected simple graph on nn vertices.

Number of Matchings in a Path Graph

M(n)=M(n−1)+M(n−2)=Fn+1M(n) = M(n-1) + M(n-2) = F_{n+1}

Recursive counting of valid matchings (including the empty matching) in a path PnP_n.

Bayes' Theorem

P(Ai∣B)=P(B∣Ai)P(Ai)∑jP(B∣Aj)P(Aj)P(A_i \mid B) = \frac{P(B \mid A_i) P(A_i)}{\sum_{j} P(B \mid A_j) P(A_j)}

Used when computing posterior probabilities given an observed condition across mutually exclusive causes.

Examiner traps in Engineering Mathematics

  • Confusing ' forall x (P(x) lor Q(x))' with ' forall x P(x) lor forall x Q(x)' (universal quantifier does NOT distribute over disjunction).
  • Forgetting that the empty relation is vacuously symmetric and transitive, but NOT reflexive on a non-empty set.
  • Neglecting the empty matching when counting total matchings of a graph.
  • Assuming every group of composite order is cyclic (e.g., order 6 can be S3 which is non-cyclic and non-abelian).
  • Confusing A subseteq B element assignment choices (3n) with independent subset pairs (4n).
  • Overlooking the requirement of unique greatest lower bounds and unique least upper bounds when testing whether a poset is a lattice.
  • Assuming independence implies mutual exclusivity or vice versa (e.g., P(A ∩ B) = 0 vs P(A ∩ B) = P(A)P(B)).
  • Forgetting that standard deviation is invariant under constant shifts: (aX + b) = |a| (X), omitting +b.

Paper trends

  • Shift from standard single-choice logical translations and definition-checking MCQs to combinatorial and structural NATs (e.g., linear extensions, subset pair counting, modular arithmetic).

    2026, 2024, 2022, 2021, 2020, 2017, 2016, 2014

  • Introduction of MSQ items requiring multi-angle verification of algebraic and relation structures (e.g., circular relations, function-induced equivalence relations, function posets/lattices, vertex cover constraints).

    2026, 2025, 2023, 2021

  • Deepening integration of linear algebra/matrices with graph structures (e.g., matrix power walks, adjacency matrix self-inverses determining 1-regular/matching graphs).

    2026, 2024, 2021

  • Shift from simple standard MCQ formulas towards NAT and multi-select MSQs testing precise definitions of independence, mutual exclusivity, and covariance bounds.

    2024, 2023, 2021, 2015, 2014