GATE CSE Discrete Mathematics 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
- Questions
- 50
- Asked
- since 2011
- Total marks
- 71
- Marks / paper
- 2.7
50 GATE CSE Discrete Mathematics PYQs with solutions, from Engineering Mathematics. Browse all GATE CSE PYQs.
Questions
Every official paper that asked this topic, newest first.
- GATE CSE 2026 Set 1 · Q12Consider matrices with their elements from . The number of such matrices with even number of s in every row and every column isMCQ1 markMediumSolve
- GATE CSE 2026 Set 1 · Q47Let be a simple, undirected graph. A vertex cover of is a subset such that for every , or . Let the size of the smallest vertex cover in be . Let be any vertex cover of size . For a vertex , which of the…MSQ2 marksMediumSolve
- GATE CSE 2026 Set 1 · Q57Let be an undirected graph, which is a path on 8 vertices. The number of matchings in is ________. (answer in integer)NAT2 marksMediumSolve
- GATE CSE 2026 Set 2 · Q26Let be a binary relation on the set , where if the product of and is square of an integer. Which of the following properties is/are satisfied by ?MSQ1 markMediumSolve
- GATE CSE 2025 Set 1 · Q17 is a function from to , is a function from to , and their composition defined as is a mapping from to . If and are onto (surjective) functions, which ONE of the following is TRUE about the function ?MCQ1 markEasySolve
- GATE CSE 2025 Set 2 · Q15Let be an arbitrary predicate over the domain of natural numbers. Which ONE of the following statements is TRUE?MCQ1 markEasySolve
- GATE CSE 2025 Set 2 · Q42Let be the set of all functions from to . Define the binary relation on as follows: if and only if , where . Which of the…MSQ2 marksMediumSolve
- GATE CSE 2024 Set 2 · Q17Let be the adjacency matrix of a simple undirected graph . Suppose is its own inverse. Which one of the following statements is always TRUE?MCQ1 markMediumSolve
- GATE CSE 2024 Set 2 · Q34Let be the partial order defined on the set as follows The number of total orders on that contain is _________NAT1 markMediumSolve
- GATE CSE 2024 Set 2 · Q63Let be the group of integers with addition modulo as the group operation. The number of elements in the group that are their own inverses is _________NAT2 marksEasySolve
- GATE CSE 2023 · Q49Let be an onto (or surjective) function, where and are nonempty sets. Define an equivalence relation on the set as where . Let be the set of all the equivalence…MSQ2 marksMediumSolve
- GATE CSE 2022 · Q30Consider a simple undirected graph of 10 vertices. If the graph is disconnected, then the maximum number of edges it can have is ________.NAT1 markEasySolve
- GATE CSE 2022 · Q32The number of arrangements of six identical balls in three identical bins is ________.NAT1 markEasySolve
- GATE CSE 2022 · Q58Let be a directed graph, where is the set of vertices and is the set of directed edges, as defined by the following adjacency matrix . indicates a directed edge from…NAT2 marksMediumSolve
- GATE CSE 2021 Set 1 · Q34Let be a group of order 6, and be a subgroup of such that . Which one of the following options is correct?MCQ2 marksMediumSolve
- GATE CSE 2021 Set 1 · Q36Let be an undirected unweighted connected graph. The of is defined as: Let be the adjacency matrix of . Define graph on the same set of vertices with…MCQ2 marksMediumSolve
- GATE CSE 2021 Set 1 · Q43A relation is said to be if and together imply . Which of the following options is/are correct?MSQ2 marksEasySolve
- GATE CSE 2021 Set 2 · Q50Let be a set consisting of 10 elements. The number of tuples of the form such that and are subsets of , and is __________.NAT2 marksEasySolve
- GATE CSE 2020 · Q17Let be the set of all binary relations on the set . Suppose a relation is chosen from at random. The probability that the chosen relation is reflexive (round off to 3 decimal places) is ________.NAT1 markEasySolve
- GATE CSE 2020 · Q18Let be a group of 35 elements. Then the largest possible size of a subgroup of other than itself is ________.NAT1 markEasySolve
- GATE CSE 2019 · Q10Let be an arbitrary group. Consider the following relations on : Which of the above is/are equivalence…MCQ1 markMediumSolve
- GATE CSE 2019 · Q12Let be an undirected complete graph on vertices, where . Then, the number of different Hamiltonian cycles in is equal toMCQ1 markEasySolve
- GATE CSE 2018 · Q18The chromatic number of the following graph is ______.NAT1 markMediumDiagramSolve
- GATE CSE 2017 Set 1 · Q1The statement is logically equivalent to which of the statements below? I. II. III. IV. MCQ1 markEasySolve
- GATE CSE 2017 Set 1 · Q2Consider the first-order logic sentence . Assuming non-empty logical domains, which of the sentences below are *implied* by ? I. II. III. IV. MCQ1 markMediumSolve
- GATE CSE 2017 Set 1 · Q20Let be a tree with 10 vertices. The sum of the degrees of all the vertices in is ________.NAT1 markEasySolve
- GATE CSE 2017 Set 1 · Q29Let , , and be propositions and the expression be a contradiction. Then, the expression isMCQ2 marksMediumSolve
- GATE CSE 2017 Set 2 · Q11Let denote the statements “It is raining”, “It is cold”, and “It is pleasant”, respectively. Then the statement “It is not raining and it is pleasant, and it is not pleasant only if it is raining and it is cold” is represented byMCQ1 markMediumSolve
- GATE CSE 2017 Set 2 · Q21Consider the set under the partial ordering The Hasse diagram of the partial order is shown below. The minimum number of ordered pairs that need to be added to to make a lattice…NAT1 markEasyDiagramSolve
- GATE CSE 2017 Set 2 · Q23 is an undirected graph with vertices and 25 edges such that each vertex of has degree at least 3. Then the maximum possible value of is _________ .NAT1 markEasySolve
- GATE CSE 2016 Set 2 · Q26A binary relation on is defined as follows: if or . Consider the following propositions: P: is reflexive Q: is transitive Which one of the following statements is TRUE?MCQ2 marksMediumSolve
- GATE CSE 2016 Set 2 · Q27Which one of the following well-formed formulae in predicate calculus is NOT valid?MCQ2 marksMediumSolve
- GATE CSE 2016 Set 2 · Q28Consider a set of 23 different compounds in a Chemistry lab. There is a subset of of 9 compounds, each of which reacts with exactly 3 compounds of . Consider the following statements: I. Each compound in reacts with an odd number of compounds. II. At least one compound in …MCQ2 marksMediumSolve
- GATE CSE 2016 Set 2 · Q29The value of the expression , in the range 0 to 16, is _______.NAT2 marksEasySolve
- GATE CSE 2015 Set 1 · Q16For a set , the power set of is denoted by . If , which of the following options are TRUE? I. II. III. IV. MCQ1 markMediumSolve
- GATE CSE 2015 Set 1 · Q34Suppose is a lattice represented by the following Hasse diagram: For any , not necessarily distinct, and are join and meet of , respectively. Let be the set of…MCQ2 marksMediumDiagramSolve
- GATE CSE 2015 Set 2 · Q3Consider the following two statements. : If a candidate is known to be corrupt, then he will not be elected : If a candidate is kind, he will be elected Which one of the following statements follows from and as per sound inference rules of logic?MCQ1 markEasySolve
- GATE CSE 2015 Set 3 · Q23Suppose is the power set of the set . For any , let denote the number of elements in and denote the complement of . For any , let be the set of all elements in which are not in . Which one of the following is…MCQ1 markMediumSolve
- GATE CSE 2015 Set 3 · Q24In a room there are only two types of people, namely Type 1 and Type 2. Type 1 people always tell the truth and Type 2 people always lie. You give a fair coin to a person in that room, without knowing which type he is from and tell him to toss it and hide the result from you till you ask for it. Upon asking, the…MCQ1 markMediumSolve
- GATE CSE 2014 Set 1 · Q1Consider the statement “Not all that glitters is gold” Predicate is true if glitters and predicate is true if is gold. Which one of the following logical formulae represents the above statement?MCQ1 markEasySolve
- GATE CSE 2014 Set 2 · Q3The maximum number of edges in a bipartite graph on 12 vertices is _________.NAT1 markEasySolve
- GATE CSE 2014 Set 2 · Q49The number of distinct positive integral factors of 2014 is _______________________NAT2 marksEasySolve
- GATE CSE 2014 Set 2 · Q50Consider the following relation on subsets of the set of integers between 1 and 2014. For two distinct subsets and of we say if the minimum element in the symmetric difference of the two sets is in . Consider the following two statements: S1: There is a subset of that is…MCQ2 marksHardSolve
- GATE CSE 2013 · Q1A binary operation on a set of integers is defined as . Which one of the following statements is TRUE about ?MCQ1 markEasySolve
- GATE CSE 2013 · Q25Which of the following statements is/are TRUE for undirected graphs? P: Number of odd degree vertices is even. Q: Sum of degrees of all vertices is even.MCQ1 markEasySolve
- GATE CSE 2013 · Q26The line graph of a simple graph is defined as follows: • There is exactly one vertex in for each edge in . • For any two edges and in , has an edge between and , if and only if and are incident with the same vertex…MCQ2 marksMediumSolve
- GATE CSE 2013 · Q27What is the logical translation of the following statement? “None of my friends are perfect.”MCQ2 marksEasySolve
- GATE CSE 2012 · Q1Consider the following logical inferences. : If it rains then the cricket match will not be played. The cricket match was played. : There was no rain. : If it rains then the cricket match will not be played. It did not rain. :…MCQ1 markEasySolve
- GATE CSE 2012 · Q26Which of the following graphs is isomorphic toMCQ2 marksMediumDiagramSolve
- GATE CSE 2011 · Q17K4 and Q3 are graphs with the following structures. Which one of the following statements is TRUE in relation to these graphs?MCQ1 markEasyDiagramSolve
What GATE tests in Discrete 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. Questions evaluate formal reasoning, counterexample construction, and structural counting principles. Over recent years, question formats have transitioned from standard single-choice definitions to multi-select properties (MSQs) and exact integer/combinatorial numerical answers (NATs).
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
Recurring question patterns
Graph Invariants and Degree-Sum Counting
Commonmixed1 marks2022, 2018, 2017, 2016Problems leveraging the Handshaking Lemma (), 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, 2015Translating natural language statements containing quantifiers () 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, 2023Analyzing 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, 2019Testing 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, 2021Counting 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).
Formulas GATE uses
Handshaking Lemma
Relating vertex degrees to the total number of edges in an undirected graph.
Fermat's Little Theorem
Computing large exponent modular reductions.
Number of Reflexive Relations
Counting binary relations on an -element set that contain all diagonal pairs .
Lagrange's Subgroup Theorem
Constraining possible subgroup sizes for any finite group .
Maximum Edges in a Bipartite Graph
Finding the edge maximum for a bipartite graph on vertices.
Disconnected Graph Maximum Edges
Maximizing edges in a disconnected simple graph on vertices.
Number of Matchings in a Path Graph
Recursive counting of valid matchings (including the empty matching) in a path .
Examiner traps in Discrete 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.
How questions are asked
- Logical equivalence / translation identification (MCQ)
- Hasse diagram / poset property evaluation and pair counting (NAT / MSQ)
- Graph property & invariant calculation using degree sum / planarity / connectivity (NAT / MCQ)
- Linear extensions / topological sort counting for given posets (NAT)
- Group subgroup order / self-inverse element counting (NAT / MCQ)
- Relational property multi-statement checks (MSQ)
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
Difficulty notes
Easy: Direct application of single formulas (Lagrange's theorem, Handshaking Lemma, Fermat's Little theorem, direct logical truth table checks). Medium: Multi-step reasoning involving counterexample elimination (validity of FOL statements, transitivity counterexamples, linear extensions counting, non-distributive lattice analysis). Hard: Abstract poset relations over sets, intricate structural proofs on graph covers/matchings requiring combinatorics or invariant derivations.