Loading [MathJax]/jax/output/HTML-CSS/jax.js

Sunday, July 31, 2016

Puzzles: Languages and locks

I recently heard a fun puzzle. Puzzle: How many languages are needed so that we can have that for any two people in a group of 70 each one knows a language that the other does not.






Solution: Basically we need to assign to each person a unique subset of languages. If there are K languages number of such such subsets will be maximum if each person knows K/2 languages. So, we will need the number of languages K to be such that

(KK/2)70

Another, variant of this puzzle is regarding bank locks. Puzzle: Suppose, you have n people working at a bank and you want that at least m should be present to be able to open a lock. How many locks do you need, and how many keys are needed for each lock.




Solution: For each subset of m1 people there should be a lock that they cannot open so  we need

(nm1)

locks. Also, for any lock we cannot find m people that together cannot open it. So each lock should have n(m1) keys.

No comments:

Post a Comment