This exercise concerns the problem of planning a route for a robot to
take from one city to another. The basic action taken by the robot is
-
Write a suitable logical description of the initial situation of the robot.
-
Write a suitable logical query whose solutions provide possible paths to the goal.
-
Write a sentence describing the
${Go}$ action. -
Now suppose that the robot consumes fuel at the rate of .02 gallons per mile. The robot starts with 20 gallons of fuel. Augment your representation to include these considerations.
-
Now suppose some of the cities have gas stations at which the robot can fill its tank. Extend your representation and write all the rules needed to describe gas stations, including the
${Fillup}$ action.