How can a program calculate combinations for three players without repetition?

  • Context: Undergrad 
  • Thread starter Thread starter Oljeg
  • Start date Start date
  • Tags Tags
    combinations
Click For Summary

Discussion Overview

The discussion centers around calculating combinations for three players in a series of matches without repetition, specifically for a scenario involving 21 players and 8 rounds. Participants explore the mathematical foundations and potential programming solutions for this combinatorial problem.

Discussion Character

  • Exploratory, Technical explanation, Debate/contested, Mathematical reasoning

Main Points Raised

  • One participant seeks a formula to calculate match combinations for three players across multiple rounds without repetition.
  • Another participant suggests that knowledge of permutations and combinations from finite mathematics would be beneficial for solving the problem.
  • A different participant questions the structure of the matches, noting that if each match involves three players, the total number of matches and rounds must be calculated based on the number of players.
  • One participant references a general formula for combinations, while another challenges its applicability, stating that the problem is more aligned with combinatorial designs.

Areas of Agreement / Disagreement

Participants express differing views on the appropriate mathematical approach, with some advocating for combinations and others suggesting the need for combinatorial designs. No consensus is reached on the correct method to apply.

Contextual Notes

Participants highlight the complexity of the problem, noting the need for careful consideration of match structures and the implications of player participation in multiple rounds. The discussion reflects uncertainty regarding the correct mathematical framework to apply.

Who May Find This Useful

This discussion may be useful for individuals interested in combinatorial mathematics, programming solutions for game design, or those exploring match scheduling without repetition.

Oljeg
Messages
1
Reaction score
0
Hi, I am trying to find the solution (formula) for doing the following:
For any number of players (divisible by three), I need to calculate a number of rounds (in my case 8) for three players to play each other without any repetition.
So the first round of etc. 21 players would be:
1,2,3 4,5,6, 7,8,9 10,11,12 13,14,15 16,17,18 19,20, 21 and I am looking for the combinations for the next 7 rounds so that no one plays the same player again. Eventually, I would like to design a program with number of players and rounds as an input variable.

Regards,
Oljeg
 
Physics news on Phys.org
Have you studied finite math at all? There are formulas for permutations and combinations that you would likely find useful (combinations in your case, not permutations, since it doesn't matter who sits in what chair in your scenario)
 
Are you saying that each match involves three players? That's an odd kind of match! If each player must play each other player once, then each of the n players must be involved in (n- 1) matches. If each match involves 3 players, that would be a total of n(n- 1)/3 matches. For n= 21, this is 21(20)/3= 140 matches, 20 rounds of 7 matches per round.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
1K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 16 ·
Replies
16
Views
11K
Replies
1
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K