An Algorithm Challenge (finding the five fastest horses out of a large group)

Click For Summary

Discussion Overview

The discussion revolves around an algorithmic challenge involving finding the fastest horses from a group and identifying a lighter item among a set of identical weights. Participants explore various strategies and methodologies for minimizing the number of races or measurements required to achieve these goals, with a focus on logical reasoning and optimization.

Discussion Character

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

Main Points Raised

  • One participant proposes that it can be done in seven races, assuming ideal conditions with spherical horses in a vacuum.
  • Another participant suggests that the minimum number of races must be at least six, as fewer would not allow for proper comparisons between horses from different races.
  • There is a discussion about the maximum number of races needed, with estimates ranging from 6 to 150 based on different racing strategies.
  • Participants debate the clarity of phrasing regarding items of the same weight with one being lighter, with some arguing for clearer definitions.
  • One participant mentions a logarithmic approach to determining the number of measurements needed to find the lighter item, suggesting a maximum of five comparisons for 96 items.
  • Another participant discusses anomalies in measurement strategies for different numbers of items, indicating that the optimal strategy is not straightforward.
  • Several participants share their proposed strategies for weighing items, with some suggesting weighing halves against halves and others critiquing the effectiveness of binary approaches.

Areas of Agreement / Disagreement

Participants express differing views on the optimal number of races or measurements required, with no consensus reached on the best strategies or phrasing. The discussion includes both agreement on certain mathematical principles and contention over the clarity of language used in the problem statements.

Contextual Notes

There are unresolved assumptions regarding the conditions under which the horses race and the definitions of weight in the item problem. The discussion reflects varying interpretations of optimal strategies and the implications of different approaches.

  • #61
Here's the result of another simulation to calculate the probability of which is the slowest horse (after the WOW race):

A5 is the slowest horse: 0.1675
B5 is the slowest horse: 0.1753
C5 is the slowest horse: 0.1879
D5 is the slowest horse: 0.2086
E5 is the slowest horse: 0.2608

Note that he probability that A5 is the slowest horse is ##\frac 1 6## as previously calculated precisely.
 
Technology news on Phys.org
  • #62
On the extra extra credit, it shows B4 is faster than A5, which I expected. Both lose to 4 other horses, but we know B4 is faster than one other horse - we don't know that for A5.

I was surprised that C3 was not 13.00.
 
  • #63
Been playing with a much more subtle problem: identify the median-speed horse.

One reason this is subtle is the condition "fewest races" - is this on average? Or the smallest maximum guranteed to find the answer? Or something else?
 
  • #64
Vanadium 50 said:
Been playing with a much more subtle problem: identify the median-speed horse.

One reason this is subtle is the condition "fewest races" - is this on average? Or the smallest maximum guranteed to find the answer? Or something else?
Dunno. I'll have to check with the sheik.
 
  • #65
PeroK said:
If I understand the question, you can model this by considering the numbers 1-25 put at random into five groups of five. The numbers in each group are then sorted in ascending sequence. We then choose group A as the group with the number 1 in it. A1 is the number 1 and A5 is the highest number in that group. Group B is the group with the next lowest first number. E.g., if the number 2 is not in group A, then group B will be the group with the number 2 in it. Group E is the group with the highest first number.

It's clear than the distribution for E5 has a higher mean than the distribution for A5.

This could be simulated using a Python (or C++) script, or possibly calculated - if it wasn't so late in the day.

PS the lower the number, the faster the horse it represents.
Though I no longer play the game of bridge, I frequent a group of bridge players. They are confronted with such situations all the time. The also have the constraint of solving the problem without any aids and doing so in a timely manner. The problem is quite similar as the number of cards in a hand is fixed and a higher rank in one hand means lower ranks in the other hands.

The way they would approach this is called "empty spaces." In the A group we know that one of the horses isn't the slowest. This leaves 4 empty spaces in group A. The chance that A contains the slowest is 4/24 = 1/6. In the E group we know that none of the horses is in the top four. The chance that E contains the slowest is about 5/(25-4). That's 24%, as opposed to the simulation value of 26%. Close enough for bridge.
 
  • #66
Hornbein said:
Dunno. I'll have to check with the sheik.
Sheik al-Abdullah said, "What may I ask is this "average" of which you are speaking?" When I tried to explain he replied, "I hear your words only as they rattle about in the deep well of time. The horses win or not win by the will of Allah, peace be upon him. So it is written." I elected not to pursue the matter further.
 
Last edited:

Similar threads

Replies
9
Views
3K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 83 ·
3
Replies
83
Views
22K
  • · Replies 67 ·
3
Replies
67
Views
16K
Replies
29
Views
5K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 13 ·
Replies
13
Views
5K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 6 ·
Replies
6
Views
6K