GATE / CS ARCHIVE

SUBJECT COLLECTION

Discrete Mathematics · Partial Orders & Lattices

20 questions, newest first

GATE CSE has asked 20 questions on Partial Orders & Lattices (Discrete Mathematics) from 1991 to 2025, in 18 of the 46 papers; the most recent is in GATE CSE 2025 Set 2. In the last five years it carried 0.4 marks per 100-mark paper on average, against 0.4 since 2003. Since 2014 the questions have been 2 NAT, 2 MCQ and 1 MSQ. 1 group of questions here are solved the same way; “One per method” keeps the newest of each.

Browse topics
2 marks · MSQ
Report issue

Partial Orders & Lattices

Question 42, GATE 2025: Let F be all functions {1,…,n}→{0,1}, for positive n. Define f≼g exactly when f(x)≤g(x) for every x, using 0≤1. Select true statements.
Options: A. ≼ is symmetric; B. (F,≼) is a partial order; C. (F,≼) is a lattice; D. ≼ is an equivalence relation.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: B, C

Verify the partial-order axioms coordinate by coordinate. Reflexivity holds because f(x)≤f(x). If f≼g and g≼f, then both inequalities force f(x)=g(x) at each x, so f=g; this is antisymmetry. If f≼g and g≼h, transitivity of ≤ gives f≼h. Thus B is true.

For any two functions define m(x)=min(f(x),g(x)) and j(x)=max(f(x),g(x)). Both are still {0,1}-valued functions. The function m is below both f and g; any other common lower bound is below m at every coordinate. Hence m is their greatest lower bound. Similarly, j is their least upper bound. Every pair therefore has a meet and join, establishing the lattice claim C. This is the same ordering as subset inclusion under the identification f↔{x:f(x)=1}.

A is false: the all-zero function is below the all-one function, but the reverse comparison fails for positive n. An equivalence relation must be symmetric, so D is false too. Select B,C. The positive-domain convention matters: if n=0, only the empty function exists and the relation also becomes symmetric.

Original paper, page 31 · Answer key

1 mark · NAT
Report issue

Count linear extensions of a partial order

Partial Orders & Lattices

Question 34, GATE 2024: On {1,2,3,4}, a partial order contains every reflexive pair and (1,2),(3,2),(3,4). How many total orders extend it?
Tap to enlarge
Answer & solution

Official answer: 5

Approach: Choose only minimal elements first and branch on those choices.

1. Derivation. The restrictions are 1 before 2, 3 before 2, and 3 before 4. If1 is first, 3 must be second and 2, 4 may be ordered either way, giving 1324 and 1342. If3 is first, the remaining order only requires 1 before 2, giving 3124, 3142, 3412. These exhaust the choices, so there are 5 linear extensions.

2. Explanation and checks. Initially 1 and 3 are eligible: 2 requires both to precede it, while 4 requires 3. In the branch starting with 1, only 3 is eligible next, leaving two orders of 2 and 4. In the branch starting with 3, the remaining three elements need only respect 1 before 2, which holds in half of their 3!=6 permutations. The reflexive pairs impose no extra restriction on the sequence of distinct elements.

Original paper, page 23 · Answer key

1 mark · NAT
Report issue

Partial Orders & Lattices

Question 21, GATE 2017: Let X={a,b,c,d,e}. The partial order includes reflexive pairs and (a,b),(a,c),(a,d),(a,e),(b,c),(b,e),(c,e),(d,e). Its Hasse diagram has two upward chains a<b<c<e and a<d<e. What minimum number of ordered pairs must be added to make it a lattice?
Tap to enlarge
Answer & solution

Official answer: -0.01

Our answer: 0

1. A lattice requires a unique greatest lower bound (meet) and least upper bound (join) for every pair of elements. A pair of comparable elements already has these: the smaller is their meet and the larger their join.

2. In this diagram the only incomparable unordered pairs are {b,d} and {c,d}. For either pair, the only common lower bound is a and the only common upper bound is e. Hence their meet is a and their join is e.

3. All pairs therefore already have the required bounds, so no ordered pair needs adding: answer 0. This is the pentagon lattice, which need not be distributive; being nondistributive does not prevent it from being a lattice.

Original paper, page 9 · Answer key

2 marks · MCQ
Report issue

Partial Orders & Lattices

Question 42, GATE 2015: L={p,q,r,s,t} has bottom p, top t, and three mutually incomparable atoms q,r,s, each covering p and covered by t. Choose (x,y,z) uniformly from L^3. For Pr[x∨(y∧z)=(x∨y)∧(x∨z)], choose A 0; B 1; C 0<Pr≤1/5; D 1/5<Pr<1.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

There are 5³=125 ordered triples, with repeated elements allowed. If x,y,z are three distinct atoms, y∧z=p and x∨p=x, while x∨y=x∨z=t, so the right side is t: distributivity fails. There are 3!=6 such triples. If an entry is p or t, or atom entries repeat, absorption and bound identities make the equality hold. Hence 119 triples satisfy it, giving 119/125=0.952 and D. A lattice can be nondistributive while most sampled triples still satisfy this equation.

Solution: The diagram is the five-element diamond lattice M3. Distributivity fails exactly for triples whose first entry is one atom and whose other two entries are the other two distinct atoms: six ordered triples. Other triples satisfy it. Thus the probability is 119/125=0.952, which lies strictly between 1/5 and 1, D.

Original paper, page 15 · Answer key

2 marks · MCQ
Report issue

Partial Orders & Lattices

Question 50, GATE 2014: Let S={1,2,…,2014}. For distinct subsets U,V define U<V when the smallest element of their symmetric difference lies in U. Statements: S1 some subset is larger than every other subset; S2 some subset is smaller than every other subset. Which is correct? A both; B only S1; C only S2; D neither.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

1. Set up the reasoning. The symmetric difference consists of elements belonging to exactly one of the sets. Compare an arbitrary nonempty set with the empty set, then compare the full set with an arbitrary proper subset.

2. Derive the result. For every nonempty U, the minimum element of U symmetric-difference empty lies in U, so U<empty: the empty set is greatest. For every proper subset V of S, the minimum element of S symmetric-difference V lies in S, so S<V: the full set is least. Both extrema therefore exist, A. This ordering reverses the usual lexicographic indicator convention with 0<1.

3. Check the interpretation. The smallest differing element belongs to the set on the left in the definition, so this ordering ranks presence before absence. That direction makes the full set least and the empty set greatest, the reverse of a common indicator-vector lexicographic convention.

Original paper, page 42 · Answer key

2 marks · MCQ
Report issue

Partition-refinement partial order

Partial Orders & Lattices

Question 26, GATE 2007: Let S={a,b,c,d}. The partitions are π1={{a,b,c,d}}, π2={{a,b},{c,d}}, π3={{a,b,c},{d}}, π4={{a},{b},{c},{d}}. Define πi≺πj when πi refines πj. Which Hasse diagram represents these four partitions? Options are described by bottom-to-top cover relations.
Options:
(A) Chain π4<π3<π2<π1
(B) Diamond with bottom π3, middle π2 and π4, top π1
(C) Diamond with bottom π4, middle π2 and π3, top π1
(D) π4 below each of π1,π2,π3, which are pairwise incomparable
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

1. Approach. A refinement splits blocks but never joins elements from different old blocks. Check whether every block of one partition is contained in a block of the other.

2. Derivation and interpretation. The all-singleton partition π4 refines both π2={ab,cd} and π3={abc,d}; both refine the one-block π1={abcd}. π2 and π3 are incomparable: cd crosses π3’s blocks, while abc crosses π2’s blocks. The Hasse diagram is the diamond with π4 at bottom and π1 at top, C.

Original paper, page 6

1 mark · MCQ
Report issue

Five-element nondistributive lattice

Partial Orders & Lattices

Question 9, GATE 2005: Hasse diagram has top a, bottom e, and three mutually incomparable middle elements b, c, d. Cover edges e<b, e<c, e<d and b<a, c<a, d<a. Classify: A not a lattice; B lattice but nondistributive; C distributive but not Boolean; D Boolean algebra.
Question 9, GATE 2005: Hasse diagram has top a, bottom e, and three mutually incomparable middle elements b, c, d. Cover edges e<b, e<c, e<d and b<a, c<a, d<a. Classify: A not a lattice; B lattice but nondistributive; C distributive but not Boolean; D Boolean algebra.
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

The diagram has bottom e, top a, and three incomparable middle elements b, c, d. Every pair has a meet and join, so it is a lattice. But b∧(c∨d)=b∧a=b, whereas(b∧c)∨(b∧d)=e∨e=e. Thus it is not distributive, B.

Every pair of distinct middle elements has meet e and join a, so joins/meets exist and this is a lattice. Test distributivity using b, c, d: b∧(c∨d)=b∧a=b, but (b∧c)∨(b∧d)=e∨e=e. Since b≠e, distributivity fails. Thus B; the existence of a top and bottom alone does not make a lattice distributive or Boolean.

Original paper, page 1

2 marks · MCQ
Report issue

Minimal offered augmentation of a subset lattice

Partial Orders & Lattices

Question 73, GATE 2004: Let S={{1,2},{1,2,3},{1,3,5},{1,2,4},{1,2,3,4,5}}, ordered by containment. Which listed minimal collection of sets must be adjoined to make a complete lattice? “Necessary” is interpreted as the minimal sufficient offered augmentation, not a claim excluding every other possible bottom element.
Options:
(A) {1}
(B) {1} and {2,3}
(C) {1} and {1,3}
(D) {1}, {1,3}, {1,2,3,4}, {1,2,3,5}
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

1. Write U={1,2}, V={1,2,3}, W={1,3,5}, X={1,2,4}, and T={1,2,3,4,5}. Adjoin B={1}.

2. Comparable pairs already have their meet and join. The incomparable pairs (U,W), (V,W), and (X,W) have meet B and join T; (V,X) has meet U and join T.

3. Thus every pair has meet/join, and the finite nonempty poset with bottom B and top T is complete. Adding only {1}, option A, is sufficient and is the minimal augmentation among the offered choices.

4. Teaching check: A lattice’s join must be the least upper bound within the displayed poset, not necessarily the ordinary union set if that set is absent. Similarly the meet is the greatest available lower bound. After adding {1}, a finite bounded lattice is complete, including empty-family meet and join.

Original paper, page 10

2 marks · MCQ
Report issue

Upward-closed truth in a partial order

Partial Orders & Lattices

Question 31, GATE 2003: A partially ordered set (S,≤) has two minimal elements a,b and a maximum c. A predicate P has P(a)=true, P(b)=false, and P(x)⇒P(y) whenever x≤y. Which cannot be true? A. P(x)=true for every x≠b; B. P(x)=false for every x distinct from a and c; C. P(x)=false whenever b≤x and x≠c; D. P(x)=false whenever both a≤x and b≤x.
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

1. Because c is a maximum, a≤c and b≤c. Propagating the true predicate upward from a forces P(c). Option D applies to c and denies that same predicate. To demonstrate the other options are possible rather than merely not contradicted, use S={a,b,c} with a,b incomparable and both below c.

2. Since a≤c and P(a) is true, monotonicity forces P(c)=true. The maximum c is above both a and b, so D would force P(c)=false, a contradiction. Thus D cannot hold. The other patterns can hold, for example in the three-element poset with incomparable a,b below c, with P true at a,c and false at b.

Original paper, page 4

Descriptive
Report issue

Draw the two-element power-set lattice

Partial Orders & Lattices

Question 4(b), GATE 2002: Let S={a,b}. Order its power set P(S) by set inclusion. Draw the Hasse diagram of the lattice (P(S),⊆).
Question 4(b), GATE 2002: Let S={a,b}. Order its power set P(S) by set inclusion. Draw the Hasse diagram of the lattice (P(S),⊆).
Tap to enlarge
Shared context

Part (a) concerns S = {(1,2),(2,1)} on A = {1,2,3}. Part (b) separately concerns the power set of {a,b}, ordered by inclusion.

Answer & solution

Answer: Diamond with bottom ∅, middle {a} and {b}, top {a,b} (no official key was published)

1. Enumerate the elements of the power set of S = {a,b}: ∅, {a}, {b}, and {a,b}. The order is set inclusion, not the order of writing the symbols a and b.

2. Determine the cover relations. ∅ is immediately below each singleton, and each singleton is immediately below {a,b}. Neither {a} nor {b} contains the other, so they are incomparable.

3. Draw the Hasse diagram with larger sets above smaller ones:

       {a,b}
       /   \
     {a}   {b}
       \   /
         ∅

4. Check why there are exactly four edges. The covers are ∅ < {a}, ∅ < {b}, {a} < {a,b}, and {b} < {a,b}. A Hasse diagram omits reflexive loops and the transitive relation ∅ < {a,b}, since the latter is already represented by upward paths.

5. Confirm the lattice interpretation: any two subsets have intersection as their greatest lower bound and union as their least upper bound. For example, {a} ∧ {b} = ∅ and {a} ∨ {b} = {a,b}.

Original paper, page 6

2 marks · MSQ
Report issue

Recognizing a lattice

Partial Orders & Lattices

Question 2.3, GATE 1999: R is reflexive,antisymmetric,transitive on L, and every pair has a least upper bound and greatest lower bound. Must L be a poset,Boolean algebra,lattice,or none?
Tap to enlarge
Select all that apply
Answer & solution

Answer: A,C (no official key was published)

The first three axioms are exactly those of a partial order, so L is a poset: A. Existence of a join and meet for every pair upgrades that poset to a lattice: C. Boolean algebra requires additional structure, including boundedness, complements and distributivity; none follows merely from the given pairwise bounds. A three-element chain is a lattice but its middle element has no Boolean complement. Therefore B is not forced, and D is false.

Original paper, page 3

Descriptive
Report issue

Partition refinement Hasse diagram

Partial Orders & Lattices

Question 11(c), GATE 1998: Let Π1={{a,b,c},{d}}, Π2={{a},{b},{c},{d}}, Π3={{a,b,c,d}}, Π4={{a,b},{c,d}}. Draw the poset diagram under refinement.
Question 11(c), GATE 1998: Let Π1={{a,b,c},{d}}, Π2={{a},{b},{c},{d}}, Π3={{a,b,c,d}}, Π4={{a,b},{c,d}}. Draw the poset diagram under refinement.
Tap to enlarge
Answer & solution

Answer: A diamond: Π2 below incomparable Π1,Π4, both below Π3. (no official key was published)

Define Π≤Σ when Π refines Σ: every block of Π is contained in some block of Σ. Under this convention the finest partition is at the bottom and the coarsest at the top.

              Π3
             /  \
           Π1    Π4
             \  /
              Π2

Π2 refines both Π1 and Π4 because each of its singleton blocks lies in a block of either partition. Both Π1 and Π4 refine Π3, whose only block is the whole set. These give the four displayed cover edges in the induced four-element poset.

Π1 and Π4 are incomparable. The Π1 block {a,b,c} is not contained in either {a,b} or {c,d}, so Π1 does not refine Π4. Conversely, the Π4 block {c,d} is not contained in either {a,b,c} or {d}, so Π4 does not refine Π1. A line joining these middle vertices would therefore be wrong.

Π2 also refines Π3, but their comparison is implied transitively by either two-edge path and is omitted from a Hasse diagram. Reflexive comparisons are likewise omitted. This diagram is for the specified set of four partitions, not for the entire partition lattice of a four-element set, which contains additional vertices.

Original paper, page 7

1 mark · MCQ
Report issue

Complements in a seven-element lattice

Partial Orders & Lattices

Question 3.3, GATE 1997: Hasse chains are f<e<b<a, f<g<a, f<d<c<a, with no further covers. How many complements does e have?
Question 3.3, GATE 1997: Hasse chains are f<e<b<a, f<g<a, f<d<c<a, with no further covers. How many complements does e have?
Tap to enlarge
Your answer
Answer & solution

Answer: B: 3 (no official key was published)

The bottom is f and top is a. A complement z must satisfy e∧z=f and e∨z=a. For each of g, d, c, the only common lower bound with e is f and only common upper bound is a; all three qualify. The remaining elements do not: f has join e, a has meet e, e meets itself at e, and b has meet e. Therefore exactly three complements exist, B. Complements need not be unique in a nondistributive lattice.

Original paper, page 2

2 marks · MCQ
Report issue

Linear extensions with fixed endpoints

Partial Orders & Lattices

Question 6.1, GATE 1997: A poset has elements x, a 1, …, an, y with x≤ai≤y and no other comparisons among the ai. How many extending total orders?
Tap to enlarge
Your answer
Answer & solution

Answer: A: n! (no official key was published)

Every extending order must put x before all ai and y after all ai. The middle n elements are mutually incomparable, so they can occur in any permutation. Each permutation gives one valid total order, and every extension is obtained this way. Thus the count is n!, A. This uses exactly the listed order relations and their reflexive/transitive consequences; additional unmentioned comparisons among the ai would reduce the number.

Original paper, page 5

3 marks · Descriptive
Report issue

Order the equivalence classes

Partial Orders & Lattices

Question 14(b), GATE 1997: Let R be a reflexive and transitive relation on a set A. Define E={(a,b):aRb and bRa}. For E-classes C,D, define C≤D when there exist a∈C,b∈D with aRb. Prove that this gives a partial order on A/E.
Question 14(b), GATE 1997: Let R be a reflexive and transitive relation on a set A. Define E={(a,b):aRb and bRa}. For E-classes C,D, define C≤D when there exist a∈C,b∈D with aRb. Prove that this gives a partial order on A/E.
Tap to enlarge
Answer & solution

Answer: The quotient relation is well-defined, reflexive, antisymmetric and transitive. (no official key was published)

First show that the existential definition is independent of representatives. Suppose aRb with a∈C,b∈D. If a′∈C and b′∈D, then a′Ea and bEb′, so a′Ra and bRb′. By transitivity, a′RaRbRb′ gives a′Rb′. Thus one pair of related representatives implies every pair is related; changing representatives cannot change the answer.

Reflexivity: choose a∈C. Since aRa, the defining witness gives C≤C.

Antisymmetry: suppose C≤D and D≤C. Choose any a∈C,b∈D. Representative independence gives aRb from the first relation and bRa from the second. Hence aEb, so a and b have the same E-class and C=D. Antisymmetry is equality of classes, not necessarily equality of their individual representatives.

Transitivity: suppose C≤D and D≤H. Choose a∈C,b∈D,c∈H. Representative independence supplies aRb and bRc; transitivity of R yields aRc. Therefore C≤H.

All partial-order axioms hold. The preliminary representative step is essential when starting from existential witnesses: the witness b from C≤D and the witness b′ from D≤H might be different elements of D. Their E-equivalence supplies bRb′, which connects the two chains. Omitting that link would leave a gap in a direct transitivity proof. No total-order claim follows: two equivalence classes can be incomparable when neither direction of R holds between them.

Original paper, page 8

1 mark · MCQ
Report issue

Cover edges in a divisibility poset

Partial Orders & Lattices

Question 1.2, GATE 1996: Count Hasse-diagram edges for {2,3,6,12,24} ordered by divisibility.
Tap to enlarge
Your answer
Answer & solution

Answer: B: 4 (no official key was published)

A Hasse edge joins comparable elements only when no listed element lies strictly between them. The covers are 2<6, 3<6, 6<12 and 12<24. For example, 2<12 is not an edge because 6 is between them; similarly 6<24 is omitted because of 12. The elements 2 and 3 are incomparable. Thus there are four edges. Counting every divisibility relation would count transitive relations that the Hasse diagram deliberately suppresses.

Original paper, page 1

Report issue

All lattices with at most four elements

Partial Orders & Lattices

Question 2.9, GATE 1994: Give Hasse diagrams for every lattice of up to four elements, up to isomorphism.
Tap to enlarge
Answer & solution

Answer: Five nonempty lattices: chains of sizes 1,2,3,4, and the four-element diamond (no official key was published)

A finite nonempty lattice has a least and greatest element. With one or two elements only the corresponding chains are possible. With three elements, the remaining element must lie between bottom and top, again a chain. With four elements, the two interior elements are either comparable, giving a four-element chain, or incomparable, giving a diamond. Exact cover-edge descriptions are: size 1 no edges; size 2 0<1; size 3 0<a<1; size 4 chain 0<a<b<1; diamond edges 0<a,0<b,a<1,b<1. These cover lists specify all five Hasse diagrams without relying on a rough drawing. The empty structure is excluded by the usual nonempty-lattice convention.

Original paper, page 4

2 marks · MSQ
Report issue

Strict less-than and flawed order reasons

Partial Orders & Lattices

Question 8.5, GATE 1993: For < on reals,options call it a partial order because asymmetric/reflexive or antisymmetric/reflexive,or deny it because not asymmetric/not reflexive or not antisymmetric/reflexive. Which complete statement is valid?
Tap to enlarge
Select all that apply
Answer & solution

Answer: E: none of the listed reasons (no official key was published)

Strict less-than is transitive and irreflexive. It is asymmetric: x<y excludes y<x. It is also antisymmetric in the logical sense, vacuously, because the two directions never both hold. Under the usual reflexive definition it is not a non-strict partial order, but the options denying partial order give additional false reasons about asymmetry or antisymmetry. Options asserting reflexivity are false too. Under the strict-partial-order convention, < is a strict order, but again the printed reflexivity reasons fail. Thus none of the complete option statements is correct.

Original paper, page 9

Report issue

Divisor lattice under gcd and lcm

Partial Orders & Lattices

Question 14(b), GATE 1992: On D={1,2,3,4,6,8,12,24}, use the binary operations LCM and GCD. Which structures apply: (i) group, (ii) ring, (iii) field, (iv) lattice?
Tap to enlarge
Select all that apply
Answer & solution

Answer: Only (iv), lattice. (no official key was published)

D is exactly the positive divisors of 24=2³·3. Order D by divisibility, not by the ordinary numerical ≤ relation. Every d is uniquely 2i3j with 0≤i≤3 and 0≤j≤1. GCD takes the coordinatewise minimum of exponent pairs, and LCM takes their coordinatewise maximum. Both outputs are again divisors of 24, proving closure.

For x,y∈D, gcd(x,y) divides both and every common divisor divides it, so it is their greatest lower bound (meet). Likewise lcm(x,y) is their least upper bound (join). Thus every pair has a meet and join: (D,gcd,lcm) is a lattice, option (iv). In fact it is a bounded distributive lattice, with bottom 1 and top 24. For example gcd(8,12)=4 and lcm(8,12)=24.

Neither operation makes this nontrivial set a group. Both are idempotent: x⋆x=x. In a group, cancellation would force every idempotent x to equal the identity, impossible for eight distinct elements. More concretely, LCM has identity 1 but 2 has no inverse giving LCM(2,y)=1; GCD has identity 24 but 2 has no inverse giving GCD(2,y)=24. Consequently these operations cannot provide the additive group required for a ring, in either assignment of addition and multiplication, and cannot form a field. Do not classify it as a group merely because the operations are closed and associative.

Original paper, page 9

2 marks · Other
Report issue

Partitioning a finite partial order by height

Partial Orders & Lattices

Question 1(xiv), GATE 1991: If a finite partial order has longest chain of n elements, into how many antichains can it be partitioned?
Question 1(xiv), GATE 1991: If a finite partial order has longest chain of n elements, into how many antichains can it be partitioned?
Tap to enlarge
Answer & solution

Answer: n antichains (no official key was published)

Assign each element the maximum number of elements in a chain ending there. Each rank lies between 1 and n. If x<y, appending y to a longest chain ending at x shows rank(y)>rank(x). Therefore elements with equal rank are incomparable and form an antichain; the n rank classes give the desired partition. Conversely, a chain of n elements meets any antichain in at most one element, so fewer than n classes cannot suffice. Here chain length counts elements; if it counted edges the numerical parameter would shift by one.

Original paper, page 2