chapter
    Sets, Relations, Functions and Order Structures Short Notes for GATE CS

    Sets, Relations, Functions and Order Structures short notes for GATE CS: 4 study cards covering concepts, formulas, shortcuts and exam traps, plus solved prac

    sets relations functions and order structures short notes

    Function Properties & Cardinality Cheat Sheet

    Cheat Sheet

    Core Definitions

    • Injective:
    • Surjective:
    • Bijective: Injective + Surjective (Inverse exists)

    Counting

    Domain , Codomain

    • Total:
    • Injective:
    • Bijective: (if )

    Composition

    ,

    • inj inj
    • surj surj
    • bij inj, surj

    Function Space

    Quotient Mappings Cheat Sheet

    Quotient Mappings Cheat Sheet

    Core Definitions

    • Equivalence Class:
    • Quotient Set:
    • Partition: Disjoint, non-empty blocks covering (1-to-1 with equivalence relations).

    Well-Definedness

    The Induced Bijection

    • Given surjective and .
    • The map is a bijection from to .

    Final Checklist: Relation Properties

    Final Checklist: Relation Properties

    1. Property Identification

    • Reflexive: All present.
    • Symmetric: .
    • Transitive: .
    • Antisymmetric: .
    • Asymmetric: (Implies Irreflexive).

    2. The Golden Shortcuts

    • Reflexive + Circular = Equivalence Relation.
    • Vacuous Truth: If no pairs satisfy the premise, the property is TRUE.

    3. Counting Formulas (for )

    • Total:
    • Reflexive:
    • Symmetric:
    • Reflexive + Symmetric:
    • Antisymmetric:
    • Asymmetric:

    4. Equivalence Conditions

    • Must be R + S + T.
    • Creates a unique Partition of the set.

    1 more card in this chapter

    Try a question

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

    Question 1
    Level 1: Warm-up

    Let and be functions such that their composition is injective. Which of the following properties MUST hold for the individual functions?

    Question 2
    Level 1: Warm-up

    Let and be functions. If the composition is surjective (onto), which of the following MUST be true?

    Question 3
    Level 1: Warm-up

    If there exists a bijective function between two finite sets and , which of the following must be true?

    Question 4
    Level 1: Warm-up

    Let and be finite sets with and , where . According to the standard counting formulas, what is the number of injective (one-to-one) functions from to ?

    Question 5
    Level 1: Warm-up

    Let be an equivalence relation on a set . A function is defined by the rule for some function . For to be a well-defined function, which of the following conditions must hold for all ?

    Question 6
    Level 1: Warm-up

    Let be an equivalence relation on a set . A function is defined by the rule for some function . For to be a well-defined function, which of the following conditions must hold for all ?

    Question 7
    Level 1: Warm-up

    What is the total number of possible binary relations that can be defined on a set containing exactly 3 elements?

    Question 8
    Level 1: Warm-up

    What is the minimum number of ordered pairs that must be added to the relation on the set to make it an equivalence relation?

    Question 9
    Level 1: Warm-up

    Let be a lattice. Which of the following situations is impossible?

    Question 10
    Level 1: Warm-up

    Let . How many partial orders on contain exactly 4 ordered pairs?

    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.

    Sets, Relations, Functions and Order Structures Short Notes for GATE CS

    Sets, Relations, Functions and Order Structures short notes for GATE CS: 4 study cards covering concepts, formulas, shortcuts and exam traps, plus solved practice questions.

    Function Properties & Cardinality Cheat Sheet

    Cheat Sheet

    Core Definitions

    • Injective:
    • Surjective:
    • Bijective: Injective + Surjective (Inverse exists)

    Counting

    Domain , Codomain

    • Total:
    • Injective:
    • Bijective: (if )

    Composition

    ,

    • inj inj
    • surj surj
    • bij inj, surj

    Function Space

    Quotient Mappings Cheat Sheet

    Quotient Mappings Cheat Sheet

    Core Definitions

    • Equivalence Class:
    • Quotient Set:
    • Partition: Disjoint, non-empty blocks covering (1-to-1 with equivalence relations).

    Well-Definedness

    The Induced Bijection

    • Given surjective and .
    • The map is a bijection from to .

    Final Checklist: Relation Properties

    Final Checklist: Relation Properties

    1. Property Identification

    • Reflexive: All present.
    • Symmetric: .
    • Transitive: .
    • Antisymmetric: .
    • Asymmetric: (Implies Irreflexive).

    2. The Golden Shortcuts

    • Reflexive + Circular = Equivalence Relation.
    • Vacuous Truth: If no pairs satisfy the premise, the property is TRUE.

    3. Counting Formulas (for )

    • Total:
    • Reflexive:
    • Symmetric:
    • Reflexive + Symmetric:
    • Antisymmetric:
    • Asymmetric:

    4. Equivalence Conditions

    • Must be R + S + T.
    • Creates a unique Partition of the set.

    Final Checklist: Posets and Lattices

    Final Checklist: Posets and Lattices

    1. Posets & Hasse Diagrams

    • Partial Order: Reflexive, Antisymmetric, Transitive.
    • Hasse Diagram: Drop self-loops, drop transitive edges, draw upwards.

    2. Extremal Elements & Bounds

    • Greatest: Above everything (Unique). Maximal: Nothing above it (Can be multiple).
    • Supremum: Least upper bound. Infimum: Greatest lower bound.

    3. Linear Extensions

    • Count valid topological sorts. Pick minimal elements step-by-step.

    4. Lattices & Distributivity

    • Lattice: Every pair has a unique Join () and Meet ().
    • Distributive: Fails if it contains (Pentagon) or (Diamond).
    • Boolean Algebra: Bounded + Complemented + Distributive.

    Sets, Relations, Functions and Order Structures: Solved Questions with Step-by-Step Explanations (10 Problems)

    Question 1 · Engineering Mathematics MCQ

    Let and be functions such that their composition is injective. Which of the following properties MUST hold for the individual functions?

    1. A.

      must be injective

    2. B.

      must be injective

    3. C.

      must be surjective

    4. D.

      must be surjective

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: This is a composition properties question, recognizable by the given injectivity of a composite function .

    Step 1: Recall the definition of injectivity for . If , then .

    Step 2: This means . For this to hold, must map distinct to distinct values . Thus, must be injective.

    Step 3: Does need to be injective? No. only needs to be injective on the range of . It can map other elements of to the same values.

    Step 4: Does need to be surjective? No. can leave some elements of unmapped, as long as the elements it does map are distinct.

    Answer: Option B.

    Question 2 · Engineering Mathematics MCQ

    Let and be functions. If the composition is surjective (onto), which of the following MUST be true?

    1. A.

      must be surjective

    2. B.

      must be surjective

    3. C.

      must be injective

    4. D.

      must be injective

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: This is a composition properties question, recognizable by the given surjectivity of a composite function .

    Step 1: Recall the definition of surjectivity for . The range of must equal the codomain .

    Step 2: The outputs of are produced by applying to the outputs of . For to cover all of , the function must be able to map the elements it receives from to all of .

    Step 3: This implies that itself must be surjective. If were not surjective, there would be some element in that cannot reach, meaning could not reach it either.

    Step 4: Does need to be surjective? No. only needs to provide enough elements for to cover . can leave some elements of unmapped.

    Answer: Option B.

    Question 3 · Engineering Mathematics MCQ

    If there exists a bijective function between two finite sets and , which of the following must be true?

    1. A.

    2. B.

    3. C.

    4. D.

      $|A|

      eq |B|$

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: This is a fundamental property of bijective functions between finite sets, recognisable by the keyword "bijective" and finite sets.

    Step 1: Recall the definition of a bijective function. A function is bijective if it is both injective (one-to-one) and surjective (onto).

    Step 2: For finite sets, an injective function requires that the domain is no larger than the codomain, so .

    Step 3: A surjective function requires that the domain is at least as large as the codomain, so .

    Step 4: For a function to be both injective and surjective (bijective), we must simultaneously satisfy and .

    Step 5: The only way both conditions can be true is if .

    Answer:

    Question 4 · Engineering Mathematics MCQ

    Let and be finite sets with and , where . According to the standard counting formulas, what is the number of injective (one-to-one) functions from to ?

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: This is a counting functions question, recognizable by the request for the number of injective functions between two finite sets.

    Step 1: Identify the sizes of the domain and codomain. Let and .

    Step 2: For an injective function, each of the elements in must map to a distinct element in .

    Step 3: The first element in has choices in . The second has choices, the third has , and so on, until the -th element has choices.

    Step 4: Multiply these choices: , which is exactly the permutation formula .

    Answer: Option C.

    Question 5 · Engineering Mathematics MCQ

    Let be an equivalence relation on a set . A function is defined by the rule for some function . For to be a well-defined function, which of the following conditions must hold for all ?

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: This is a well-definedness question on quotient sets, recognizable by the definition of a function on equivalence classes using a representative .

    Step 1: Recall what it means for to be well-defined. The output of must depend only on the equivalence class , not on the specific representative chosen from that class.

    Step 2: Translate this into a mathematical condition. If we pick two different representatives and from the same class, they must produce the same output.

    Step 3: Two representatives and belong to the same class if and only if . Therefore, the condition is: if , then must equal , which means .

    Step 4: Match this with the options. The condition perfectly captures this requirement.

    Answer: Option B.

    Question 6 · Engineering Mathematics MCQ

    Let be an equivalence relation on a set . A function is defined by the rule for some function . For to be a well-defined function, which of the following conditions must hold for all ?

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: This is a well-definedness question on quotient sets, recognizable by the definition of a function on equivalence classes using a representative .

    Step 1: Recall what it means for to be well-defined. The output of must depend only on the equivalence class , not on the specific representative chosen from that class.

    Step 2: Translate this into a mathematical condition. If we pick two different representatives and from the same class, they must produce the same output.

    Step 3: Two representatives and belong to the same class if and only if . Therefore, the condition is: if , then must equal , which means .

    Step 4: Match this with the options. The condition perfectly captures this requirement.

    Answer: Option B.

    Question 7 · Engineering Mathematics MCQ

    What is the total number of possible binary relations that can be defined on a set containing exactly 3 elements?

    1. A.

      9

    2. B.

      27

    3. C.

      512

    4. D.

      1024

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: The total number of binary relations on a set of size is determined by the number of subsets of the Cartesian product .

    Step 1: Identify the size of the set, .

    Step 2: Calculate the total number of possible ordered pairs in , which is .

    Step 3: A binary relation is any subset of these 9 pairs. The number of subsets of a set with 9 elements is .

    Step 4: Calculate .

    Answer: 512.

    Question 8 · Engineering Mathematics MCQ

    What is the minimum number of ordered pairs that must be added to the relation on the set to make it an equivalence relation?

    1. A.

      1

    2. B.

      2

    3. C.

      3

    4. D.

      4

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: An equivalence relation must be reflexive, symmetric, and transitive. We check which of these properties are missing and add the minimum required pairs.

    Step 1: Check Reflexivity. For , we need and . Neither is in . We must add both. (2 pairs added).

    Step 2: Check Symmetry. contains and . It is already symmetric. (0 pairs added).

    Step 3: Check Transitivity. We have and , which requires and to be present. We already added these in Step 1 to satisfy reflexivity. No additional pairs are needed.

    Step 4: Total minimum pairs to add = 2.

    Answer: 2.

    Question 9 · Engineering Mathematics MCQ

    Let be a lattice. Which of the following situations is impossible?

    1. A.

      Two elements have multiple upper bounds

    2. B.

      Two elements have two distinct least upper bounds

    3. C.

      Two elements are incomparable

    4. D.

      An element is both maximal and minimal

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: A lattice requires every pair of elements to have a unique least upper bound (join) and a unique greatest lower bound (meet).

    Step 1: By definition, a lattice is a poset where every pair has a supremum (least upper bound) and an infimum (greatest lower bound).

    Step 2: "Multiple upper bounds" is possible. For example, in the subset lattice, and have upper bounds , etc.

    Step 3: "Two distinct least upper bounds" is impossible. If and are both least upper bounds, then and , so by antisymmetry.

    Step 4: "Incomparable elements" is possible. In the subset lattice, and are incomparable.

    Step 5: "Both maximal and minimal" is possible in a singleton lattice , where is the only element.

    Answer: Two elements have two distinct least upper bounds

    Question 10 · Engineering Mathematics MCQ

    Let . How many partial orders on contain exactly 4 ordered pairs?

    1. A.

      3

    2. B.

      4

    3. C.

      6

    4. D.

      9

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: A partial order must be reflexive, so the diagonal pairs are always included. The remaining pairs must be chosen such that antisymmetry and transitivity hold.

    Step 1: The set has 3 elements. Any partial order on must be reflexive, so it must contain the 3 diagonal pairs: .

    Step 2: We need exactly 4 ordered pairs in total. This means we must choose exactly off-diagonal pair.

    Step 3: There are possible off-diagonal pairs: .

    Step 4: If we add any single off-diagonal pair, say , the relation is .

    Step 5: This relation is trivially antisymmetric (since the reverse pair is not present) and transitive (since there are no chains of length 2).

    Step 6: Thus, every choice of 1 off-diagonal pair yields a valid partial order. There are 6 such choices.

    Answer: 6

    More short notes in this unit