题目
题目

DD2380 HT24 (AIHT24_2) Q1: Search

单项选择题

Consider the game of 8-queens. We want to solve it using hill climbing search. We use the number of pairs of queens under attack as the heuristic. The figure below shows the initial state in the search. Which queen should we move if we want the best heuristic value after the move (we name the queens after their column, 1,2,...,8)?

选项
A.Queen 2, 5, 6 or 7
题目图片
查看解析

查看解析

标准答案
Please login to view
思路分析
First, restating the scenario: we are solving the 8-queens problem with hill climbing, using the heuristic that counts the number of pairs of queens under attack. The question asks which queen should be moved to achieve the best heuristic value after the move, with queens labeled by their column numbers 1 through 8. The provided answer option is: Queen 2, 5, 6 or 7. Now, let's analyze the conceptually possible moves and what the heuristic measures. In hill climbing, we evaluate moving each queen within its column to any other row and compute the resulting total number of attacking pairs. The goal is to pick a move that yields the smallest number of such......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!