There are 5 people at a restaurant and every dish at the restaurant is ordered by exactly 3 people (there is at least one dish). It is also known that every pair of people ordered k common dishes for some number k . Find the minimum number of dishes for which this is possible.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Argh. For some reason I thought you were asking for the minimum value of k rather than the minimum number of dishes. :( Anyway, nice question. My approach was to look at a circle with 5 points on it. Each of the dishes could then be represented as a triangle with 3 of these points as vertices. By drawing all of the 10 possible triangles we have each pair ordering 3 common dishes, so n ≤ 1 0 , k ≤ 3 . Clearly k = 1 , and it's clear "by symmetry" that k = 2 , (need to be more formal here, of course).
It is probably worth noting that this minimal construction is where the 1 0 sets of three elements corresponding to the guests that order each of the 1 0 dishes are precisely the collection of all subsets of size 3 of a set of size 5 ; it is then clear that every two guests belong to precisely 3 such triples (just pick one of the other three guests to make up a triple). This shows that n = 1 0 , k = 3 is fine, without the need to write it all down!
Nice way to present the information using a incidence matrix .
How about D1-123, D2-234, D3-345, D4-451, D5-512? That's only 5 dishes for 5 people, each dish shared by k=3 people.
Log in to reply
Unfortunately, your construction doesn't satisfy the given conditions. Note that it's not "shared by k=3 people", but that it's "every pair of people ordered k common dishes".
What are the common dishes ordered by pairs 1-2 and 1-4?
That would've been a better construction. But in my construction I've hidden a secret message for brilliant members to decode. Can you figure it out?
Consider 5 people are P = ( p 1 , p 2 , p 3 , p 4 , p 5 )
Consider there are n dishes such as D = ( d 1 , d 2 , d 3 , . . . . . . . . . , d n ) .
So,there is a mapping between f : P → D where f ( p i ) = d j for some i , j .Now we will consider the lines by which p i ′ s , d j ′ s are connected.According to the question each dish d i is exactly ordered by 3 people.So from each dish there will be 3 edges which will connected to P side.So,total no of lines/edges 3 n .
Now each pair p i , p j has k dishes in common.Let p i ordered d 1 i.e. f ( p i ) = d 1 and also p j ordered d 1 i.e. f ( p j ) = d 1 .Each common dish will shares 2 edges.So for k common dishes there will be 2 k edges.Total number of pairs
( 2 1 0 ) = 1 0 .Total edges 1 0 × 2 k = 2 0 k .
Consider a pair p i , p j both of them order a common dish d 1 .So an edge is counted from p i to d 1 and another an edge p j to d 1 .Again consider another pair p i , p k both of them orders a common dish d 1 (Total three persons ordered dish d 1 ).So an edge is counted from p i to d 1 and another edge is counted from p k to d 1 ..So, in counting the edge p i to d 1 is counted twice.This will be counted for every edges.So, 3 n edges are counted extra.
2 0 k − 3 n = 3 n ⟹ 6 n = 2 0 k ⟹ 3 n = 1 0 k .
If minimal k = 1 then minimal n = 1 0
Problem Loading...
Note Loading...
Set Loading...
Suppose there are n dishes. Consider a n × 5 table where the rows represent the dishes and the columns represent the people. In cell ( i , j ) , place a 1 if person j ordered dish i and place a zero otherwise. We will double count M , the number of pairs of 1 in the same row. Since each row has 3 ones, M = n ( 2 3 ) . Since every pair of people ordered k common dishes, M = k ( 2 5 ) . So n ( 2 3 ) = k ( 2 5 ) ⟹ 3 n = 1 0 k . Since n , k are both positive integers, the minimal value would be n = 1 0 , k = 3 . A construction is as shown: ⎝ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎛ 1 1 1 1 1 1 0 0 0 0 1 1 1 0 0 0 1 1 1 0 1 0 0 1 1 0 1 1 0 1 0 1 0 0 1 1 0 1 1 1 0 0 1 1 0 1 1 0 1 1 ⎠ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎞