suppose you have an electric car with one battery and want to drive from location a to location b. there are n charging stations on the road from a to b. you want to stop at as few charging stations as possible on your trip from a to b.