Weight: 5%
Due: Thursday, February 10th, by 23:59
Group Size: 1-2
Programming Language: LISP or Another Language of your choice
LISP is the second oldest high-level programming language and was the leading language in AI research from its infancy. It has greatly influenced other languages and computer science in general, for example by pioneering the tree data structure because basic AI problem solving techniques rely on its generation and manipulation. It is, therefore, one of the best languages of choice for a “Blind Search” programming assignment.
This assignment is an opportunity to experiment with basic search strategies that underlie many important problem solving techniques. But also consider the assignment an opportunity to write some classic LISP code.
However, you are absolutely free to use a programming language of your choice (i.e. Python, Java, C++, …). In that case, however, you will not be able to take advantage of the helper code provided in step 1, since it is only written in LISP.
You have an agent in a tiled environment of size W*H. The goal of the agent is to capture a bag of gold that is sitting somewhere in that environment. The agent can travel horizontally or vertically across clear tiles, but some of the tiles will actually contain impassable walls. Consider the edges of the environment also impassable.
The environment is fully observable and static, meaning that the agent can explore its full state space before executing its moves. The difficulty lies in the fact that it must try to come up with an optimal path from its current location to the bag of gold. To come up with this path, it should approach this as a search problem.
The project consists of the following steps:
search.lisp
as a starting point. It contains some useful structures and functions. Read the comments above each function in order to have an overall idea before you start.Submit a single zip or rar file into MySchool with all of the code required to run your search tests. Include a readme.txt file that explains how to run the tests (when run, each test should print out the performance measures). NOTE: if you use a compiled language (i.e. C or C++), in addition to the source code you have to submit the binary compiled version too.
It is not necessary to visually show chosen paths (or even executing them for the agent), although such visualization would of course be nice when analyzing the characteristics of each strategy.