Machine-translated by Google. Questions are authored in English.
Top

Discussion

What is a solution to a search problem?

  • A.A sequence of actions leading from the initial state to a goal
  • B.The goal state itself once it has been located
  • C.The set of all states visited during the search
  • D.The cheapest path cost achievable within the state space

Answer: A

The answer wanted is the sequence of actions, since knowing the goal state without knowing how to reach it is usually useless, and that sequence is recovered by following parent pointers back from the goal node. The visited set is a by-product and the minimum cost is a property of an optimal solution rather than the solution. Being clear about what the algorithm is asked to return determines what bookkeeping the nodes must carry.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.