设万维读者为首页 广告服务 联系我们 关于万维
简体 繁体 手机版
分类广告
版主:
万维读者网 > 灵机一动 > 帖子
N players with 2 fields
送交者: 零加一中 2009年06月30日04:54:07 于 [灵机一动] 发送悄悄话
N 个羽毛球运动员,编号1,2,3,..., N, 打循环赛。有两个场地可以应用。 假定,每场比赛的时间是相等的。怎样分配场地使得最短时间内完成所有 比赛? --------------------------------------------------------------------- First N-2 matches in field 1: 1-3, 1-4, ..., 1-N First N-2 matches in field 2: 2-4, 2-5, ..., 2-N, 2-3 At this time, players 1 and 2 finished all matches except 1-2. Next N-4 matches in field 1: 3-5, 3-6, ..., 3-N Next N-4 matches in field 2: 4-6, 4-7, ..., 4-N, 4-5 At this time, players 3 and 4 also finished all matches except 3-4. Continue doing this, end situation depends on N odd or even. ---------------------------------------------------------------------- For odd N (=2K+1). K-1 pairs need match between each two: 1-2, 3-4, ..., (2K-3)-(2K-2). Three players need matches among them: 2K-1, 2K, 2K+1. It is straightforward to finish. -------------------------------------------------------------------------- For even (=K). K-1 pairs need match between each two: 1-2, 3-4, ..., (2K-3)-(2K-2). Two players need matches between them: 2K-1, 2K. It is straightforward to finish.
0%(0)
0%(0)
标 题 (必选项):
内 容 (选填项):
实用资讯
回国机票$360起 | 商务舱省$200 | 全球最佳航空公司出炉:海航获五星
海外华人福利!在线看陈建斌《三叉戟》热血归回 豪情筑梦 高清免费看 无地区限制
一周点击热帖 更多>>
一周回复热帖
历史上的今天:回复热帖
2008: 远警长探案:招生广告中的玄机