Question
Let be the partial order defined on the set as follows
The number of total orders on that contain is __________
Official answer and solution
- Official answer
- 5
- From
- Official GATE 2024 answer key
Solution
Count the number of topological orderings (linear extensions) of the poset where , , and .
A total order on that contains is a linear extension (topological sort) satisfying the three precedence constraints:
Since only and have in-degree (no predecessors), the first element of the total order must be either or :
- If is first: the remaining elements must satisfy and , so must come before both and . This gives 2 total orders:
- If is first: the remaining elements only need to satisfy (element can be placed in any of the 3 positions among ). This gives 3 total orders:
Total number of total orders containing is .
5
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2024 Computer Science and Information Technology - Set 2 (CS2)
- Question
- 34 of 65
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.