i need help with question d and e. i included the first few question for referen
ID: 3629231 • Letter: I
Question
i need help with question d and e. i included the first few question for referenceplanning a route for a robot to take from one city to another. The basic action taken by the robot is Go(x,y),which takes it from city x to city y if there is a direct route between those cities. DirectRoute(x,y) is true if and only if there is a direct route from x to y; you can assume that all such facts are already in the knowledge base (KB)The robot begins in Arad and must reach Bucharest.
(a) Write a suitable logical description of the initial situation of the robot.
my answer is In(arad)
(b) Write a suitable logical query whose solutions will provide possible paths to the goal.
My answer is Using Dijkstra’s Algorithm it will not only provide us the possible paths but will also give us the shortest path.
d(s, t) <= d(s, u) + d(u, tUT ) +d (tUT , t)
=d(U,T)
(c) Write a sentence describing the Go action.
my answer is The robot will check if a direct route exists from Arad to Bucharest using DirectRoute(Arad, Bucharest). If there is, Go(Arad, Bucharest) will take the robot from Arad to Bucharest.
(d) Now suppose that following the direct route between two cities consumes an amount of fuel equal to the distance between the cities. The robot starts with fuel at full capacity. Augment your representation to include these considerations. Your action description should be such that the query you specified earlier will still result in feasible plan.
i need help with this
(e) Describe the initial situation, and write a new rule or rules describing the Go action.
i need help with this
Explanation / Answer
https://s3.amazonaws.com/answer-board-image/5cd3d9c3-963f-47c2-86ce-ea3ce7a606a4.gif https://s3.amazonaws.com/answer-board-image/8dd287dd-8bde-44ef-b947-288e4fcd245f.gif
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.