GATE / CS ARCHIVE

GATE CSE 1993 / QUESTION 17

Food-preference counts and missing union information

Discrete Mathematics · Combinatorics & Counting · Full GATE CSE 1993 paper

GATE 1993, Q17 5 marks · Descriptive
Report issue

Combinatorics & Counting

Question 17, GATE 1993: Among 21 persons, 9 eat vegetables, 10 fish, 7 eggs, and 5 all three. How many eat at least two of the three? The statement does not say that every person eats one of them.
Tap to enlarge
Answer & solution

Answer: Underdetermined: at least-two may be any integer 5–10. Requiring all 21 to eat one dish is inconsistent. (no official key was published)

Let x1,x2,x3 count persons eating exactly one, exactly two, and exactly three dishes. Here x3=5. Counting memberships across the three sets yields x1+2x2+3*5=9+10+7=26, hence x1+2x2=11. Let x0 count persons eating none. The group total gives x0+x1+x2+5=21. Eliminating x1 shows x0=5+x2. Thus the requested count x2+x3=x2+5 is not fixed by the given data; equivalently it equals x0. The union size is 16−x2.

The individual set totals do impose bounds. After removing the five triple-eaters, the residual vegetable, fish, and egg memberships are respectively 4,5,2. If a,b,c count exactly vegetable/fish, vegetable/egg, fish/egg, then a+b<=4, a+c<=5, b+c<=2. Their sum x2 is nonnegative and 2x2<=4+5+2=11, so x2<=5. Both extremes are feasible. For x2=0, take only-vegetable=4, only-fish=5, only-eggs=2, all-three=5, none=5: all totals match and at least-two=5. For x2=5, take exactly-VF=3, exactly-VE=1, exactly-FE=1, only-fish=1, all-three=5, none=10, with other single-only counts zero. This again matches all totals, but at least-two=10. Intermediate x2 values are feasible too (for x2<=4 use only VF pairs, and use the preceding construction for 5). Therefore the possible answer is any integer from 5 through 10, not a unique number.

Do not assume all 21 eat at least one. With union=21, inclusion-exclusion gives sum of pairwise intersection sizes=26+5−21=10. But the five triple-eaters alone contribute 15 to that sum, a contradiction. Equivalently x0=0 would require x2=−5. Consequently adding that common implicit assumption does not rescue a unique answer; it makes the data inconsistent. No official correction or key is verified.

Original paper, page 12