1 n vehicles occupy squares 1 1 through n 1 ie the bottom

Assignment Help Data Structure & Algorithms
Reference no: EM13347887

1. n vehicles occupy squares (1, 1) through (n, 1) (i.e., the bottom row) of an n × n grid. The vehicles must be moved to the top row but in reverse order; so the vehicle i that starts in (i, 1) must end up in (n - i + 1, n). 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. Calculate the size of the state space as a function of n.

b. Calculate the branching factor as a function of n.

c. 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 (n - i + 1, n), assuming no other vehicles are on the grid. Give a formula for hi in terms of xi, yi, and n.

d. Which of the following heuristics are admissible for the problem of moving all n vehicles to their destinations? Explain.

i) _(i=1)^n hi  

ii) max{h1, . . . , hn}

iii) min{h1, . . . , hn}

2. Describe the search algorithm that results from each of the following special cases. How does it relate to other algorithms we have discussed?

a. Local beam search with k = 1.

b. Local beam search with one initial state and no limit on the number of states retained.

c. Simulated annealing with T = 0 at all times (and omitting the termination test).

d. Simulated annealing with T = ∞ at all times.

e. Genetic algorithm with population size N = 1.

Reference no: EM13347887

Questions Cloud

Question a one of your old english lit professors has been : question a one of your old english lit professors has been elected governor of baxter a cute little new england state
Your organization city rehab has been approached by an mco : your organization city rehab has been approached by an mco looking for an exclusive arrangement for the rehabilitation
Imagine that you work for fema or the department of : imagine that you work for f.e.m.a. or the department of homeland security.in light of the problems brought up by
Genome4u is a scientific research project at a large : genome4u is a scientific research project at a large university in the united states. genome4u has recently started a
1 n vehicles occupy squares 1 1 through n 1 ie the bottom : 1. n vehicles occupy squares 1 1 through n 1 i.e. the bottom row of an n times n grid. the vehicles must be moved to
Experimentuse the transistor board provideddc analysisa1 : experimentuse the transistor board provideddc analysisa1 connect a 15 volt supply to vcc and ground and accurately set
Create a program that maintains the required book catalog : create a program that maintains the required book catalog for the circulation desk of a library. the book catalog is to
Question 1 an unanticipated demand-pulled inflation would : question 1 an unanticipated demand-pulled inflation would normally lead to all the following problems except a change
Correlation and regressionuse the subsequent hypothetical : correlation and regressionuse the subsequent hypothetical correlation matrix to answer the first two

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Design systems with less complexity algorithms

Complexity of the algorithms so that we can write the programs with out sacrificing the other aspects like speed, qualit y and other related thing.

  Comparison of the applicability of array

Data structures include: 1. a linked list, 2. an ordered, one dimensional array, and three. a binary tree. Assume the list of letters R, A, N, B, C, F, X and G are stored in a list.

  A sorting algorithm is described as stable

A sorting algorithm is described as stable if equal elements are in the same relative order in the sorted sequence as in the original sequence.

  Discuss and define normalization

Discuss and define normalization and what are the basic steps of the normalization process?

  Convert the following formulas from reverse polish to infix

Convert the following formulas from reverse Polish to infix.

  Create an application to implement apriori algorithm

Create an application to implement Apriori Algorithm and demonstrate the two main phases in it, which are i) Generation of frequent itemsets; ii) Generation of association rules.

  Question related to ms excel

Discuss how do I insert a row in multiple tables on different sheets in the same workbook? I have twelve sheets, one for every month, and the sheets are exactly the same.

  Write an algorithm called find-g

Write an algorithm called "Find-G" to nd a maximally-general consistent hypothesis. You can assume the data will be noise-free and that the target concept is in the hypothesis space.

  Write a program to find average marks

Write a program to find average marks obtained by 10 students in a test along with algorithm and write a menu driven program using function to perform following operations on 1 d array?

  Dhcp server at each network segment

Discuss the drawbacks and benefits of having a DHCP server on each network section, versus having some of the network sectionsreceive their IP address and network configuration via a router using a DHCP relay agent?

  Draw the human encoding tree of these six characters

Show how to nd the maximum spanning tree of a graph, that is, the spanning tree of largest total weight.

  Compute result for receiver after error detection algorithm

If receiver A receives 101010010011100100011101 and another receiver, B, receives 101011111111100100011101 compute the result for each receiver after error detection algorithm is run?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd