📞 0339-0387701 (WhatsApp) Contact

« Back to Data Science & AI (NCCIA)

What is the difference between a search node and a state?

A. They are exactly the same thing
B. A state is a node in the tree and a node is a goal
C. A node stores only the goal state
D. A node is a data structure in the search tree that records a state, its parent, the action used and the path cost ✅

Correct Answer: D. A node is a data structure in the search tree that records a state, its parent, the action used and the path cost

Explanation

Many nodes can represent the same state reached by different paths; the node also records how that state was reached.