#ThisWeeksFiddler, 20250822

This week the #puzzle is: How Far Can You Run Before Sundown? #maximum #strategy #recursion

You’re participating in a trail run that ends at sundown at 7 p.m. There are four loops: 1 mile, 3 miles, 3.5 miles, and 4.5 miles. After completing any given loop, you are randomly assigned another loop to run—this next loop could be the same as the previous one you just ran, or it could be one of the other three. Being assigned your next loop doesn’t take a meaningful amount of time; assume all your time is spent running.
Your “score” in the race is the total distance you run among all completed loops you are assigned. If you’re still out on a loop at 7 p.m., any completed distance on that loop does not count toward your score!
It is now 5:55 p.m. and you have just completed a loop. So far, you’ve been running 10-minute miles the whole way. You’ll maintain that pace until 7 p.m.
On average, what score can you expect to earn between 5:55 p.m. and 7 p.m.?

And for extra credit:

Now let’s add one more wrinkle. At some point during the race, if you’re unhappy with the loop you’ve just been randomly assigned, you’re granted a “mulligan,” allowing you to get another random assignment. (Note that there’s a 25 percent chance you’ll be assigned the same loop again.) You don’t have to use your mulligan, but you can’t use it more than once.
As before, the time is 5:55 p.m. You have just completed a loop, and you haven’t used your mulligan yet.
With an optimal strategy (i.e., using the mulligan at the right moment, if at all), on average, what score can you expect to earn between 5:55 p.m. and 7 p.m.?

How Far Can You Run Before Sundown?

Intermission:

So. I didn’t get the extra credit last week. No shame in that. I had all the points from the previous puzzles of Q3. We were a group of 10 persons able to say that. I am now in the group of 6 persons, who dropped out from that max points group, now counting 4 members.

Still. It made me wonder. What was required to solve the extra credit? How does one find a strategy?

  • Make a list of all the strategies you can think of. Remember to include the optimal one. 😉
  • Test every item on the list.
  • Declare a winner.

This requires good brainstorming skills. Also in this case I couldn’t leap this hurdle:

  • A strategy is a list of “given voucher situation A, choose bet option B”.

As it turned out, the strategy also needed to include “is this the 1st bet, yes or no”.

Because I actually had the pieces. I had the $55 strategy for the 1st bet. And I had the $35 strategy for having all vouchers. I could just have combined them to get the correct extra credit result.

Ah well.

Highlight to reveal (possibly incorrect) solution:

Program

And for extra credit:

Mindomo Program Image

Skriv en kommentar