Answered step by step
Verified Expert Solution
Question
1 Approved Answer
4. n vehicles occupy squares (0,0) through (n1,0) (i.e., the bottom row) of an nn grid. The vehicles must be moved to the top row
4. n vehicles occupy squares (0,0) through (n1,0) (i.e., the bottom row) of an nn grid. The vehicles must be moved to the top row but in reverse order; so the vehicle i that starts in (i,0) must end up in (n1i,n1). On each time step, every one of the n vehicles can move one square up, down, left, or right, or stay put; but if a vehicle stays put, one other adjacent vehicle (but not more than one) can hop over it. Two vehicles cannot occupy the same square. (a) (3 points) Calculate the size of the state space as a function of n. (b) (3 points) Calculate the branching factor as a function of n. (c) (3 points) Suppose that vehicle i is at (xi,yi); write a nontrivial admissible heuristic hi for the number of moves it will require to get to its goal location (n1i,n1), assuming no other vehicles are on the grid. (d) (3 points) Which of the following heuristics are admissible for the problem of moving all n vehicles to their destinations? Explain. (i). i=0n1hi (ii). max(h0,,hn1). (iii). min(h0,,hn1)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started