Ranking teams equal on points in a pool based on who won the game they played

后端 未结 3 592
没有蜡笔的小新
没有蜡笔的小新 2021-01-21 02:09

I\'m writing an application that calculates the ranking of teams in the pool stages of a rugby competition (Rugby World Cup 2015, but it could apply to many other pool-based

3条回答
  •  失恋的感觉
    2021-01-21 02:46

    I want to add some other suggestion. Because your current problem have some contradictions and may not have a proper answer with current rules.

    • First picture 4 team tie in same rank. If you use the information of the first 4 rows. You get a positions D, A, B, C but then last two can't be enforce.
      • In NFL they have some tie break called inside conference win. So you could count how many win each team have inside this group as a way of order.
      • So now all condition are pair comparasion.
      • In this case A and D have more wins and D beat A.
      • Now C beat B and A beat C. And you have a real order.
    • But as show in picture 2 you can have everyone tie with 2 win.

    My guess is you should analyze the restrictions. Maybe the order of rules is different and you can reduce THIS problem to one where only two team are tie.

提交回复
热议问题