chapter

    Discrete Mathematics Short Notes for Gate Cs

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

    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 $1$ and $2$ are incomparable.

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

    <b>List II</b>

    1. $15$
    2. $7$
    3. $4$
    4. $5$

    Select the correct matching from the options below:

    Question 3
    Level 3: Exam Standard

    Match the counting problems in List I with their corresponding values in List II.

    List I

    P. Exact number of binary strings of length 6 with at least one '00'

    Q. Naive overcount of ternary strings of length 4 with at least one 'aa' (alphabet )

    R. Exact number of ternary strings of length 4 with at least one 'aa'

    S. Exact number of binary strings of length 4 with no two adjacent identical characters

    List II

    1. 2
    2. 21
    3. 27
    4. 43

    Which of the following matches is/are correct?

    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 cyclic group of order 60. Which of the following statements are TRUE?

    (A) has exactly 16 generators

    (B) has exactly 4 elements of order 5

    (C) has exactly 8 subgroups

    (D) has exactly 2 elements of order 30

    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.

    Explore complete test series, official past papers, and chapter-wise study tools.

    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), 1397 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%208
    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%242
    Combinatorics and CountingStars and Bars and Integer Partitions, String Counting and Complementary Counting, Permutations, Assignments and Order Constraints, Subset and Binary Matrix Counting715%212
    Recurrences and Generating FunctionsGenerating Functions for Sequences, Linear Recurrences and Characteristic Roots, Binary and Divide-and-conquer Recurrences36%101
    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%173
    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%231
    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%230

    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 $1$ and $2$ are incomparable.

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

    <b>List II</b>

    1. $15$
    2. $7$
    3. $4$
    4. $5$

    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 $1$ and $2$ 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 $1$ and $2$ are in the same strongly connected component. This is equivalent to a preorder on the set where $1$ and $2$ 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 $1$ and $2$ are incomparable. The total number of posets on 3 elements is 19. The number of posets where $1$ and $2$ 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 MSQ

    Match the counting problems in List I with their corresponding values in List II.

    List I

    P. Exact number of binary strings of length 6 with at least one '00'

    Q. Naive overcount of ternary strings of length 4 with at least one 'aa' (alphabet )

    R. Exact number of ternary strings of length 4 with at least one 'aa'

    S. Exact number of binary strings of length 4 with no two adjacent identical characters

    List II

    1. 2
    2. 21
    3. 27
    4. 43

    Which of the following matches is/are correct?

    1. A.

      P matches with 4

    2. B.

      Q matches with 3

    3. C.

      R matches with 3

    4. D.

      S matches with 1

    Correct Answer:

    ["A","B","D"]

    Step-by-Step Solution

    Key idea: This is a bounding and matching question that tests complementary counting while explicitly highlighting the overcounting trap in direct counting.

    Step 1: Evaluate P (Binary strings of length 6 with at least one '00').

    Total binary strings of length 6 = .

    Opposite (no '00'): Let be the number of such strings. .

    Exact count = .

    P matches with 4.

    Step 2: Evaluate Q (Naive overcount of ternary strings of length 4 with at least one 'aa').

    Naive direct counting: Place 'aa' in one of 3 positions (1-2, 2-3, 3-4). The remaining 2 positions can be any of 3 characters.

    Naive count = .

    Q matches with 3.

    Step 3: Evaluate R (Exact count of ternary strings of length 4 with at least one 'aa').

    Total ternary strings = .

    Opposite (no 'aa'): Using states or inclusion-exclusion, the exact count of strings with no 'aa' is 60.

    Exact count = .

    R matches with 2. (Option C says R matches with 3, which is false).

    Step 4: Evaluate S (Binary strings of length 4 with no two adjacent identical).

    This means strictly alternating: 0101 or 1010. Total = 2.

    S matches with 1.

    Answer: Options A, B, and D are correct.

    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 MSQ

    Let be a cyclic group of order 60. Which of the following statements are TRUE?

    (A) has exactly 16 generators

    (B) has exactly 4 elements of order 5

    (C) has exactly 8 subgroups

    (D) has exactly 2 elements of order 30

    1. A.

      (A) has exactly 16 generators

    2. B.

      (B) has exactly 4 elements of order 5

    3. C.

      (C) has exactly 8 subgroups

    4. D.

      (D) has exactly 2 elements of order 30

    Correct Answer:

    ["A","B"]

    Step-by-Step Solution

    Key idea: This is a counting problem in cyclic groups. The key formulas are: number of generators = , number of elements of order = (for ), and number of subgroups = number of divisors of .

    Step 1: Check option (A) - Number of generators.

    A cyclic group of order has generators. For :

    Verdict: TRUE

    Step 2: Check option (B) - Elements of order 5.

    In a cyclic group of order , the number of elements of order (where ) is . Since :

    Verdict: TRUE

    Step 3: Check option (C) - Number of subgroups.

    A cyclic group of order has exactly one subgroup for each divisor of . The divisors of 60 are:

    That's 12 divisors, so 12 subgroups, not 8.

    Verdict: FALSE (overcounting trap—student might count only some divisors)

    Step 4: Check option (D) - Elements of order 30.

    Since , the number of elements of order 30 is:

    So there are 8 elements of order 30, not 2.

    Verdict: FALSE

    Answer: A, B

    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