Docsity

Space Complexity - Artificial Intelligence - Exam, Exams of Artificial Intelligence

Toggle sidebar
bg1
C P E / CSC 4 8 0 A R T I F I C I A L
I N T E L L I G E N C E
M I D T E R M FA L L 2 0 0 3
SECTI ON 1
PRO F. F RA NZ J. K U RF ES S
CAL PO L Y, C O MP U T E R SCIEN C E DE P A RT M E N T
This is the first Fall 2003 midterm exam for the CPE/CSC 480 class. You may use
textbooks, course notes, or other material, but you must formulate the text for your answers
yourself. The use of calculators or computers is allowed for viewing documents or for
numerical calculations, but not for the execution of algorithms or programs to compute
solutions for exam questions. The exam time is 1 hour minutes.
Student Name:
Signature:
Date:
pf3
pf4
pf5

Partial preview of the text

Download Space Complexity - Artificial Intelligence - Exam and more Exams Artificial Intelligence in PDF only on Docsity!

C P E / C S C 4 8 0 A R T I F I C I A L

I N T E L L I G E N C E

M I D T E R M FA L L 2 0 0 3

SECTION 1

PRO F. FRA N Z J. KU RF ES S

CAL PO L Y, COM P UTE R SC IEN CE DE PA RT MEN T

This is the first Fall 2003 midterm exam for the CPE/CSC 480 class. You may use textbooks, course notes, or other material, but you must formulate the text for your answers yourself. The use of calculators or computers is allowed for viewing documents or for numerical calculations, but not for the execution of algorithms or programs to compute solutions for exam questions. The exam time is 1 hour minutes.

Student Name:

Signature: Date:

PA RT 1: MU LTIP LE CH OI CE QUE S TIO NS

Mark the answer you think is correct. Unless otherwise noted, there is only one correct answer. Each question is worth 3 points. a) What is an omniscient agent?

โ‘ An agent that always selects the best action under the given circumstances.

โ‘ An agent that performs reasoning steps to select the next action.

โ‘ An agent that can explain its choice of an action.

โ‘ An agent that is capable of predicting the actual outcome of an action.

b) In the context of search algorithms, which of the following issues addresses the question of finding a solution to the problem if one exists?

โ‘ completeness

โ‘ time complexity

โ‘ space complexity

โ‘ optimality

c) In the context of search algorithms, which of the following issues is determined by the number of steps it takes to find a solution?

โ‘ completeness

โ‘ time complexity

โ‘ space complexity

โ‘ optimality

d) What is optimality with respect to search algorithms?

โ‘ An estimate of how many search steps it takes to find a solution.

โ‘ An estimate of how much information the algorithm needs to store for finding a solution.

โ‘ Provided that a solution exists, the algorithm will find it.

โ‘ If there is a distinction between the quality of goal states, the agent will find the best one.

e) On the basis of the general search method as described in the text book, which simple strategy results in uniform-cost - first search?

โ‘ append newly generated nodes at the beginning of the fringe (search queue)

โ‘ append newly generated nodes at the end of the fringe (search queue)

โ‘ insert newly generated nodes in the fringe (search queue) according to their path cost (lowest

values first)

โ‘ insert newly generated nodes in the fringe (search queue) according to their heuristic function

(lowest values first)

PA RT 3: GRI D SEA RCH

In this scenario, an agent is exploring a grid from the tile A designated as the starting point to the goal point, tile O. The shaded tiles are blocked. At each step, the agent can proceed from the current tile to one of the vertically or horizontally adjacent tiles; the agent can not move diagonally. If there are multiple successor tiles for a tile, the agent examines those tiles in alphabetical order. In the following parts, you need to apply different search algorithms to solve this traversal problem. For each of the algorithms, you need to do the following tasks:

  • Mark the sequence in which the tiles are visited. You can do this directly in the copy of the grid provided for each algorithm, e.g. by numbering the tiles in the order they are visited.
  • Draw the corresponding search tree. It might be advisable to draw the complete search tree first on a separate sheet of paper, and then copy the relevant parts to the exam sheet.
  • Fill in the table with the information about the search trace. Mark the newly added tiles in the frontier, e.g. by underlining them. (Note: The size of the table does not necessarily relate to the number of steps in the algorithm. Extend the table if necessary.) You can assume that your algorithms avoid cycles by not re-visiting previously inspected tiles. For your convenience, the environment configuration is repeated on the next pages.

A B C D

E F G H

I J K L

M N O P

A B C D

E F G H

I J K L

M N O P

a) Traverse the environment from the starting point A to the goal O according to the Depth-First Search method. [10 points] Step Current Tile Frontier 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

What are possible improvements for the above search methods for this type of environment (i.e. with a grid-based topology)? [5 points]

Total Points: