Explore the fundamentals of heuristic search algorithms with questions on Greedy, Hill-Climbing, and Beam Search techniques. Assess your understanding of their strategies, advantages, and practical applications in artificial intelligence and problem-solving.
Which best describes the primary purpose of a heuristic function in search algorithms such as Greedy and Hill-Climbing search?
Explanation: The heuristic function is designed to estimate the cost or distance from the current state to the goal, guiding the algorithm's choices. It does not check for loops or generate random moves; those functions pertain to different parts of the algorithm or other algorithms entirely. Also, the use of a heuristic does not guarantee finding the shortest path, since greedy and hill-climbing algorithms are not always optimal.
What is a defining characteristic of the Greedy Best-First Search algorithm when solving a route-finding problem?
Explanation: Greedy Best-First Search selects the node that appears closest to the goal according to the heuristic function, specifically seeking the lowest heuristic value. It does not necessarily evaluate all nodes or restrict itself to neighbors with lower path costs. While it may avoid cycles, avoiding all repeated nodes is not guaranteed by this strategy alone.
How does the Hill-Climbing search algorithm primarily differ from Greedy Best-First Search?
Explanation: Hill-Climbing is a local search and evaluates only immediate neighboring states, whereas Greedy Best-First Search can select the most promising node from the entire frontier. Neither algorithm guarantees an optimal solution, so the second option is incorrect. Both use a fixed heuristic, not a random one, and neither explores all possible paths exhaustively.
In Beam Search, what does the 'beam width' parameter control during the search process?
Explanation: Beam width specifies how many of the most promising nodes (according to the heuristic) are retained at each level during Beam Search. It does not determine the length of the final solution path or the search depth explicitly. The beam width is also unrelated to the actual values produced by the heuristic function.
Which limitation is commonly associated with the Greedy Best-First Search algorithm?
Explanation: Greedy Best-First Search may revisit nodes or overlook the optimal path due to relying solely on the heuristic. It doesn't require memory for every path explored (as with exhaustive algorithms), and it does use heuristic guidance. The claim that it always solves problems optimally is incorrect.
What is a common drawback of the basic Hill-Climbing algorithm?
Explanation: Hill-Climbing often gets stuck at local maxima or plateaus where no neighboring state is better, potentially missing the global optimum. It certainly does not guarantee finding the global maximum, and it does use heuristic information to make local decisions. A complete map is not required for local evaluation.
In which scenario might Beam Search offer better performance compared to full Breadth-First Search?
Explanation: Beam Search restricts memory usage by maintaining only a fixed number of best candidate nodes, making it practical when resources are limited. In cyclic graphs or with inaccurate heuristics, effectiveness can decline. If all paths are equally good, Beam Search provides little advantage over exhaustive searching.
Which statement about heuristic functions is correct in the context of these search algorithms?
Explanation: An admissible heuristic is defined by its property of never overestimating the real cost to reach the goal, crucial in some informed search algorithms. Heuristics do not always return zero and are not limited to backward search. Finally, using a heuristic alone does not guarantee the search algorithm's completeness.
Which technique can help the Hill-Climbing algorithm escape from plateaus or local maxima?
Explanation: Random restarts enable Hill-Climbing to begin the search anew from different random positions, helping to overcome getting stuck at plateaus or local maxima. Reducing beam width is to modify Beam Search, not Hill-Climbing. Both using no heuristic and always picking the lowest cost path pertain to other search methods and do not address this algorithm's primary limitation.
Which statement best distinguishes Beam Search from basic Greedy and Hill-Climbing algorithms?
Explanation: Beam Search preserves several top-scoring candidates at every level, increasing diversity in possible solutions, whereas Greedy and Hill-Climbing generally pursue a single path at a time. None of these algorithms guarantee the shortest path and both Greedy and Hill-Climbing are heuristic-based. Beam Search does not ignore heuristic values, but uses them to select the top candidates.