Questions
DD2380 HT24 (AIHT24_2) Q1: Search
Single choice
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)?
Options
A.Queen 2, 5, 6 or 7
View Explanation
Verified Answer
Please login to view
Step-by-Step Analysis
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 explanationLog in for full answers
We've collected over 50,000 authentic exam questions and detailed explanations from around the globe. Log in now and get instant access to the answers!
Similar Questions
Using the numbers in brackets as heuristic values, what is the search path from node A to node I using the Hill Climbing algorithm?
考虑 8 皇后游戏。我们想使用爬山搜索来解决它。我们使用受到攻击的皇后对数作为启发式方法。下图显示了搜索中的初始状态。 如果我们想要移动后获得最佳的启发式值,我们应该移动哪个皇后(我们根据皇后所在的列来命名皇后,1、2、...、8)?
In a consumer society, many adults channel creativity into buying things
Economic stress and unpredictable times have resulted in a booming industry for self-help products
More Practical Tools for Students Powered by AI Study Helper
Making Your Study Simpler
Join us and instantly unlock extensive past papers & exclusive solutions to get a head start on your studies!