Which of the following is a technique used in search algorithms to avoid getting stuck in local optima?
28 views
- Heuristic evaluation
- Hill climbing (Correct Answer)
- Depth-first search
- Breadth-first search
Explanation
Answer: b. Hill climbing
Explanation: Hill climbing is a search algorithm that always moves to the next best solution in the search space. However, this approach can sometimes lead to getting stuck in local optima, where the algorithm is unable to find a better solution. To avoid this, hill climbing can be combined with random restarts or other techniques that introduce randomness into the search process.