
August 7th, 2003, 02:19 AM
|
 |
Corporal
|
|
Join Date: May 2003
Location: SF Bay Area, CA
Posts: 145
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Math problem
Quote:
Originally posted by Jack Simth:
Let's see: Floor function for the numbers:
Pp = players per game
Np = Number of players (total)
Gp = Games per player
Tg = Total games
Gp = (Np - 1) / (Pp - 1)
Tg = (Np * Gp) / Pp
...
If Gp and Tg come out as positive integers, it should be doable - I'm not sure about the arrangement, however.
|
I think this is the same as what I had a few Posts back, or am I missing something?
Edit: Oh sure add more
Quote:
Originally posted by Jack Simth:
Edit: Arrangement method:
Edit: Arrangement method:
1) List players
2) Variables
Pp = players per game
Np = Number of players (total)
Gp = Games per player
Tg = Total games
Sk = Skip (counting variable; internal use only)
3) Gp = (Np - 1) / (Pp - 1)
4) Tg = (Np * (Np - 1)) / (Pp * (Pp - 1))
5) Sk = 0
6) Group, skipping Sk
7) Sk = Sk + Pp
8) If Sk < Np, Goto 6
|
Looks promising, but I don't understand exactly what you mean by group, skipping sk. Could you show the Np=13 and Pp=3 case I mentioned earlier as an example (since no one has shown it yet)?
[ August 07, 2003, 01:56: Message edited by: cybersol ]
|