ACSC 368 - Artificial Intelligence: Coursework 1
ACSC 368 - Artificial Intelligence: Coursework 1
Recall the ‘Blocks World’ problem from Homework 1. We can use the following
evaluation and cost functions in solving it:
Evaluation function
Since in our goal state all blocks are on p3, our evaluation function can be defined as:
So for example the evaluation value of the state [on(a,p1), on(b,p2)] will be 2 and that
of the state [on(a,p3), on(b,p2)] will be 1. (The evaluation value of the goal state will
of course be 0.)
Cost Function
We calculate the cost of transitioning from one state to another in terms of the time it
takes to move a block. It is assumed that it takes 2 minutes to move a block to an
adjacent position and 3 minutes to move a block from either p1 or p3 to the position at
the other end (i.e. p3 or p1 respectively). So our cost function can be defined as:
Using this information (wherever needed) develop the search tree created by each of
the following search algorithms for this problem, making clear the order in which
states are expanded:
(a) Depth-first
(b) Breadth-first
(c) Hill-climbing
(d) Best-path. In this case you are also required to detail the path-lists considered by
the algorithm, as well as the ones resulting from the expansion of each path.