Answered step by step
Verified Expert Solution
Link Copied!
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

image text in transcribed

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

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 22nd European Conference Adbis 2018 Budapest Hungary September 2 5 2018 Proceedings Lncs 11019

Authors: Andras Benczur ,Bernhard Thalheim ,Tomas Horvath

1st Edition

3319983970, 978-3319983974

More Books

Students explore these related Databases questions

Question

2. Develop a persuasive topic and thesis

Answered: 3 weeks ago

Question

How many states in India?

Answered: 3 weeks ago

Question

Different types of Grading?

Answered: 3 weeks ago