Which of the following search algorithms is guaranteed to find the optimal solution to a problem if one exists?
29 views
- Depth-first search
- Breadth-first search
- A* search (Correct Answer)
- Hill climbing
Explanation
Answer: c. A* search
Explanation: A* search is an informed search algorithm that uses a heuristic function to guide the search towards the optimal solution. If the heuristic function is admissible and consistent, then A* search is guaranteed to find the optimal solution to a problem if one exists.