GATE CS 2024 Set 2 — Question 34

NAT+1 / -0MediumPartial Orders & LatticesSets & CombinatoricsEngineering Mathematics

Engineering Mathematics → Sets & Combinatorics → Partial Orders & Lattices

Last updated

Question

Let PP be the partial order defined on the set {1,2,3,4}\{1,2,3,4\} as followsP={(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 PP is __________

Correct answer

5 to 5

Solution

A total order (or linear extension) containing PP must satisfy all the relations in PP. The given relations (excluding reflexivity) are:
1.1<21 < 2
2.3<23 < 2
3.3<43 < 4
We need to find the number of permutations of {1,2,3,4}\{1, 2, 3, 4\} that satisfy these conditions.
Let's analyze the constraints:
  • 33 must precede both 22 and 44. Thus, 33 must be placed before 22 and 44 in the sequence.
  • 11 must precede 22.
Let's consider the possible positions for the element 33:
Since 33 must be before 22 and 44, 33 can be at the 1st or 2nd position. It cannot be at the 3rd or 4th position because it needs at least two elements after it (22 and 44).
Case 1: 33 is at the 1st position.
Sequence: 3,_,_,_3, \_, \_, \_
Remaining elements to place: {1,2,4}\{1, 2, 4\}.
Constraint remaining: 1<21 < 2.
We need to arrange {1,2,4}\{1, 2, 4\} such that 11 appears before 22. The total permutations of 3 elements is 3!=63! = 6. In exactly half of them, 11 appears before 22. So, 6/2=36/2 = 3 valid permutations.
Alternatively, listing them:
  • 1,2,41, 2, 4 \rightarrow Total order: 3,1,2,43, 1, 2, 4
  • 1,4,21, 4, 2 \rightarrow Total order: 3,1,4,23, 1, 4, 2
  • 4,1,24, 1, 2 \rightarrow Total order: 3,4,1,23, 4, 1, 2

(Note: 2,1,42, 1, 4; 2,4,12, 4, 1; 4,2,14, 2, 1 are invalid because 22 precedes 11).
So, there are 3 valid orders starting with 33.
Case 2: 33 is at the 2nd position.
Sequence: _,3,_,_\_, 3, \_, \_
For 33 to be second, the first element must be something that doesn't require 33 to be before it. The only element that doesn't require 33 before it is 11 (since 22 and 44 require 33 before them). So, the first element must be 11.
Sequence: 1,3,_,_1, 3, \_, \_
Remaining elements to place: {2,4}\{2, 4\}.
Constraints remaining: None between 22 and 44. The constraints 1<21 < 2, 3<23 < 2, 3<43 < 4 are all satisfied by the positions relative to 11 and 33.
Possible arrangements for {2,4}\{2, 4\}:
  • 2,42, 4 \rightarrow Total order: 1,3,2,41, 3, 2, 4
  • 4,24, 2 \rightarrow Total order: 1,3,4,21, 3, 4, 2

So, there are 2 valid orders starting with 11.
Total Number of Total Orders:
33 (from Case 1) + 22 (from Case 2) = 55.
The 5 valid total orders are:
1.3,1,2,43, 1, 2, 4
2.3,1,4,23, 1, 4, 2
3.3,4,1,23, 4, 1, 2
4.1,3,2,41, 3, 2, 4
5.1,3,4,21, 3, 4, 2

More questions on Sets & Combinatorics

Practice GATE CS PYQs with adaptive difficulty

Timed practice, skill tracking, and AI explanations — free to start.

Start practicing free