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

Click For Summary
SUMMARY

The discussion centers on an algorithmic challenge involving the identification of the three fastest horses from a group of twenty-five using a minimum number of races. The optimal solution is determined to be seven races, which balances the need for comparison across different groups of horses. Additionally, a related problem discusses finding a lighter item among a set of identical weights using a balance scale, with the optimal strategy involving logarithmic comparisons based on the number of items. The conversation emphasizes the importance of precise language and methodology in problem-solving.

PREREQUISITES
  • Understanding of algorithmic problem-solving techniques
  • Familiarity with logarithmic functions, specifically log base 3
  • Knowledge of comparative analysis in racing or selection scenarios
  • Basic principles of balance scales and measurement strategies
NEXT STEPS
  • Research the application of logarithmic algorithms in optimization problems
  • Explore advanced strategies for selection algorithms in competitive scenarios
  • Study the mathematical principles behind balance scales and their optimal usage
  • Investigate variations of the horse racing problem and their solutions
USEFUL FOR

Mathematicians, computer scientists, algorithm developers, and anyone interested in optimization strategies in competitive environments.

  • #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