The Gateway to Computer Science Excellence

0 votes

Consider $f(N) = g(N) + h(N)$ Where function $g$ is a measure of the cost of getting from the start node to the current node. $N$ and $h$ is an estimate of the additional cost of getting from the current node $N$ to the goal node. Then $f(N) = h(N)$ is used in which one of the following algorithms?

- $A^{*}$algorithm
- $AO^{*}$ algorithm
- Greedy best first search algorithm
- Iterative $A^{*}$ algorithm

0 votes

Best answer

the given eqn

belongs to A* algorithm(variant of Best First) in which g(N) i.e the cost of reaching to current node from start node is also considered in addition of h(N). In original greedy best first algorithm only h(N) i.e cost of going from current node to goal node is considered(thats why it is greedy just find the cost to reach the goal node which may not be optimal)

so f(N)=h(N) belongs to greedy best first algorithm hence ans is C

52,315 questions

60,428 answers

201,757 comments

95,237 users