Intro To Artificial Intelligence Assignment 1: Search Algorithms
Intro To Artificial Intelligence Assignment 1: Search Algorithms
Summer, 2021
General Instructions
Teams: Assignment should be completed by teams of two students. No additional credit for
working individually. Use this form https://forms.gle/nFWwmcncohXTVbDE7 to inform the TAs
you either a) have a team (only one member of the team) b) looking for a team or c) working
alone (discourage).
Submission: Submit a PDF file to Sakai. For the programming questions, submit your code
in a compressed file. DO NOT submit documents in Word, raw text, images, etc. One submission
per team is enough. Be sure to submit before the deadline (see Sakai). You have unlimited
submission, partial submissions are encourage! Code submitted must run on ilab machines in
order the be graded.
Program Demonstrations: Each team will have 10 minutes to demonstrate the implementa-
tion to one TA as well as answer questions on a date scheduled after the deadline. Be sure to
prepare ahead to show the program running.
LATEX: Extra credit (10%) for submitting answers using LATEX. If you choose to do this, submit
all files (*.tex) as a separate compressed file.
Plagiarism: Each team must implement and answer questions independently. Indicate any
external sources used for your submission. If plagiarism is detected, the assignment will receive
0 points.
Description
Consider a grid world like the one shown in Fig. 1, where an agent can move freely in the non-
blocked cells. The objective of this assignment is to implement and compare search algorithms
that will allow the agent to move from a given initial state to given goal state without colliding.
1
CS440: Intro to AI
Algorithms:
0. Select one of: Breadth-first search or Uniform-cost search
1. Select one of: Depth-limited, Iterative deepening depth-first search or bidirectional search
2. A* using one of h0 , h1 or h2
3. A* using one of h3 , h4 or h5
2/3
CS440: Intro to AI
Heuristics:
• h0 - Euclidean distance
• h1 - Manhattan distance
1 Questions
Setup [5 points]: (Code) Be able to read the files and show the grid world with the initial state of
the agent.
A well defined problem [5 points]: (pdf) Describe the problem to be solved. What kind of task
environment is this?
Algorithm 0 [10 points]: (Code) Implement and run the selected algorithm on 50 environments.
Algorithm 1 [10 points]: (Code) Implement and run the selected algorithm on 50 environments.
Algorithm 2 [10 points]: (Code) Implement and run the selected algorithm on 50 environments.
Algorithm 3 [10 points]: (Code) Implement and run the selected algorithm on 50 environments.
Algorithm 4 [10 points]: (Code) Implement and run the selected algorithm on 50 environments.
Analysis [20]: (pdf) Answer (and explain why / why not):
• Is the implemented Algorithm 0 complete? optimal? What about the other one?
• For algorithm 4, is the selected heuristic consistent? admissible? Explain how the choice
was made and if it is better than the other ones.
Results [20 points]: (pdf) Show, compare (plot) and explain your results.
3/3