Tree-Search algorithms Flashcards

1
Q

What characterizes Best-first search (greedy search)

A

It first expands the node with minimum value of some evaluation function, f(n)

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

What characterizes breadth-first search (BFS).

A

Uses FIFO. Expands one layer at a time.

Optimal: Yes
Time: O(b^d)
Space: O(b^d)

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

What characterizes Depth-first search (DFS)?

A

Uses LIFO. Goes as far down it can, and backtracks to expand rest of the nodes.

Optimal: No (returns first solution it finds.)
Time: O(b^d)
Space: O(bm), where m is branching factor and m is maximum depth.

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

What characterizes iterative deepening search?

A

Uses depth-first search on a limited depth. Increases depth with each iteration until it finds solution.

Optimal: Yes.
Time: O(b^d)
Space: O(bm)

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

What is the idea with bidirectional search?

A

Saving time, since b^{d/2} + b^{n/2} &laquo_space;b^{d}

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

What does bidirectional search do?

A

Searches both forward from initial state and backwards from goal state, hoping they meet.

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

What is meant by a heuristic function?

A

A function that estimates the cost of the cheapest path from the state at node n to a goal state.

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

What characterizes greedy best-first search?

A

Expands node with lowest h(n) value. (The value that appears to be closest to goal.)

Optimal: No
Complete: Yes (but no in infinite state-spaces)

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

What characterizes A* search?

A

Uses the evaluation function: f(n) = g(n) + h(n)

Where g(n) is the cost from initial state to n, and h(n) is the estimated cost of shortest path from n to goal state.

Complete: Yes
Cost optimal: Yes (depends on quality of heuristic)

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

What is the requirement for the heuristic function in informed search algorithms?

A

The heuristic must not overestimate.

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

What makes satisficing search different from informed search?

A

Satisficing search explores fewer nodes at the cost of possibly finding a sub-optimal but “good enough” solution.

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

What makes weighted A* different from normal A* search?

A

The heuristic is valued more heavily:
f(n) = g(n) + W * h(n) for W > 1

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

List ways memory-bounded search saves memory.

A

By storing a given state once in either the frontier or reached-lists.

Removing states from reached when we know they are not needed.

Having a reference counter, for the number of times a state has occurred. (For only storing a given state once.)

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

What characterizes the Beam search-group?

A

It limits the size of the frontier. Keeps on the k best nodes with the best f(x)-scores, and removes the rest.

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

What makes recursive best-first search different from best-first search.

A

Recursive best-first search uses a variable to keep track of the f(x) value of the best alternative path available from any ancestor of the current node.

Goes back if the node exceeds the value of the variable.

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