設萬維讀者為首頁 廣告服務 聯繫我們 關於萬維
簡體 繁體 手機版
分類廣告
版主:
萬維讀者網 > 靈機一動 > 帖子
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: 遠警長探案:招生廣告中的玄機