Can 90% Of People Do Better Than Average?

Calvin is looking the data of 600 students on Brilliant. He realized that each of them had the same number of Facebook friends amongst these 600 students, and that each of them had a distinct numerical rating.

A student is admired by his peers if his rating is higher than more than half of his friends (out of these 600 students). Out of these 600 students, what is the most number of students that can be admired?

For similar problems, you can read my note on Construction .


The answer is 576.

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.

2 solutions

James Shi
Mar 10, 2014

In these problems, in order to maximize the number of students admired by his peers, you want to maximize the number of students with a higher rating than just over half of their friends.

By intuition, each student would probably need an odd number of friends to maximize the number of admired students (since an even number of friends means the student needs a higher rating than at least 1 more than half of his friends while an odd number of friends means the student needs a higher rating than at least 1/2 more than "half" of his friends). You can probably prove that for an even number of students with a similar method of what I did for an odd number of students.

If each student has 2 x + 1 2x+1 friends ( x x is a non-negative integer), they would need to have a higher rating than at least x + 1 x+1 friends. The number pairs of friends is 600 ( 2 x + 1 ) 2 = 300 ( 2 x + 1 ) \frac{600(2x+1)}{2} = 300(2x+1) . Each pair has one person higher than the other. Dividing the number of pairs by x + 1 x+1 (and maximizing the expression some x x )was my first thought, but it wouldn't work because the person with the highest rating must have a higher rating than 2 x + 1 2x+1 friends, the person with the second highest rating must have a higher rating than at least 2 x 2x friends, etc.

After accounting for this issue, I found out that there were ( 2 x + 1 ) ( x + 2 ) + 1 = x (2x+1) - (x+2) + 1 = x students who must have a higher rating than more than x + 1 x+1 friends. The (minimum) total number of friends who have a lower rating compared to them is ( 2 x + 1 ) + ( x + 2 ) 2 × x = 3 2 x ( x + 1 ) \frac{(2x+1)+(x+2)}{2}\times x = \frac{3}{2}x(x+1) .

We are left with a maximum of ( 300 ( 2 x + 1 ) 3 2 x ( x + 1 ) ) ÷ ( x + 1 ) \lfloor (300(2x+1) - \frac{3}{2}x(x+1)) \div (x+1) \rfloor students with x + 1 x+1 friends that have a lower rating than them. We are now trying to find the maximum value of ( 300 ( 2 x + 1 ) 3 2 x ( x + 1 ) ) ÷ ( x + 1 ) + x \lfloor (300(2x+1) - \frac{3}{2}x(x+1)) \div (x+1) \rfloor + x .

Further simplifying it will give:

300 ( 2 x + 1 ) x + 1 x 2 \lfloor \frac{300(2x+1)}{x+1} - \frac{x}{2} \rfloor

600 ( 2 x + 1 ) x ( x + 1 ) 2 ( x + 1 ) \lfloor \frac{600(2x+1) - x(x+1)}{2(x+1)} \rfloor

x 2 + 1199 x + 600 2 ( x + 1 ) \lfloor \frac{-x^2+1199x+600}{2(x+1)} \rfloor

The maximum of this expression is between 23 23 and 24 24 , and plugging in 23 23 and 24 24 both give 576 \boxed{576} as the answer.

The final step is to show that this exists (following the construction). I'm not sure how to write this but you can show its existence with some pattern/symmetry for most students and that the top x x students are all friends with each other.

There's a fairly easy construction. Let the ratings be 1 , . . . , 600 1, ... , 600 . First, link each pair of students such that both of the following are true:

  • at least one of them has rating greater than y y ( y y is going to be the number of students who are not "admired")

  • their rating are x x or less apart in m o d 600 \mod 600 .

At this point, the top 600 y 600-y students each have 2 x 2x friends, at least x x of whom are lower in ranking. So now we just link each of the top 600 y 600-y students with one (possibly one more ) of the lowest y y students. This will not work for x = y = 24 x=y=24 but it will work for x = 23 , y = 24 x=23, y=24 .

Peter Byers - 7 years, 3 months ago

Log in to reply

P.S. I was just thinking, we can make the last part of that construction more concrete by saying: link each pair of students such that their ratings are congruent mod 24, and one of them is 24 or less.

Peter Byers - 7 years, 3 months ago

The better explanation of the 'intuition' that you should have an odd number of friends, is to just do the calculations for 2 k 2k friends, like I did in my writeup.

Calvin Lin Staff - 7 years, 3 months ago
Calvin Lin Staff
Mar 8, 2014

This is not a complete solution, but meant to get you started thinking.

Once again, there are 2 parts to this question. First, we have to figure out what the maximum is.

Let's try a simple approach. For each friendship, we will give a card of admiration to the student who performed better. Then, we have given out 1 2 × 600 × 2 k = 600 k \frac{1}{2} \times 600 \times 2k = 600k cards of admiration. An admired student must have at least k + 1 k+1 such cards, hence the number of elated students is at most

1 k + 1 ( 600 k ) . \frac{ 1}{k+1} ( 600k).

This initial bound seems extremely useless, as with k = 299 k=299 we get a bound of 598, which doesn't really help. However, if we consider the case of k = 299 k= 299 , i.e. almost everyone is friends with everyone else, then it becomes clear that approximately 50% of people can do better than the global average. Hence, the bound should actually be closer to 300, as opposed to 598.

The reason for this, is that some cards are 'wasted'. For the top student, we know that he has done better than all his friends, and hence has 2 k 2k cards. The next best student also has 2 k 2k or 2 k 1 2k-1 cards. In fact, the n n th student has at least 2 k n 2k- n cards. This over counting allows us to improve the bound, as the number of cards beyond k + 1 k+1 that are wasted. This wastage is equal to ( k 1 ) + ( k 2 ) + + 1 = k ( k 1 ) 2 (k-1) + (k-2) + \ldots + 1 = \frac{k(k-1)}{2} . Hence, the 'true'/better bound, is

1 k + 1 [ 600 k k ( k 1 ) 2 ] = 601.5 ( 600 k + 1 + k + 1 2 ) 601.5 1200 < 567. \frac{1}{k+1} [ 600k - \frac{k(k-1)}{2} ] = 601 . 5 - ( \frac{600}{k+1} + \frac{k+1}{2} ) \leq 601.5 - \sqrt{1200} < 567.

Great, so if we have 2 k 2k friends, then the number of admired students is at most 567.

However, since the answer is 576, it means we have to look at the scenario with 2 k 1 2k-1 friends. I leave it to you to continue the analysis, and show that with 2 k 1 2k-1 friends, we can have at most 576 students. Equality occurs (at best) with 47 friends.

Then, you have to construct an actual example, to verify that 576 can be achieved. Use the equality conditions enforced by the above bounding to help suggest a construction.

What if all of the students have 1 , 000 , 000 , 000 , 000 1,000,000,000,000 friends on facebook, and all of those facebook friends have significantly lower scores than the students?

Then wouldn't every one of those 600 students be admired?

Milly Choochoo - 7 years, 3 months ago

Log in to reply

I've clarified that we're only interested in this sample of 600 students, and not the rest (who do not have a numerical rating).

Calvin Lin Staff - 7 years, 3 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...