Thread: Math problem
View Single Post
  #34  
Old August 7th, 2003, 03:01 AM

Ack Ack is offline
Private
 
Join Date: Mar 2003
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Ack is on a distinguished road
Default Re: Math problem

Duh! Algorithm.

1. Drop each combination into an array of n elements. Where n is the number of players per game.
2. Sort each array numerically.
3. Compare each array to the next and discard in duplications.
4. Output the remaining arrays into a text file.

Ugly and inefficient, but a P4 should make short work of it.
Reply With Quote