Suppose you are facing an infinitely-long wall. Somewhere in the wall is a door, but you can only see the door if you are right next to it. You want to go through the door.
You don't know whether the door is to your right or to your left.
How far in each direction should you walk to minimize the total (expected) distance you have to walk to find the door?