in Education by
In my textbook I noticed that both these algorithms work almost exactly the same, I am trying to understand what's the major difference between them. The textbook traversed this example using A* the same way it did with the best-first search. Any help would be appreciated. Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
Best first search This algorithm visits the next state based on heuristics function f(n) = h with the lowest heuristic value (often called greedy). It doesn't consider the cost of the path to that particular state. All it cares about is that which next state from the current state has the lowest heuristics. A* search This algorithm visits the next state based on heuristics f(n) = h + g where h component is the same heuristics applied as in Best-first search but g component is the path from the initial state to the particular state. It doesn't choose the next state only with the lowest heuristics value but it selects the one that gives the lowest value when considering its heuristics and cost of getting to that state. In your question, when you start from Arad you can go either straight to Sibiu (253km) or to the Zerind(374km) or Timisoara(329km). In this case, both algorithms choose Sibiu as it has a lower value f(n) = 253. Now you can expand to either state back to Arad(366km) or Oradea(380km) or Fargas(178km) or Rimnicu Valcea(193km). For best first search Faragas will have lowest f(n) = 178 but A* will have Rimnicu Vilcea f(n) = 220 + 193 = 413 where 220 is cost of getting to Rimnicu from Arad (140+80) and 193 is from Rimnicu to Bucharest but for Faragas it will be more as f(n) = 239 + 178 = 417. So now clearly you can see best-first is greedy algorithm because it would choose a state with lower heuristics but higher overall cost as it doesn't consider the cost of getting to that state from the initial state. If you want know about Artificial Intelligence and Deep Learning then you can watch this video: Check more in-depth about Artificial Intelligence from this AI Course.

Related questions

0 votes
    When I the search function, no matter what I get back all the entries in the searched DB table. ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 4, 2022 in Education by JackTerrance
0 votes
    libsvm and liblinear are both software libraries that implement Support Vector Machines. What's the difference? And ... than libsvm? Select the correct answer from above options...
asked Jan 31, 2022 in Education by JackTerrance
0 votes
    I quote from Artificial Intelligence: A Modern Approach: The properties of the depth-first search depend strongly on ... 3rd edition). Select the correct answer from above options...
asked Feb 4, 2022 in Education by JackTerrance
0 votes
    Elastic Search Questions and Answers...
asked Jul 11, 2022 in Technology by sandeepthukran
0 votes
    I have a map stored as a multidimensional array ($map[row][col]) and I'd wish to create a path from ... path inside these values? Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    From what I've read so far they seem very similar. Differential evolution uses floating point numbers instead, and ... of both. Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    In the MNIST beginner tutorial, there is the statement accuracy = tf.reduce_mean(tf.cast(correct_prediction, "float")) tf ... (x,1)? Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    What is the difference between informed and uninformed searches? Can you explain this with some examples? Select the correct answer from above options...
asked Feb 4, 2022 in Education by JackTerrance
0 votes
    What is the difference between back-propagation and feed-forward neural networks? By googling and reading, I found ... feed-forward? Select the correct answer from above options...
asked Jan 31, 2022 in Education by JackTerrance
0 votes
    In this video from Sebastian Thrun, he says that supervised learning works with "labeled" data and unsupervised ... basic difference. Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    There is only one question related to this and it is more about which one is better. I just don't ... exactly lies the difference? Select the correct answer from above options...
asked Jan 27, 2022 in Education by JackTerrance
0 votes
    I want to know the difference between a feature and a label with respect to machine learning. Can someone please explain this? Select the correct answer from above options...
asked Jan 22, 2022 in Education by JackTerrance
0 votes
    Here's a puzzle... I have two databases of the same 50000+ electronic products and I want to match products ... I tackle this problem? Select the correct answer from above options...
asked Jan 29, 2022 in Education by JackTerrance
0 votes
    I have a dataframe that looks like this: from to datetime other ---------------------------------- ... !! Thank you so much in advance! Select the correct answer from above options...
asked Feb 1, 2022 in Education by JackTerrance
0 votes
    I'm trying to write a program that takes text(article) as input and outputs the polarity of this text, ... open-source implementation. Select the correct answer from above options...
asked Feb 4, 2022 in Education by JackTerrance
...