0 0 votes There is a party of $n$ people. Each attendee has at most $r$ friends in the party. The friend circle of a person includes the person and all her friends. You are required to pick some people for a party game, with the restriction that at most one person is picked from each friend circle. Show that you can pick $\dfrac{n}{r^{2}+1}$ people for the game. Combinatory cmi2019 combinatory pigeonhole-principle + – gatecse 1.3k views answer comment Share Follow Print See all 4 Comments 4 4 Comments reply `JEET commented Sep 17, 2019 reply Follow flag Some intuition, Say we have total friends,n = 10 So, at most one people can have n-1 friends = 9 = r But we are supposed to pick $\bf{at most}$ 1 friend, that means, I can pick 0(no friend) or a 1 friend. So, two cases, i. Minimum case: If I pick 1 friend friend of each out of n = 10 people then $\frac{n}{r^2+1}$ = 10/(1^2+1) = 5. ii. Maximum Case: If 0 friend picked. then $\frac{n}{r^2+1}$ = 10/(0^2 + 1) = 10. This calculation can be generalized with the help of a graph. 0 0 replyShare imShreyas commented Nov 16, 2019 reply Follow flag @`JEET Can you explain to me what have you done? 0 0 replyShare `JEET commented Nov 17, 2019 reply Follow flag I just take the sample input to verify. In case of picking $0$ friends I am getting the answer as Maximum. 0 0 replyShare `JEET commented Nov 17, 2019 reply Follow flag You can try with $0$, $1$ which is asked in the question and you will get your answer. Its so easy. Just substitute the values. 0 0 replyShare Please log in or register to add a comment.
0 0 votes Answer: soujanyareddy13 answered May 4, 2021 soujanyareddy13 comment Share Follow 0 reply Please log in or register to add a comment.