A road is constructed with n lines (n>2) sharing exactly one point in the center. There are n cars, each at a unique endpoint.
- Cars starts facing the center
- Cars can move forwards and backwards, each considered 1 move.
- Cars can't pass each other (road to narrow)
- Cars want to finish at a different endpoint facing away from the center.
Question:
Whats the minimum moves for n cars such that every car end up in a different endpoint than they started with?
I've tried for n=3, for which I got the answer 5. Using rotation (shifted each car clock-wise), since rotation is the only option for n=3, but not for n>3 (you could also swap places etc).
Here is an image:
How would you approach this problem for n>3 and prove it's optimal?
Can you find a general formula for minimum moves of n cars?
