Question

a) Give a set of broad conditions under which A* search reduces to BFS. (A* is...

a) Give a set of broad conditions under which A* search reduces to BFS. (A* is A* search, which is a search function like BFS, DFS UCS, etc.)

b) Does A* always return an optimal solution? Explain.

This is what I have for the whole question.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

a) The conditions under which A* reduces to BFS are as follows :-

1. The heuristic function returns a constant value. If the heuristic function returns a constant value then all subsequent paths will add the same cost to the total cost.

2. The cost of all actions are equal.

If both conditions are satisfied, A* reduces to a mere BFS search.

b) A* will return an optimal solution only if the heuristic function used is admissible. A heuristic function is said to be admissible if it never overestimates the cost of reaching a goal.

If the heuristic is admissible, then when the algorithm terminates its search, then it has found a path from start point to the goal point such that its actual cost is less than estimated cost of any other path from the start to the goal. Since our heuristic was admissible, it was underestimating the cost. So if the actual cost of solution path (found by A*) is is less than the estimated cost of other paths by the heuristic function, it is bound to be lower than the actual cost of that path because cost found by the heuristic function is always less than or equal to the actual cost.

Let f(n) be the cost of solution path found by A*. Let a(n) be actual cost of any arbitrary path, and h(n) be the estimated cost of that path by the heuristic function.

So, as heuristic is admissible, h(n)<=a(n).

But as f(n) is solution of A*, it must be less than h(n). f(n)<=h(n).

Hence, f(n)<=a(n).

Therefore, A* has found optimal path.

However, if heuristic is not admissible, then A* may return non-optimal solution. Suppose, h(n) overestimates the cost. And we have to go from point A to B. Let the optimal path go through a point C. Suppose the cost evaluated by the heuristic says it takes million miles to go from A to B via a point C (since it is overestimating). Since no two points are that far from each other on earth, A* will never consider going through point C as it will find a path having less cost than that. So, in this case it will not return optimal path.

Add a comment
Know the answer?
Add Answer to:
a) Give a set of broad conditions under which A* search reduces to BFS. (A* is...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • #include <iostream> #include <queue> using namespace std; class Graph { public: Graph(int n); ~Graph(); void addEdge(int...

    #include <iostream> #include <queue> using namespace std; class Graph { public: Graph(int n); ~Graph(); void addEdge(int src, int tar); void BFTraversal(); void DFTraversal(); void printVertices(); void printEdges(); private: int vertexCount; int edgeCount; bool** adjMat; void BFS(int n, bool marked[]); void DFS(int n, bool marked[]); }; Graph::Graph(int n=0) { vertexCount = n; edgeCount = 0; if(n == 0) adjMat = 0; else { adjMat = new bool* [n]; for(int i=0; i < n; i++) adjMat[i] = new bool [n]; for(int i=0;...

  • Under what conditions does the Dulong-Petit law fail? Please give a basic explanation why. All of...

    Under what conditions does the Dulong-Petit law fail? Please give a basic explanation why. All of the sources I've found give very advanced-sounding explanations that mention quantum theory, vibrations, and degrees of freedom, none of which I have any knowledge. If you could simplify it that would be great.

  • 7. If this reaction under a given set of conditions has a Keq value of 5.67,...

    7. If this reaction under a given set of conditions has a Keq value of 5.67, what percent conversion to the product would be expected? The answer is A. 85%, but I would like an explanation as to why that is, thank you. Instructions: The reaction below is commonly used as a laboratory preparation of cyclohexene. Use this reaction to answer the following question(s) OH н' Н,о 6. Refer to instructions. The forward and reverse reactions are classified, respectively, as:...

  • 1. State your research topic. This is the broad umbrella under which your research question will...

    1. State your research topic. This is the broad umbrella under which your research question will fall. For example: Cancer care at end of life 2. Literature review. Provide a brief review of the literature (2-3 paragraphs) that leads the reader to your research question. Cite a few articles that introduce your topic. Then narrow your focus. For example, “Smith (2018), Jones (2017) and others have examined the frequency of chemotherapy use in the last 4 weeks of life, but...

  • hint(think about the conditions under which early exercise of an American put option is optimal. What...

    hint(think about the conditions under which early exercise of an American put option is optimal. What would happen to a European put option in this condition) De Ingler utan nat of a European call option None of the above are true, since the decision to exercise the option early lies with the writer of the option QUESTION 5 Which of the following is true about the premium of a European put option in relation to the option's intrinsic value? The...

  • Explain under which conditions an increase in the dividend payment can be interpreted as a signal​...

    Explain under which conditions an increase in the dividend payment can be interpreted as a signal​ of: a. Good news. b. Bad news. a. Good news. Under which conditions can an increase in the dividend payment be interpreted as a signal of good​ news:  ​(Select the best choice​ below.) A. By increasing dividends managers signal that they believe that future earnings will be high enough to maintain the new dividend payment. B. Raising dividends gives investors more​ cash, so the...

  • The budget line A. Represents the set of all baskets that give the consumer the same...

    The budget line A. Represents the set of all baskets that give the consumer the same level of utility while holdi spending constant B. Represents the set of all baskets the consumer can afford C. Represents the set of all baskets in which the consumer purchases only one of the goods. D. Represents the set of all baskets the consumer can afford while spending all available inconm QUESTION 2 Marginal utility A. Is the ratio of total utility to total...

  • Please give an answer which works to print the answer given below. Please use the necessary...

    Please give an answer which works to print the answer given below. Please use the necessary header .h and .cpp files. Please give the right solution. "ITS MY HUMBLE REQUEST TO GIVE THE RIGHT SOLUTION" Question 2 – Creating and working with other Containers A Set is a data structure which contains information on whether a value belongs to that set or not. In this question, you have to implement an integer Set which is able to tell whether an...

  • An irreversible reaction A + B  products is studied under conditions where the initial concentrations...

    An irreversible reaction A + B  products is studied under conditions where the initial concentrations of A and B are equal. Under these circumstances, a graph of ln([A]) as a function of time is linear. What is the order in A? (A) Zeroth order B) First order (C) Second order (D) The order in A cannot be determined based on the information given. Doesn't the first order reaction kinetics say that the graph of ln[A] vs t gives a...

  • How do we predict the conditions (high temperature, low temperature, all temperatures, or no temperatures) under which...

    How do we predict the conditions (high temperature, low temperature, all temperatures, or no temperatures) under which each of the following reactions will be spontaneous. (I have the correct answers to the following so I really want to understand how to solve this question or approach it - Thank you) a) H2O(g) -->H2O(l) b) CO2(s)-->CO2(g) c) H2(g)-->2H(g) d) 2NO2(g)-->2NO(g)+O2(g)(endothermic) *Please expain how to determine the answers - I have the correct solutions*

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT