设万维读者为首页 广告服务 联系我们 关于万维
简体 繁体 手机版
分类广告
版主:
万维读者网 > 灵机一动 > 帖子
犯罪者的难题解:20 locks
送交者: nanweishui 2005年07月12日09:05:41 于 [灵机一动] 发送悄悄话

1. For any combination of 3 robbers, say robber 1, 2 and 3, they can not open the safe. This means there exists at least one lock that none of them has the key to. However, since 4 robbers can open the safe, this means each of the remaining three robbers has the key to this lock.

2. Thus, each combination of 3 robbers corresponds to at least one lock that only these 3 robbers don’t have the key to. So the total number of locks is at lease C(6,3) = 20.

3. 20 locks are sufficient. Name each lock after a 3-robber combination, e.g. Lock (1, 2, 3), Lock (2, 3, 5) and so forth. There are exactly 20 locks. For lock (1, 2, 3), give its keys only to robber 1, 2, and 3, and we do similarly to other locks. Then for each 3-robber combination, say (1, 2, 3), there is just one lock that they can not open: Lock (4, 5, 6). However, since robber 4, 5 or 6 has the key to this lock, every 4-robber combination can open the safe.

4. Generalization: If there are N robbers, and we want to hold the majority rule, there the number of locks required is: C(N, N/2) if N is even, C(N, (N-1)/2) = C(N, (N+1)/2) if N is odd.

0%(0)
0%(0)
标 题 (必选项):
内 容 (选填项):
实用资讯
回国机票$360起 | 商务舱省$200 | 全球最佳航空公司出炉:海航获五星
海外华人福利!在线看陈建斌《三叉戟》热血归回 豪情筑梦 高清免费看 无地区限制
一周点击热帖 更多>>
一周回复热帖