GateAI
Discrete Mathematics

GATE CSE 2024 Set 2 · Q34

NAT1 markMedium

Time

Let PP 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 PP is _________

Your answerNumerical answer

Enter a value to check

Solution

Step-by-step verified solution

Official answer: 5

Discrete Mathematics

A total order containing a partial order PP is also known as a linear extension of PP.

The given partial order PP imposes the following strict precedence relations between distinct elements:

  • 1<21 < 2

  • 3<23 < 2

  • 3<43 < 4

We need to find the number of permutations (x1,x2,x3,x4)(x_1, x_2, x_3, x_4) of the set {1,2,3,4}\{1, 2, 3, 4\} that satisfy these three constraints.

The minimal elements of the poset (elements with no predecessors) are 11 and 33.

Case 1: 11 appears first.

  • The permutation begins with 11: (1,_,_,_)(1, \_, \_, \_).

  • The remaining elements to arrange are {2,3,4}\{2, 3, 4\}.

  • Since 3<23 < 2 and 3<43 < 4, 33 must precede both 22 and 44.

  • Thus, 33 must be in the second position: (1,3,_,_)(1, 3, \_, \_).

  • The remaining elements {2,4}\{2, 4\} have no relative precedence between them, giving 22 valid permutations:

    1. 1<3<2<41 < 3 < 2 < 4

    2. 1<3<4<21 < 3 < 4 < 2

Case 2: 33 appears first.

  • The permutation begins with 33: (3,_,_,_)(3, \_, \_, \_).

  • The remaining elements to arrange are {1,2,4}\{1, 2, 4\}.

  • The only remaining constraint is 1<21 < 2, while 44 can be placed in any position relative to 11 and 22.

  • The number of ways to arrange {1,2,4}\{1, 2, 4\} such that 1<21 < 2 is:

    3!2!=3\frac{3!}{2!} = 3
  • The 33 valid permutations are:

    1. 3<4<1<23 < 4 < 1 < 2

    2. 3<1<4<23 < 1 < 4 < 2

    3. 3<1<2<43 < 1 < 2 < 4

Adding both cases together:

Total number of linear extensions=2+3=5\text{Total number of linear extensions} = 2 + 3 = 5

Thus, the number of total orders on {1,2,3,4}\{1,2,3,4\} that contain PP is 5.

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Discrete Mathematics previous year question is Q34 of the GATE CSE 2024 Set 2 paper. Find more GATE CSE PYQs on Discrete Mathematics in Engineering Mathematics, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Discrete Mathematics PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Discrete Mathematics in GATE CSE

Discrete Mathematics has 50 GATE CSE PYQs across 23 papers from 2011 to 2026. 10 of them are 1-mark NAT questions like this one, and GATE CSE 2024 Set 2 has 3.

How GATE tests Discrete Mathematics

More from GATE CSE 2024 Set 2

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2024 Set 2 · Q34 · NAT

Let P be the partial order defined on the set {1,2,3,4} as follows P = {(x,x) x ∈ {1,2,3,4}} ∪ {(1,2), (3,2), (3,4)} The number of total orders on {1,2,3,4} that contain P is …

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.