chapter
    Counting, Sets and Elementary Probability Short Notes for GATE CS

    Counting, Sets and Elementary Probability short notes for GATE CS: 3 study cards covering concepts, formulas, shortcuts and exam traps, plus solved practice q

    counting sets and elementary probability short notes

    Quick Reference: Sets and Inclusion-Exclusion

    Core Formulas

    Two Sets:

    Three Sets:

    Complement:

    Neither (for two sets):


    Key Relationships

    Quantity Formula
    Union
    Intersection
    Only A
    Only B
    At least one
    Neither

    Problem-Solving Method

    1. Identify the universal set
    2. Define sets , , clearly
    3. List all given information
    4. Apply inclusion-exclusion formula
    5. Solve for the unknown
    6. Verify the answer makes sense

    Common Traps to Avoid

    • ❌ Confusing "neither" with intersection
    • ❌ Forgetting to subtract when finding union
    • ❌ Assuming "neither" means
    • ❌ Not checking if answer fits within

    Memory Hooks

    • Two sets: "Add both, subtract overlap"
    • Three sets: "Add singles, subtract pairs, add triple"
    • Neither: "Total minus union"
    • Only A: "A minus both"

    Quick Revision: Permutations

    Essential Formulas

    Permutation formula:
    Arrange all n objects:
    Circular arrangement:

    Decision Checklist

    Does order matter? → Yes = Permutation
    Are all objects used? → Yes =
    Must objects be together? → Treat as unit, multiply by internal arrangements
    Circular arrangement? → Use

    Avoid These Mistakes

    • Forgetting to arrange objects within a group
    • Using permutation when order doesn't matter
    • Treating identical objects as distinct
    • Forgetting

    Dice Probability Checklist

    Dice Probability Checklist

    Summary
    1
    A fair six-faced die has equally likely outcomes.
    2
    Two rolls give ordered outcomes.
    3
    Use
    4
    For conditions involving "multiple", "factor", "divisor", or "greater than", fix one roll and count the other roll case by case.
    5
    "Integer multiple" includes the equal case unless the problem says "proper multiple".
    6
    Sums of two dice are not equally likely. Their ordered counts are
    7
    Final answer: count carefully, divide by , and simplify the fraction.

    Try a question

    Answer it here to see how it works. Nothing is recorded until you sign in.

    Question 1
    Level 1: Warm-up

    In a group of 50 people, 30 like tea and 25 like coffee. What is the minimum number of people who like both tea and coffee?

    Question 2
    Level 1: Warm-up

    A fair die is rolled twice. Let be the first roll and be the second. Which of the following is the exact number of outcomes where ?

    Question 3
    Level 1: Warm-up

    Assertion (A): The number of outcomes where the second roll is an integer multiple of the first roll is 14.

    Reason (R): For each first roll , the number of valid second rolls is the count of multiples of in , which sums to .

    Question 4
    Level 1: Warm-up

    Let be the set of integers from 1 to 30. Let be the set of all multiples of 4 in . What is the maximum possible number of elements in , where is a subset of with exactly 5 elements?

    Question 5
    Level 1: Warm-up

    Assertion (A): The number of distinct arrangements of the letters in the word "BOOK" is 24.

    Reason (R): The formula gives the number of ways to arrange 4 distinct objects in a row.

    Question 6
    Level 1: Warm-up

    A fair six-faced die is rolled twice. What is the maximum possible number of ordered outcomes where the first roll is strictly greater than the second roll?

    Question 7
    Level 1: Warm-up

    Let be a set containing 20 elements. If a subset contains 8 elements, what is the cardinality of the complement of with respect to ?

    Question 8
    Level 1: Warm-up

    For any non-negative integers and such that , which of the following inequalities is always true?

    Question 9
    Level 1: Warm-up

    In how many ways can 3 distinct books be arranged on a shelf from a collection of 5 distinct books?

    Question 10
    Level 1: Warm-up

    A fair die is rolled twice. What is the minimum number of outcomes that must be removed from the sample space of 36 to ensure that no outcome contains a 6?

    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.

    Counting, Sets and Elementary Probability Short Notes for GATE CS

    Counting, Sets and Elementary Probability short notes for GATE CS: 3 study cards covering concepts, formulas, shortcuts and exam traps, plus solved practice questions.

    Quick Reference: Sets and Inclusion-Exclusion

    Core Formulas

    Two Sets:

    Three Sets:

    Complement:

    Neither (for two sets):


    Key Relationships

    Quantity Formula
    Union
    Intersection
    Only A
    Only B
    At least one
    Neither

    Problem-Solving Method

    1. Identify the universal set
    2. Define sets , , clearly
    3. List all given information
    4. Apply inclusion-exclusion formula
    5. Solve for the unknown
    6. Verify the answer makes sense

    Common Traps to Avoid

    • ❌ Confusing "neither" with intersection
    • ❌ Forgetting to subtract when finding union
    • ❌ Assuming "neither" means
    • ❌ Not checking if answer fits within

    Memory Hooks

    • Two sets: "Add both, subtract overlap"
    • Three sets: "Add singles, subtract pairs, add triple"
    • Neither: "Total minus union"
    • Only A: "A minus both"

    Quick Revision: Permutations

    Essential Formulas

    Permutation formula:
    Arrange all n objects:
    Circular arrangement:

    Decision Checklist

    Does order matter? → Yes = Permutation
    Are all objects used? → Yes =
    Must objects be together? → Treat as unit, multiply by internal arrangements
    Circular arrangement? → Use

    Avoid These Mistakes

    • Forgetting to arrange objects within a group
    • Using permutation when order doesn't matter
    • Treating identical objects as distinct
    • Forgetting

    Dice Probability Checklist

    Dice Probability Checklist

    Summary
    1
    A fair six-faced die has equally likely outcomes.
    2
    Two rolls give ordered outcomes.
    3
    Use
    4
    For conditions involving "multiple", "factor", "divisor", or "greater than", fix one roll and count the other roll case by case.
    5
    "Integer multiple" includes the equal case unless the problem says "proper multiple".
    6
    Sums of two dice are not equally likely. Their ordered counts are
    7
    Final answer: count carefully, divide by , and simplify the fraction.

    Counting, Sets and Elementary Probability: Solved Questions with Step-by-Step Explanations (10 Problems)

    Question 1 · Quantitative Aptitude MCQ

    In a group of 50 people, 30 like tea and 25 like coffee. What is the minimum number of people who like both tea and coffee?

    1. A.

      5

    2. B.

      15

    3. C.

      25

    4. D.

      55

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: Use the inclusion-exclusion principle and the fact that the union cannot exceed the total population.

    Step 1: Let be the set of tea lovers and be the set of coffee lovers. We have , , and the total population .

    Step 2: The inclusion-exclusion formula is .

    Step 3: Since , we have .

    Step 4: Simplify the inequality: .

    Answer: 5

    Question 2 · Quantitative Aptitude MCQ

    A fair die is rolled twice. Let be the first roll and be the second. Which of the following is the exact number of outcomes where ?

    1. A.

      15

    2. B.

      18

    3. C.

      21

    4. D.

      36

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: Fix the first roll and count the valid second rolls that satisfy .

    Step 1: If , can be 1, 2, 3, 4, 5, 6 (6 outcomes).

    Step 2: If , can be 2, 3, 4, 5, 6 (5 outcomes).

    Step 3: If , can be 3, 4, 5, 6 (4 outcomes).

    Step 4: If , can be 4, 5, 6 (3 outcomes).

    Step 5: If , can be 5, 6 (2 outcomes).

    Step 6: If , can be 6 (1 outcome).

    Step 7: Sum the cases: .

    Answer: 21

    Question 3 · Quantitative Aptitude MCQ

    Assertion (A): The number of outcomes where the second roll is an integer multiple of the first roll is 14.

    Reason (R): For each first roll , the number of valid second rolls is the count of multiples of in , which sums to .

    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:

    A

    Step-by-Step Solution

    Key idea: Verify the assertion by performing the case count described in the reason.

    Step 1: Evaluate Assertion (A). We need to count pairs where is an integer multiple of .

    Step 2: If , (6 outcomes).

    Step 3: If , (3 outcomes).

    Step 4: If , (2 outcomes).

    Step 5: If , can only be itself (1 outcome each).

    Step 6: Sum the cases: . Thus, A is true.

    Step 7: Evaluate Reason (R). The reason correctly describes the exact case-counting method and sum that proves A. Thus, R is true and is the correct explanation.

    Answer: Both A and R are true and R is the correct explanation of A.

    Question 4 · Quantitative Aptitude MCQ

    Let be the set of integers from 1 to 30. Let be the set of all multiples of 4 in . What is the maximum possible number of elements in , where is a subset of with exactly 5 elements?

    1. A.

      5

    2. B.

      7

    3. C.

      12

    4. D.

      4

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: The intersection cannot be larger than the smaller of the two sets and .

    Step 1: Find the elements of . Multiples of 4 from 1 to 30 are .

    Step 2: Count the elements in . There are 7 elements, so .

    Step 3: We are given that has exactly 5 elements, so .

    Step 4: The maximum size of occurs when all elements of are also in . Since and , the maximum intersection is 5.

    Answer: 5

    Question 5 · Quantitative Aptitude MCQ

    Assertion (A): The number of distinct arrangements of the letters in the word "BOOK" is 24.

    Reason (R): The formula gives the number of ways to arrange 4 distinct objects in a row.

    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 false but R is true

    4. D.

      A is false but R is false

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: The permutation formula applies only to distinct objects.

    Step 1: Evaluate Assertion (A). The word "BOOK" has 4 letters, but the letter 'O' repeats twice.

    Step 2: The number of distinct arrangements is . Thus, A is false.

    Step 3: Evaluate Reason (R). The statement " gives the number of ways to arrange 4 distinct objects" is a mathematically true statement.

    Step 4: Since A is false and R is true, the correct option is C.

    Answer: A is false but R is true

    Question 6 · Quantitative Aptitude MCQ

    A fair six-faced die is rolled twice. What is the maximum possible number of ordered outcomes where the first roll is strictly greater than the second roll?

    1. A.

      12

    2. B.

      15

    3. C.

      18

    4. D.

      21

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: Use symmetry and the boundary condition where the two rolls are equal.

    Step 1: The total number of ordered outcomes for two rolls is .

    Step 2: The outcomes can be split into three categories: first > second, first < second, and first = second.

    Step 3: The number of outcomes where first = second is exactly 6: (1,1), (2,2), (3,3), (4,4), (5,5), (6,6).

    Step 4: The remaining outcomes are . By symmetry, exactly half of these have first > second.

    Step 5: Calculate the result: .

    Answer: 15

    Question 7 · Quantitative Aptitude MCQ

    Let be a set containing 20 elements. If a subset contains 8 elements, what is the cardinality of the complement of with respect to ?

    1. A.

      12

    2. B.

      28

    3. C.

      160

    4. D.

      -12

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: The complement of a subset with respect to a universal set contains all elements in that are not in .

    Step 1: Identify the total number of elements in the universal set , which is .

    Step 2: Identify the number of elements in the subset , which is .

    Step 3: Apply the complement formula: .

    Step 4: Calculate the result: .

    Answer: 12

    Question 8 · Quantitative Aptitude MCQ

    For any non-negative integers and such that , which of the following inequalities is always true?

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: The permutation formula is a product of decreasing terms starting from .

    Step 1: Recall the formula: .

    Step 2: Notice that .

    Step 3: Since , the product for contains terms, while contains terms.

    Step 4: If , . If , is missing the terms from down to 1, which are all . Thus, .

    Answer:

    Question 9 · Quantitative Aptitude MCQ

    In how many ways can 3 distinct books be arranged on a shelf from a collection of 5 distinct books?

    1. A.

      10

    2. B.

      120

    3. C.

      60

    4. D.

      125

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: This is a permutation problem because the order of the books on the shelf matters.

    Step 1: Identify the total number of objects and the number of objects to arrange .

    Step 2: Apply the permutation formula .

    Step 3: Substitute the values: .

    Step 4: Calculate the result: .

    Answer: 60

    Question 10 · Quantitative Aptitude MCQ

    A fair die is rolled twice. What is the minimum number of outcomes that must be removed from the sample space of 36 to ensure that no outcome contains a 6?

    1. A.

      10

    2. B.

      12

    3. C.

      25

    4. D.

      11

    Correct Answer:

    D

    Step-by-Step Solution

    Key idea: Use the complement. Find the number of outcomes that do not contain a 6, and subtract from the total.

    Step 1: The total number of outcomes is 36.

    Step 2: An outcome contains no 6 if both rolls are from the set .

    Step 3: The number of such outcomes is .

    Step 4: The number of outcomes to remove is the total minus the outcomes with no 6: .

    Answer: 11

    More short notes in this unit