
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Material Type: Assignment; Class: Artificial Intelligence; Subject: Computer Science; University: University of the Pacific; Term: Spring 2007;
Typology: Assignments
1 / 1
This page cannot be seen from the preview
Don't miss anything!
COMP151 Spring 2007 Assignment 1 due Feb 7, 2007 Implement a search algorithm to find a path through a maze. The maze world is a grid of cells. Each cell in the grid is either passable or impassable. Possible actions are: move up, move down, move right and move left. It is not legal to move into an impassable cell. It is not legal to move off the grid. Your program should be able to solve general mazes, but you must demonstrate that it can solve the following maze: XXXXXXXXXXXXXXXXXX XX..........XXXGXX XX..XX.XXXXXXXX.XX XXXX.....XXXXXX.XX XXXX.XX..XXXXXX.XX XXXX.XX.........XX X....XXXXXXXXXXXXX XXXX...........XXX XXXXXXXXXXXXXX..SX XXXXXXXXXXX....XXX In this maze, ‘X’ is an impassable cell, ‘.’ is a passable cell, ‘S’ is the start cell (initial position) and ‘G’ is the goal cell. You may implement your solution any programming language. You may reuse code or algorithms from any source (including the textbook website http://aima.cs.berkeley.edu/code.html) as long as you give an appropriate citation indicating the source of reused code.