Skip to content
Official PYQ · 2024

GATE CS 2024 Set 2 Q24 — Partial Orders and Lattices

Explain with AI
Let P\text{P} be the partial order defined on the set {1,2,3,4}\{1,2,3,4\} as follows
P={(x,x)∣x∈{1,2,3,4}}∪{(1,2),(3,2),(3,4)}P=\{(x, x) \mid x \in\{1,2,3,4\}\} \cup\{(1,2),(3,2),(3,4)\}

The number of total orders on {1,2,3,4}\{1,2,3,4\} that contain P\text{P} is __________.
View worked solution

Answer: 5

A total order containing the partial order PP is a linear extension (or topological sort) of the poset defined by PP.

The non-trivial relations in PP (excluding self-loops) are:

  • 1<21 < 2
  • 3<23 < 2
  • 3<43 < 4

We can find the number of valid topological sorts by considering the possible starting elements. The elements with no incoming relations (in-degree 0) are 11 and 33.

  1. Case 1: The topological sort starts with 11
    The remaining elements are {2,3,4}\{2, 3, 4\} with relations 3<23 < 2 and 3<43 < 4. Since 33 must precede both 22 and 44, the next element must be 33. The remaining elements {2,4}\{2, 4\} have no relations between them and can be ordered in 2!=22! = 2 ways:
    • 1,3,2,41, 3, 2, 4
    • 1,3,4,21, 3, 4, 2
  2. Case 2: The topological sort starts with 33
    The remaining elements are {1,2,4}\{1, 2, 4\} with the relation 1<21 < 2. The elements with in-degree 0 are now 11 and 44:
    • If the next element is 11, the remaining elements {2,4}\{2, 4\} have no relations and can be ordered in 22 ways:
      (3,1,2,4)(3, 1, 2, 4) and (3,1,4,2)(3, 1, 4, 2).
    • If the next element is 44, the remaining elements {1,2}\{1, 2\} must be ordered as 1,21, 2 due to the relation 1<21 < 2:
      (3,4,1,2)(3, 4, 1, 2).

Summing all the cases, the total number of valid total orders is 2+2+1=52 + 2 + 1 = 5.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Partial Orders and Lattices questions