Home / Expert Answers / Computer Science / q4-suppose-two-friends-live-in-different-cities-on-a-map-such-as-the-romania-map-shown-in-slide-pa125

(Solved): Q4. Suppose two friends live in different cities on a map, such as the Romania map shown in Slide. ...





Q4. Suppose two friends live in different cities on a map, such as the Romania map shown in Slide. On every turn, we can simu
Q4. Suppose two friends live in different cities on a map, such as the Romania map shown in Slide. On every turn, we can simultaneously move each friend to a neighboring city on the map. The amount of time needed to move from city \( i \) to neighbor \( j \) is equal to the road distance \( d(i, j) \) between the cities, but on each turn the friend that arrives first must wait until the other one arrives (and calls the first on his/her cell phone) before the next turn can begin. We want the two friends to meet as quickly as possible. (3 points each) a. What is the state space? b. What is the Goal? To get both friends in the same city, with the shortest overall time traveled. c. What is the Successor function? d. What is the step cost function?


We have an Answer from Expert

View Expert Answer

Expert Answer


(a) State space is defined as set of all the possible states of a system. Thus, in this case State space are all possible city pairs (i, j). (
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe