Folks,
in my Access app I'm looking for an approach to dealing with ties in series of races. The winner of each race gets 1 point, second place gets two points etc. Races are parts of series and it is the series results that give me the problem. For example
(see seriesresults.doc)
You can see that 4th place and 8th place are tied. To resolve the ties, all the race results for those that have tied must be inspected to see who has the best collection of lowest values as in this test set ...
(see tievalues.doc)
By inspection, the ties cannot be resolved in the first column since all the tieing parties have the same values. In the second column, either Tom or Brian will win and finally it can be resolved in column 3 so the tie break is Tom is in 4th place, Brian in 5th place and Ben in 6th place.
An additional complication is that if the tie break has to keep going across many columns (races) , Tom, Brian or Ben may have less overall results and the tie break then is that any value is better than no value at all. Ultimately, it's possible that the ties cannot be resolved.
My research suggests that the solution probably needs an array and a bubble sort - neither of which I have used before.
Can anyone suggests how this could be coded? I do appreciate that the solutions needs to be run for each set of tied places i.e. 4th, 8th
Thank You.
in my Access app I'm looking for an approach to dealing with ties in series of races. The winner of each race gets 1 point, second place gets two points etc. Races are parts of series and it is the series results that give me the problem. For example
(see seriesresults.doc)
You can see that 4th place and 8th place are tied. To resolve the ties, all the race results for those that have tied must be inspected to see who has the best collection of lowest values as in this test set ...
(see tievalues.doc)
By inspection, the ties cannot be resolved in the first column since all the tieing parties have the same values. In the second column, either Tom or Brian will win and finally it can be resolved in column 3 so the tie break is Tom is in 4th place, Brian in 5th place and Ben in 6th place.
An additional complication is that if the tie break has to keep going across many columns (races) , Tom, Brian or Ben may have less overall results and the tie break then is that any value is better than no value at all. Ultimately, it's possible that the ties cannot be resolved.
My research suggests that the solution probably needs an array and a bubble sort - neither of which I have used before.
Can anyone suggests how this could be coded? I do appreciate that the solutions needs to be run for each set of tied places i.e. 4th, 8th
Thank You.