C#算法在一个运动队指定的匹配运动队、算法

2023-09-11 07:17:56 作者:對不起丶妳沒有訪問權限

可能DUP:Help我找出一个随机调度算法使用Python和PostgreSQL

比方说,你有9个队一个部门,并且希望他们发挥各16场比赛。通常你会希望有8场比赛(主场),和8场比赛(游客)。是否存在已知的算法去中和指定的比赛中,随机?

Let's say you have a division with 9 teams, and you want them to play 16 games each. Usually you would want to have 8 games (Home), and 8 games (Visitor). Is there a known algorithm to go in and assign the matches, randomly?

请注意 - >可以,有时不工作,所以你可以有不均匀的数字。 任何帮助是AP preciated。

Note -> It can, sometimes not work, so you can have uneven numbers. Any help is appreciated.

推荐答案

请参阅这些置换算法

请问你这一个工作:费雪耶茨洗牌