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

Assignment Help Data Structure & Algorithms
Reference no: EM13347544

Problem 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. Determine the size of the state space as a function of n.

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

c. Consider that vehicle i is at (xi, yi); write a nontrivial admissible heuristic hi for the number of moves it will need to get to its goal location (n - i + 1, n), considering 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?Illustrate.

2154_Determine the branching factor.png

Problem 2. Expalin 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: EM13347544

Questions Cloud

Write an essay on fdi in nehterlandsthe essay should : write an essay on fdi in nehterlands.the essay should critically anlayze why fdi in nehterlands is attractive or not.
Electricity modellingit deals with electricity usage data : electricity modellingit deals with electricity usage data for 241 households in new zealand that was collected in
Write a research paper in relation to a software design : write a research paper in relation to a software design related topic. diagrams and drawing of attention to key points
The study found 87 per cent of 1500 australians surveyed : the study found 87 per cent of 1500 australians surveyed would support colour-coding on packaged food to indicate
Problem 1 n vehicles occupy squares 1 1 through n 1 ie the : problem 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
Proposal aproposal a envisages generation of electricity : proposal aproposal a envisages generation of electricity from water - a hydro-electric project. the useful economic
Question 1suppose the system shown below initially the gas : question 1suppose the system shown below. initially the gas is at 200 kpa and occupies a volume of 0.1 m3. the spring
Part-11 mutually exclusive events are also independent : part-11. mutually exclusive events are also independent. false2. if events a and b are independent then the probability
Consider the following questionsdespite low valuable brands : consider the following questionsdespite low valuable brands pepsico has done very-well in comparison to coca-cola. what

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Writing a c program

Create a C program that has a declaration in main() to store the following numbers into an array named channels: 2, 4, 5, 7, 9, 11, 13. There should be a function call to display().

  Computing time complexity of procedure

What is the time complexity of the procedure? If A[l .. r] = [24, 30, 09, 46, 15, 19, 29, 86,78], what is the output?

  Write computer program to implement this algorithm

Write computer program to implement this algorithm and demonstrate the results and what is the machine run time in second for sorting array A?

  Finding equation has no solutions mod m

Let the equation ax = b mod m, where x is unknown and a, b and m are given. Illustrate that this equation has either no solutions mod m, or d solutions mod m.

  Create and implement dynamic programming algorithm

Create and implement such dynamic programming algorithm and examine it. You are not sure if CEO must get invited to party, but you suspect that you might get fired if he is not.

  Write forensic analysis for the windows 7 os

Download one of the forensic tools at http://forensiccontrol.com/fcresources.php, run it on Windows 7 OS, make up exercises that will test its capabilities and evaluate it. Write a one-page report on its potential use in forensic analysis for the ..

  Question about java hashtables

Prompt the user for a string, and display the corresponding number. For example, if the user types "five", the program would output "5". This must be done using the hashtable as created in the previous step.

  Js code to prompt the user for integer and print result

Write JS code which prompt the user for an integer and prints the result.

  Learning for numeric prediction

Write down the output (class) values and number of instances that appear in each of the leaf nodes A, B and C of the tree - Learning for Numeric Prediction

  Give the steps to build priority queue in heap structure

Both are given from a paper assignment both are Logic questions. I don't need ANY CODE AT ALL. Just the general steps you would use.

  What is the difference between syntax and semantics

Explain the distinction between an ambiguity in a proposed algorithm and an ambiguity in the representation of an algorithm.

  Write algorithm to decide which commute is cheaper

Write working algorithm in pseudo code to decide which commute is cheaper: You wish to decide whether you must drive your car to work or take train. You know one-way distance

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