Question

In: Computer Science

In this question you will work with A*. Let’s suppose that you are given an upper...

In this question you will work with A*. Let’s suppose that you are given an upper bound Z to the cost of the optimal solution of a search problem. We decide to modify A* in the following manner: every time that a node i with f(i) > Z is generated, the node is immediately discarded. • Is this new algorithm guaranteed to find the optimal solution? Explain your answer and state your assumptions. • What will happen if you use a non-admissible heuristic?

Solutions

Expert Solution

A* algorithm uses an evaluation function f(node) to search. For node i, f(i) = g(i) + h(i) where g(i) is the total cost of the path from source node to node i and h(i) is the estimated cost from node i to the goal node.

Let C* be the optimal cost from the source node to the goal node. Followings are some properties of the A* algorithm:

i) A* expands to every node with f(i) < C*

ii) A* will never expand to any node with f(i) > C*

iii) A* expands to some nodes with f(i) = C*

iv) If h is an admissible heuristic function, then A∗ search with h is optimal.

If the A* algorithm is modified such that every time a node with f(i) >Z is generated, the node is immediately discarded, then the optimality depends on the value of Z and nature of heuristic. If the heuristic is admissible, two cases arise based on the value of Z.

Case 1: Z < C*

In this case, the search may be incomplete because A* can't expand to all nodes with f(i) < C*. Hence, doesn't guarantee an optimal solution.

Case 2: Z >=C*

In this case, A* will still expand to every node with f(i) < C*. And since the heuristic function is admissible, it will result in an optimal solution.

If the heuristic is non-admissible, it may overestimate the cost of reaching the goal. Hence, it may or may not result in an optimal solution.


Related Solutions

Suppose that you are testing the hypotheses Upper H 0​: pequals0.25 vs. Upper H Subscript Upper...
Suppose that you are testing the hypotheses Upper H 0​: pequals0.25 vs. Upper H Subscript Upper A​: pnot equals0.25. A sample of size 300 results in a sample proportion of 0.31. ​ a) Construct a 90​% confidence interval for p. ​ b) Based on the confidence​ interval, can you reject Upper H 0 at alphaequals0.10​? Explain. ​ c) What is the difference between the standard error and standard deviation of the sample​ proportion? ​ d) Which is used in computing...
Question 2 Let’s consider the supply and demand curves for natural gas. Suppose that the supply...
Question 2 Let’s consider the supply and demand curves for natural gas. Suppose that the supply curve is: Qs = 10+ 0.6PG + 0.05PO and the demand curve is: Qd = 0.01−2PG + 0.5PO, where Qs and Qd are the quantities supplied and demanded measured in trillion cubic feet, PG is the price of natural gas in dollars per thousand cubic feet, and PO is the price of oil in dollars per barrel. Suppose that the price of oil is...
Question 4: Suppose you work for a company interested in an investment in green technology. It...
Question 4: Suppose you work for a company interested in an investment in green technology. It would change your production practice but also make it more environmentally friendly. You estimate the costs and benefits over a 5-year period. Year 1 (t=0) Year 2 Year 3 Year Year 5 Costs 100 5 5 8 10 Benefits 15 40 40 35 30 Find the present value of the investment using a 10% discount rate. Find the present value of the investment using...
Let’s suppose that you are a landlord negotiating a rental contract with tenant ABC, where you...
Let’s suppose that you are a landlord negotiating a rental contract with tenant ABC, where you pass-through the variable operating expenses to the tenant, hence the tenant pays all variable operating expenses. What is the benefit for you as the landlord for such a lease?
Let’s suppose that you are going to play the lottery game Powerball. To play, you pick...
Let’s suppose that you are going to play the lottery game Powerball. To play, you pick five different numbers from 1 through 69 plus one Powerball number from 1 through 26. Which is a more likely combination of winning numbers: 1, 2, 3, 4, 5, 6 or 7, 21, 25, 32, 40, 56? Explain your answer. For a $500,000,000 jackpot, which of the two combinations would likely be more lucrative for you if it were to win? In other words,...
4. Let’s say you work as a junior researcher in a consulting company that has been...
4. Let’s say you work as a junior researcher in a consulting company that has been hired by the American milk suppliers association to conduct a study on the milk market. Your assignment is to predict, using the demand and supply analyses, what will happen to the price and quantity (in gallons) traded (bought and sold) under the conditions stated below. What are your predictions? Explain fully using appropriate graphs (sketch). Consider each part separately.     (12 pts) Note: If...
Let’s say you have the ciphertext for the given plaintext. Plaintext: it was disclosed yesterday that...
Let’s say you have the ciphertext for the given plaintext. Plaintext: it was disclosed yesterday that several informal but direct contacts have been made with political representatives of the viet cong in Moscow Ciphertext: UZQSOVUOHXMOPVGPOZPEVSGZWSZOPFPESXUDBMETSXAIZVUEPHZHMDZSHZOWSFPAPPDTSVPQUZWYMXUZUHSXEPYEPOPDZSZUFPOMBZWPFUPZHMDJUDTMOHMQ Can you determine the cipher used? If yes, name the cipher. Explain why. Can you determine all/part of the key. If yes, give the key or part of the key. Explain how you deduced it.
2a) Suppose you are playing “Let’s Make a Deal”, the “prize” is worth $10,000, and a...
2a) Suppose you are playing “Let’s Make a Deal”, the “prize” is worth $10,000, and a goat is worth nothing. Further suppose that the initial pick of a door is not part of the game (since it’s random anyway). You’ve always picked door A initially before the game has begun. The game starts as nature randomly determines where the prize is (1/3 chance for any of the three doors); then Monty Hall selects one of doors B or C that...
2c) Suppose you are playing “Let’s Make a Deal”, the “prize” is worth $10,000, and a...
2c) Suppose you are playing “Let’s Make a Deal”, the “prize” is worth $10,000, and a goat is worth nothing. Further suppose that the initial pick of a door is not part of the game (since it’s random anyway). You’ve always picked door A initially before the game has begun. The game starts as nature randomly determines where the prize is (1/3 chance for any of the three doors); then Monty Hall selects one of doors B or C that...
2b) Suppose you are playing “Let’s Make a Deal”, the “prize” is worth $10,000, and a...
2b) Suppose you are playing “Let’s Make a Deal”, the “prize” is worth $10,000, and a goat is worth nothing. Further suppose that the initial pick of a door is not part of the game (since it’s random anyway). You’ve always picked door A initially before the game has begun. The game starts as nature randomly determines where the prize is (1/3 chance for any of the three doors); then Monty Hall selects one of doors B or C that...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT