Remix.run Logo
porridgeraisin 3 days ago

Don't you need to know the inter arrival time to solve this? I think the point is that it's a memory less distribution so you're expected to wait for the same time regardless of how long you've already waited.

JohnKemeny 3 days ago | parent [-]

Suppose you repeat this every day, and every day the bus arrives a random time between "now" and in (let's say) 30 minutes.

There is a strategy that allows you to never be worse than 2x if you knew exactly when the bus arrived: Wait for 10 minutes, and if the bus didn't arrive, walk home.

In all cases when the bus arrives between now and in 10 minutes, you do the optimal thing, and whenever the bus arrives after 10 minutes have passed, you will be home after 20 minutes, which is not worse than 2x worse than optimal.