Calculate the size of the state space as a function of n

Assignment Help Data Structure & Algorithms
Reference no: EM131820

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: EM131820

Questions Cloud

Increase the chances of getting your legislation passed : What will you do to increase the chances of getting your legislation passed?
What is city current average cost per hip replacement visits : They have offered to guarantee 1000 patient visits per year and want to pay $70 per visit. City Rehab currently receives $95 per visit directly from Medicare
Write a report to investigate the government planning : Report in which you investigate the Federal government's planning and response to hurricanes
Prepare a graph of the storage requirements : Prepare a graph of the storage requirements for the project.
Calculate the size of the state space as a function of n : 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
Ac analysis gain at midband with bypass capacitor : AC Analysis Gain at Midband (with bypass capacitor in circuit) Connect the bypass capacitor using the switch.
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.
Which of the happing tends to occur during recessions : Which of the followings tends to occur during recessions Cyclical unemployment tends to fall The stock markets tends to surge (experience a rapid rise in prices) Interest rates tend to fall Gross Domestic Product rises Consumer ..
Correlation and regression : What are the degrees of freedom for regression

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Data structures and algorithm design

Data Structures and Algorithm Design

  Describe sorting algorithms and how they work

Describe sorting algorithms and how they work

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  Addition and subtraction of numbers in binary

Addition and Subtraction of numbers in binary and round to the nearest decimal number with three significant decimal digits

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Different applications of data structure

What are the different applications of Data Structure

  Data structures and algorithms

Provides learners with an understanding of how data structures are used in algorithms and enables them to design and implement data structures

  Write the selection sort algorithm

Write the selection sort algorithm

  Currency conversion development

Currency Conversion Development

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

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