Lecture 4 Flashcards

1
Q

Which is a graph and which is a tree for state space and search space?

A

State space is a graph, and search space is a tree.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the frontier nodes?

A

A set of nodes that have been reached but not expanded.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the fundamental difference in search algorithms? (code wise)

A

How they pick the next node to expand from the frontier

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a Uniformed Search?

A

A search that has no additional information about states beyond what has been provided in the problem formulation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How does DFS work?

A

Expand the deepest node first using a LIFO stack.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Is DFS complete?

A

No, if the graph is infinitely large, it could forever expand in one direction away from the goal.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Is DFS optimal?

A

No, it finds the leftmost solution regardless of cost and depth.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How does BFS work?

A

Explores the shallowest node first using a FIFO queue.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Is BFS complete?

A

Yes, the depth must be finite if a solution exists.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

When is BFS optimal?

A

when all costs are 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

When will BFS outperform DFS? What about other way?

A

BFS better for finding close goals, DFS better for “left” goals.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is iterative Deepening Search?

A

Runs repeated Depth limited searches on each layer. (research more, dont understand it vs BFS)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Does BFS find the shortest path?

A

No, it finds the least number of actions! Not the lease cost path!

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How does uniform cost search work?

A

It processes the cheapest node at a time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Is uniform cost search complete and optimal?

A

Yes!

How well did you know this?
1
Not at all
2
3
4
5
Perfectly