Question: Question 4 Search ( a ) Consider a problem with two possible actions: a and b . The cost of a is 2 and the
Question Search
a Consider a problem with two possible actions: a and The cost of is and the cost of is The shallowest goal node can be at any level of the tree and the problem solution may involve a sequence of these actions. Is breadthfirst search optimal to solve this problem, given this cost function? Justify your answer.
marks
b An agent must traverse a maze in order to find and collect a treasure. This task can be formulated as a search problem as in the following:
Initial state: the agent is in
Goal test: the agent is in automatically collects the treasure
Actions: move moves the agent from state to a state that is to the left of or the right of or above or below state
Transition model: see figure below. States depicted in black, eg A are considered obstacles and cannot be traversed by the agent.
Path cost: each action has cost
Generate the tree until the goal node is found.
The heuristic to be used is the following:
where represents the Manhattan distance between node and the goal node When comparing the first coordinate of each state, assume the following values for each of the possible letters in the grid: and Order of expansion: if produces the same lowest value for two nodes, expand the nodes in alphanumerical order eg expanded before Additionally, if also produces the same lowest value for two nodes, keep the the node that has been added last into the frontier. Recall that the evaluation function is the sum of the cost to reach node and the heuristic calculated at node
Write down the following:
Search tree produced by indicating the and values of each node ; which nodes are in the frontier when the algorithm terminates; and which nodes have been pruned as a result of the above instructions.
The solution retrieved by and its cost.
The sequence of nodes visited by in the order they are visited. Note: you can identify a node through its state, eg or
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
