recategorized
4,393 views
1 votes
1 votes

$A^*$ algorithm uses $f’=g+h’$ to estimate the cost of getting from the initial state to the goal state, where $g$ is a measure of cost getting from initial state to the current node and the function $h’$ is an estimate of the cost of getting from the current node to the goal state. To find a path involving the fewest number of steps, we should test,

  1. $g=1$
  2. $g=0$
  3. $h’=0$
  4. $h’=1$
recategorized

2 Answers

1 votes
1 votes

A* algorithm is the most important form of Best first search (greedy search which may move either depth wise or breadth wise as needed to get the best solution also known as OR graph) 

f=g+h'

=g+h

 g    is a measure of cost getting from initial state to the current node and the function 

h

h'  is an estimate of the cost of getting from the current node to the goal state.  

now if we want to find a path involving the fewest number of steps then we set the cost of going from from a node to its successor(i.e.   g ) as a constant usually 1

hence ans is A

0 votes
0 votes
In the A* algorithm, the cost function

$f(n)=g(n)+h′(n)$ , where:

$g(n)$ is the actual cost of getting from the initial state to the current node,

$h′(n)$ is an estimate of the cost of getting from the current node to the goal state.
To find a path involving the fewest number of steps, you should minimize the actual cost of getting from the initial state to the current node $(g(n))$. Therefore, in this context, you should test:

B. $g=0$

This implies that you are only considering the estimated cost $h’$ in the evaluation function, favoring paths that have the lowest estimate of the cost of getting from the current node to the goal state.

So, the correct option is B.
Answer:

Related questions

3 votes
3 votes
2 answers
1
1 votes
1 votes
1 answer
3
go_editor asked Jul 13, 2016
2,677 views
An expert system shell is an expert system withoutdomain knowledgeexplanation facilityreasoning with knowledgeall of the above