Professional Documents
Culture Documents
Solving Problems by Searching
Solving Problems by Searching
(c) A* is of no use in robotics because percepts, states, and actions are continuous.
FALSE.
Eventhough in robotics, the percepts, states and actions are continuous, the way they actually perform in real-time is different.
Firstly, all the state spaces will be converted into discrete from continuous, before they are put into actions. Also, the cahnges in the
aspects such as percepts and actions are mainly done after the search operation happens.
(d) Assume that a rook can move on a chessboard any number of squares in a straight line, vertically
or horizontally, but cannot jump over other pieces. Manhattan distance is an admissible heuristic
for the problem of moving the rook from square A to square B in the smallest number of moves.
FALSE.
AIMA 3.18. Describe a state space in which iterative deepening search performs much worse than
depth-first search (for example. O(n2 ) vs. O(n)).
1
AIMA 3.21. Prove each of the following statements, or give a counterexample:
(a) Breadth-first search is a special case of uniform-cost search.
2 Search Problem 1
Misc 1. Consider the two graphs shown in Figures 1 and 2. In what order does BFS, DFS and UCS
(assume you use the graph search version) expand the nodes for each graph (assume that nodes are
added to the stack/queue in alphabetical order)? The agent starts at node s and must reach node g.In
the queue/stack column of the table, write all the viable nodes that are reachable from the current
node and mention the current node in the currNode column. For instance, the reachable nodes from
s are i and h(for example purpose). So, queue/stack: i,h and current node = s.Please keep in mind
the rules of stacks and queues while writing the nodes which are reachable(order matters) (Note: All
iterations might not be necessary.)
GRAPH A
Table 1: Answer:
2
Figure 1: Graph A
Figure 2: Graph B
3
3 Search Problem 2
Consider the graph shown in the below figure. In what order does A* expand the nodes for each graph
(assume that nodes are added to the stack/queue in alphabetical order)? The agent starts at node s
and must reach node g.Please write the nodes expanded while performing A* and an explanation(4-
5 words) for each node. For instance, as per the performance of A*, t expands to l. So write: t
−− > l because cost is 2 and heuristic is 1.(the above example is not related to the grave and used for
instantaneous purposes only). Please change the reason as per the working of A*. (Note: All iterations
might not be necessary.)