Question: Q . 2 This single player puzzle has two types of tiles Horse ( H ) and Kangaroo ( G ) . The player starts
Q This single player puzzle has two types of tiles "Horse" H and "Kangaroo" G The player starts with a Horse tile and tries to move it to the empty spacetile and alternates between two types of tiles resulting in the position swapping with the empty tile. ie In the second move the player should move different tile, here any one Kangaroo tile & the empty tile are swapped and in third move any of the Horse tile is swapped position with the empty tile and so on Below defines the valid movesswaps allowed and corresponding action cost. The objective is to reach the goal state from the given initial state as shown.
Goal State
G G G
H H H
Initial State
H G
The two legal moves with respective costs are detailed below:
Way: A tile may swap with an adjacent empty location. This has a cost of
Way: A tile may only hop over one tile ahead or hop over two other tiles into the empty position to swap. This has a cost equal to the number of tiles jumped over. An additional step cost of is added in this move.
The two heuristic functions recommended for this problem from any arbitrary state are: Total number of misplaced Horses and Kangaroos tiles in the current state compared to the goal state.
H Manhattan distance of the empty tile in the current state compared to goal position.
View full document
a Expand & depict the search tree for up to exactly three levels. Given initial state can be assumed to be on level
b Among the above two defined heuristics H and H if you are restricted to choose only one of them, which one would you choose and why? Justify your choice with brief answer with appropriate numerical illustration wrt to the given problem.
c Apply Depth First Best First Search algorithm for the search results obtained from part a only till first closed list updates or till the goal is reached whichever is achieved the earliest. Show the status of OPEN and CLOSE list at each level and shown the step by step procedure as discussed in the class.
Marks
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
