This is simply a thought experiment.
Say that I had a spacecraft capable of constantly accelerating or decelerating at a rate of 1g to 3g. I want to hit a target 20 light years away. How would I know where along the way to turn the ship around if I wanted to end at my destination decelerating...