作者yr (Light be with you)
看板Prob_Solve
標題Re: [問題] 徵求神人幫解大地遊戲分組的超難排列組合
時間Tue Aug 4 11:21:48 2015
※ 引述《yr (Light be with you)》之銘言:
: 推 eieio: 請問一下,12 隊 7 關 7 場,有解嗎? 07/22 07:40
抱歉,現在才看到,跑了大概三秒得到的解。
0 1 2 3 4 5 6
0,1 3,7 6,11 8,10 2,4 5,9
4,5 0,2 1,7 8,11 3,9 6,10
2,10 0,3 5,6 4,7 8,9 1,11
3,8 5,11 2,9 0,4 1,6 7,10
6,7 4,10 1,9 0,5 3,11 2,8
9,11 1,8 5,10 2,7 0,6 3,4
6,9 4,8 3,10 2,11 1,5 0,7
--
Some people are born on third base and go through life
thinking they hit a triple.
- Barry Switzer
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 155.69.173.227
※ 文章網址: https://www.ptt.cc/bbs/Prob_Solve/M.1438658511.A.C43.html
推 eieio: 謝謝。我用的 algorithm 只能找漂亮解,解不了 12 隊 7 場 08/04 13:06
→ yr: 如果把漂亮解弄成 constraints 搞不好可以找到 08/05 11:21
→ yr: 不過漂亮解有很多種定義 08/05 11:22
→ eieio: 我用的 algorithm 的多了個限制是橋牌能分桌,能簡單傳牌 08/10 04:57
→ eieio: 以及每個座位的下一場移動方向是固定的,所以很容易無解 08/10 04:58