Docsity

Midterm Questions - Artificial Intelligence | CSCI 5582, Exams of Computer Science

Partial preview of the text

Download Midterm Questions - Artificial Intelligence | CSCI 5582 and more Exams Computer Science in PDF only on Docsity!

Name

ID#

CSCI 5582 Midterm

1. These questions address the topic of Intelligent Agents.

(a) 5 Points

True or False: To be an ideal agent, an agent program must

explicitly contain a performance measure.

(b) 5 Points

True or False: Goal-based agents must be able to reason about

the relative desirability of multiple goal states.

(c) 5 Points

An environment in which the next state is completely determined

by the current state and the actions of the agent is said to be:

a. Exciting

b. Static

c. Discrete

d. Deterministic

(d) 5 Points

Which of the following kinds of agents reason about the results

of their actions?

a. Table-based

b. Reflex-based

c. Goal-based

d. All of the above

(e) 5 Points

True or False: A search algorithm that uses a heuristic can not

be optimal.

(f) 5 Points

True or False: A* search keeps its queue sorted based on the

value of its heuristic function (h).

(g) 20 Points

Identify the flaw that Iโ€™ve introduced into the DFS-Contour func-

tion in the following IDA* code and explain why it is a flaw.

function IDA*( problem) returns a solution sequence inputs: problem, a problem local variables: f-limit, the current f - Cost limit root, a node

root โ† Make-Node(Initial-State[problem]) f-limit โ† f - Cost[root] loop do solution, f-limit โ† DFS-Contour(root, f-limit) if solution is non-null then return solution if f-limit = โˆž then return failure; end

function DFS-Contour(node, f-limit) returns a solution sequence and a new f - Cost limit inputs: node, a node f-limit, the current f - Cost limit local variables: next-f, the f - Cost limit for the next contour, initially โˆž

if Goal-Testproblem then return node, f-limit if f - Cost[node] > f-limit then return null, f - Cost[node] for each node s in Successors(node) do solution, new-f โ† DFS-Contour(s, f-limit) if solution is non-null then return solution, f-limit next-f โ† Min(next-f, new-f); end return null, next-f