chapter
    Discrete Mathematics Short Notes for GATE CS

    GATE CS Discrete Mathematics: 7 chapters, 47 previous year questions (45% of Engineering Mathematics), 757 practice questions and one solved question from eac

    A question from this chapter

    Question 1
    Level 3: Exam Standard

    Consider the following logical rules for a server cluster:

    1. The cluster is healthy () if the CPU usage () is below 80% and the network is stable ().
    2. The cluster triggers an alarm () unless it is healthy () and the power is redundant ().
    3. The power is redundant () only if the network is not stable ().

    It is observed that the cluster is healthy ( is True), no alarm is triggered ( is False), and the CPU usage is below 80% ( is True).

    Which one of the following is the CORRECT truth value of the network being stable ()?

    Question 2
    Level 3: Exam Standard

    Match the items in List I with the correct number of relations/structures in List II.

    <b>List I</b>

    P. The number of equivalence relations on containing the pair .

    Q. The number of reflexive and transitive relations on containing and .

    R. The number of partial orders on where and are incomparable.

    S. The number of equivalence relations on with exactly equivalence classes.

    <b>List II</b>

    Select the correct matching from the options below:

    Question 3
    Level 3: Exam Standard

    Consider three scenarios involving the distribution of 6 identical apples into 3 distinct boxes:

    Scenario A: Each box must contain an even number of apples (including 0).

    Scenario B: Each box must contain a prime number of apples.

    Scenario C: The number of apples in each box must be distinct.

    Let be the number of valid distributions for Scenarios A, B, and C respectively.

    Which of the following correctly ranks these quantities?

    Question 4
    Level 3: Exam Standard

    Consider the generating function .

    Assertion (A): The coefficient of in is for , and .

    Reason (R): Since , multiplying by gives for .

    Question 5
    Level 3: Exam Standard

    Let be a binary operation on defined by . For , find the maximum possible value of subject to the condition that .

    Question 6
    Level 3: Exam Standard
    Let be a simple connected graph on vertices whose Laplacian matrix has rank . Suppose has exactly edges. Consider the following statements:
    (S1) Every cofactor of equals the number of spanning trees of .
    (S2) If is a cycle , the number of spanning trees is .
    (S3) The sum of entries in any row of is zero.
    Which combination is TRUE?
    Question 7
    Level 3: Exam Standard

    Given below are two statements, one labeled as Assertion (A) and the other as Reason (R).

    <b>Assertion (A):</b> The number of simple cycles of length 4 in a simple undirected graph is exactly , where is the adjacency matrix of .

    <b>Reason (R):</b> The trace of equals the total number of closed walks of length 4 in , and each simple cycle of length 4 generates exactly 8 such closed walks.

    Free preview ends here

    Login to view the complete short notes

    Creating an account is free. You get the rest of this chapter, step-by-step solutions, and a study plan built around the topics you are actually weak at.

    Why MastersUp

    Personalised first. High quality throughout.

    Most platforms hand everyone the same content. Here the content moves with your performance, topic by topic.

    Built around you, not around a syllabus PDF

    Every answer you give moves your topic-level intelligence rate. The next question, the next revision card and tomorrow's plan all change with it.

    Revision that hits your weak spots

    We only revise topics you have actually attempted and are still below the safe bar on — never the same chapter on repeat.

    Questions calibrated to the real exam

    Each question carries a measured toughness. You are served a rung above your current level, so practice keeps stretching you.

    Notes written for recall, not for volume

    Full lesson cards for first study, curated short-note cards for the last mile — with derivations, traps and exam patterns marked.

    One place for everything

    Notes, chapter practice, previous-year questions, test series and full-length papers — all feeding one picture of your preparation.

    Honest progress

    No vanity streaks. Progress here means chapters mastered and accuracy that held up on harder questions.

    Unlock the whole course

    Full notes and short notes, the complete question bank with worked solutions, mock tests, full-length papers, and an adaptive plan that rebuilds itself as you improve.

    Discrete Mathematics Short Notes for GATE CS

    GATE CS Discrete Mathematics: 7 chapters, 47 previous year questions (45% of Engineering Mathematics), 757 practice questions and one solved question from each chapter.

    About Discrete Mathematics Short Notes

    Quick revision sheets for Discrete Mathematics in GATE CS. Every chapter is condensed into key formulas, shortcuts and common traps so you can revise 7 chapters fast before the exam.

    Discrete Mathematics Weightage in GATE CS

    Discrete Mathematics accounts for 47 of 105 Engineering Mathematics previous year questions in our bank (45%), about 4.7 per paper across 10 papers.

    Discrete Mathematics Chapter Matrix

    ChapterTopicsPYQsShare of unit PYQsPractice questions
    Logic and Proof TechniquesPropositional Translation and Implication, Tautologies, Contradictions and Logical Equivalence, Predicate Logic and Quantifier Translation, Quantified Reasoning and Mathematical Induction715%109
    Sets, Relations, Functions and Order StructuresFunction Properties, Composition and Cardinality, Equivalence Relations and Quotient Mappings, Relation Properties and Equivalence Conditions, Partial Orders, Linear Extensions and Lattices817%133
    Combinatorics and CountingStars and Bars and Integer Partitions, String Counting and Complementary Counting, Permutations, Assignments and Order Constraints, Subset and Binary Matrix Counting715%120
    Recurrences and Generating FunctionsGenerating Functions for Sequences, Linear Recurrences and Characteristic Roots, Binary and Divide-and-Conquer Recurrences36%48
    Algebraic Structures and GroupsBinary Operations and Algebraic Laws, Monoids of Functions under Pointwise Operations, Groups from Set Operations and Direct Products, Group Properties, Cyclicity and Subgroups613%94
    Graph Fundamentals, Trees and ConnectivitySpanning Tree Enumeration and Comparison, Weighted Spanning Trees and Edge Parity, Connectivity, Edge Bounds and Planarity, Matchings, Distances and Graph Powers817%127
    Graph Coloring, Covers, Matrices and Special GraphsGraph Coloring and Bipartite Graphs, Adjacency Matrices and Walk or Cycle Counting, Minimum Vertex Covers and Degree Constraints, Petersen Graph, Hamiltonicity and Isomorphism817%126

    More from Engineering Mathematics

    One Solved Question from Each Discrete Mathematics Chapter

    Question 1 · Logic and Proof Techniques MCQ

    Consider the following logical rules for a server cluster:

    1. The cluster is healthy () if the CPU usage () is below 80% and the network is stable ().
    2. The cluster triggers an alarm () unless it is healthy () and the power is redundant ().
    3. The power is redundant () only if the network is not stable ().

    It is observed that the cluster is healthy ( is True), no alarm is triggered ( is False), and the CPU usage is below 80% ( is True).

    Which one of the following is the CORRECT truth value of the network being stable ()?

    1. A.

      False

    2. B.

      True

    3. C.

      Cannot be determined from the given information

    4. D.

      The given conditions are contradictory

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: This is a multi-step propositional translation question. The trap lies in correctly translating the keywords "if", "unless", and "only if" into their precise logical implications without reversing the arrows.

    Step 1: Translate Rule 1. " if ( and )" means the condition () is sufficient for . Translation: .

    Step 2: Translate Rule 2. " unless ( and )" means if ( and ) is false, then happens. Translation: .

    Step 3: Translate Rule 3. " only if " means is sufficient for , or is necessary for . Translation: .

    Step 4: Substitute the given truth values: , , .

    Step 5: Evaluate Rule 2. Since is False, the antecedent must be False (to avoid a True False scenario). Therefore, must be True. Since is True, must be True.

    Step 6: Evaluate Rule 3. Since is True, and , the consequent must be True. Therefore, must be False.

    Step 7: Verify Rule 1. becomes , which is . This is a valid implication (vacuously true).

    Answer: The truth value of is False. Option A.

    Question 2 · Sets, Relations, Functions and Order Structures MCQ

    Match the items in List I with the correct number of relations/structures in List II.

    <b>List I</b>

    P. The number of equivalence relations on containing the pair .

    Q. The number of reflexive and transitive relations on containing and .

    R. The number of partial orders on where and are incomparable.

    S. The number of equivalence relations on with exactly equivalence classes.

    <b>List II</b>

    Select the correct matching from the options below:

    1. A.

      P-1, Q-2, R-3, S-4

    2. B.

      P-4, Q-2, R-3, S-1

    3. C.

      P-4, Q-3, R-2, S-1

    4. D.

      P-1, Q-3, R-2, S-4

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: This is a structural bounding question. We must count relations by translating the conditions into constraints on partitions (for equivalence relations) or preorders/partial orders.

    Step 1: Evaluate P. An equivalence relation on containing means and must be in the same equivalence class. We can treat as a single block. The problem reduces to finding the number of partitions of a 3-element set: . The Bell number . So, P = 5.

    Step 2: Evaluate Q. A reflexive and transitive relation containing and means and are in the same strongly connected component. This is equivalent to a preorder on the set where and are identified as a single element. The quotient set is , which has 2 elements. The number of preorders on a 2-element set is equal to the number of partial orders on a 2-element set, which is 3 (incomparable, , ). Wait, a preorder can also have . So there are 4 preorders: incomparable, , , and . Thus, Q = 4.

    Step 3: Evaluate R. We need the number of partial orders (posets) on where and are incomparable. The total number of posets on 3 elements is 19. The number of posets where and are comparable is 12 (6 chains + 6 other structures). Alternatively, we can directly list the Hasse diagrams where 1 and 2 are incomparable:

    • Antichain (1)
    • 3 above 1, 2 isolated (1)
    • 3 below 1, 2 isolated (1)
    • 3 above 2, 1 isolated (1)
    • 3 below 2, 1 isolated (1)
    • 3 above both 1 and 2 (V-shape) (1)
    • 3 below both 1 and 2 (inverted V) (1)

    Total = 7. So, R = 7.

    Step 4: Evaluate S. An equivalence relation on with exactly 2 classes corresponds to partitions of 5 into 2 parts. The possible sizes are and .

    • Number of partitions: .
    • Number of partitions: .

    Total = . So, S = 15.

    Step 5: Match the values.

    P = 5 4

    Q = 4 3

    R = 7 2

    S = 15 1

    The correct matching is P-4, Q-3, R-2, S-1.

    Answer: P-4, Q-3, R-2, S-1.

    Question 3 · Combinatorics and Counting MCQ

    Consider three scenarios involving the distribution of 6 identical apples into 3 distinct boxes:

    Scenario A: Each box must contain an even number of apples (including 0).

    Scenario B: Each box must contain a prime number of apples.

    Scenario C: The number of apples in each box must be distinct.

    Let be the number of valid distributions for Scenarios A, B, and C respectively.

    Which of the following correctly ranks these quantities?

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    D

    Step-by-Step Solution

    Key idea: Translate each English constraint into a precise algebraic or combinatorial condition, then evaluate each scenario independently before ranking.

    Step 1: Evaluate Scenario A. We need with . Let . The equation becomes with . By Stars and Bars, .

    Step 2: Evaluate Scenario B. We need with . The only combination of three primes that sums to 6 is . Since the boxes are distinct but all get the same amount, there is only way.

    Step 3: Evaluate Scenario C. We need with all distinct. The possible sets of values are , , and . Since the boxes are distinct, each set can be assigned to the 3 boxes in ways. Thus, .

    Step 4: Rank the results. We have , , and . Therefore, .

    Answer: D

    Question 4 · Recurrences and Generating Functions MCQ

    Consider the generating function .

    Assertion (A): The coefficient of in is for , and .

    Reason (R): Since , multiplying by gives for .

    1. A.

      Both (A) and (R) are true, and (R) is the correct explanation of (A).

    2. B.

      Both (A) and (R) are true, but (R) is NOT the correct explanation of (A).

    3. C.

      (A) is true but (R) is false.

    4. D.

      (A) is false but (R) is true.

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: This is an assertion-reason question about coefficient extraction with index shifting. You need to verify both the assertion and the reason independently.

    Step 1: Verify the assertion (A).

    We know .

    Multiplying by : .

    Let , so . Then .

    So for .

    And since the sum starts at .

    Thus, assertion (A) is TRUE.

    Step 2: Verify the reason (R).

    The reason states that multiplying by gives .

    But from Step 1, the correct formula is , not .

    The error is in not adjusting the binomial coefficient index after the shift.

    Thus, reason (R) is FALSE.

    Answer: (C) (A) is true but (R) is false.

    Question 5 · Algebraic Structures and Groups MCQ

    Let be a binary operation on defined by . For , find the maximum possible value of subject to the condition that .

    1. A.

      7

    2. B.

      9

    3. C.

      -3

    4. D.

      5

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: This is an optimization problem disguised as a custom operator. The algebraic structure of can be factored as . This observation transforms a complex search into a simple product maximization.

    Step 1: Simplify the inner operation.

    .

    Step 2: Simplify the outer operation. Let . We want to maximize .

    .

    To maximize , we must MINIMIZE .

    Step 3: Apply the condition. We are given .

    .

    Step 4: Find the minimum . Since , minimizing means MAXIMIZING the product subject to .

    Step 5: Evaluate possible values for .

    The terms and belong to the set .

    We want the maximum product of two numbers from this set that is .

    • (Too large)
    • (Too large)
    • (Too large)
    • (Valid!)

    The maximum valid product is .

    Step 6: Calculate the final answer.

    Min .

    Max .

    (This is achieved when ).

    Answer: 7

    Question 6 · Graph Fundamentals, Trees and Connectivity MSQ
    Let be a simple connected graph on vertices whose Laplacian matrix has rank . Suppose has exactly edges. Consider the following statements:
    (S1) Every cofactor of equals the number of spanning trees of .
    (S2) If is a cycle , the number of spanning trees is .
    (S3) The sum of entries in any row of is zero.
    Which combination is TRUE?
    1. A.

      (S1) only

    2. B.

      (S1) and (S3)

    3. C.

      (S2) and (S3)

    4. D.

      (S1), (S2) and (S3)

    Correct Answer:

    ["B","C","D"]

    Step-by-Step Solution

    Key idea: this tests three independent Laplacian facts; verify each against the definition rather than trusting memory.

    Step 1: (S1) is the Matrix Tree Theorem — every cofactor of equals . TRUE.

    Step 2: (S3): row of has on the diagonal and for each neighbour; sum . TRUE.

    Step 3: (S2): deleting one edge from the cycle leaves a path spanning all vertices; there are edges to delete, so . TRUE.

    Step 4: Since S1, S2, S3 are all true, the option listing all three is correct; the pairwise options are also logically satisfied subsets but in MSQ we mark every option whose stated combination is entirely true. Option B (S1&S3) true, C (S2&S3) true, D (all) true. Option A ("S1 only") is FALSE because S2,S3 also hold.

    Answer: B, C, D

    Question 7 · Graph Coloring, Covers, Matrices and Special Graphs MCQ

    Given below are two statements, one labeled as Assertion (A) and the other as Reason (R).

    <b>Assertion (A):</b> The number of simple cycles of length 4 in a simple undirected graph is exactly , where is the adjacency matrix of .

    <b>Reason (R):</b> The trace of equals the total number of closed walks of length 4 in , and each simple cycle of length 4 generates exactly 8 such closed walks.

    1. A.

      Both (A) and (R) are true and (R) is the correct explanation of (A).

    2. B.

      Both (A) and (R) are true but (R) is NOT the correct explanation of (A).

    3. C.

      (A) is true but (R) is false.

    4. D.

      (A) is false but (R) is true.

    Correct Answer:

    D

    Step-by-Step Solution

    Key idea: This is a language-to-math translation question testing the distinction between walks and simple cycles for .

    Step 1: Evaluate Reason (R). The trace of counts all closed walks of length . For , a simple cycle of length 4 (e.g., ) can be traversed starting from any of its 4 vertices and in 2 directions, giving closed walks. Thus, (R) is a true statement.

    Step 2: Evaluate Assertion (A). Does count ONLY simple 4-cycles? No. also counts non-simple closed walks, such as (traversing the same edge back and forth twice) or (a triangle with a tail).

    Step 3: Because includes these non-simple walks, dividing by 8 does not yield the number of simple 4-cycles. The formula only works cleanly for because you cannot form a non-simple closed walk of length 3 in a simple graph without immediately repeating an edge, which is impossible in 3 steps. Thus, (A) is false.

    Step 4: Since (A) is false and (R) is true, the correct option is D.

    Answer: D