Week 3 (Chapter 3) - Informed Search Methods Flashcards

1
Q

What is “Best-first search”

A

Idea is to use an ‘evaluation function’ for each node to estimate the “desirability” of the particular node.

  • Expand most desirable UNEXPANDED node
    e. g. Greedy search
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is “Greedy search”

A

Greedy search expands the node that appears to be closest to goal. Only considers the most immediate depth.

Evaluation function h(n)
(heuristic) = estimate cost from n to goal

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

What are the properties of “Greedy search”

A

Complete - No, can get stuck in loops. If in finite space with repeated-state checking, it can be complete.

Time - O(b^m), but a good heuristic can have dramatic impact

Space - O(b^m), keeps all nodes in memory

Optimal - No

b = maximum branching factor of the search tree
m = maximum depth of the state space (may be infinite)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is “A* search”

A

Idea is to avoid expanding paths that are already expensive

Evaluation function f(n) = g(n) + h(n)

g(n) = cost so far to reach n (path cost)
h(n) = estimated cost to goal from n
f(n) = estimated total cost of path through n to goal

A* search uses an admissible heuristic
i.e., h(n) <= h(n) where h(n) is the true cost from n

  • Never overestimates the actual road distance
  • Therefore A* search is optimal
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Give proof that A* is optimal

A

Suppose some suboptimal goal G2 has been generated and is in the queue. Let n be an unexpanded node on a shortest path to an optimal goal G.

f(G2) = g(G2) since h(G2) = 0
____> g(G) since G2 is suboptimal
____≥ f(n) since h is admissible

Since f(G2) > f(n), A∗ will never select G2 for expansion

A* expands nodes in order of increasing f value

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

What are the properties of A* search

A

Complete - Yes, unless there are infinitely many nodes with f <= f(g)

Time - Exponential

Space - O(b^d) Keeps all nodes in memory

Optimal - Yes

b = maximum branching factor of the search tree
d = depth of the least-cost solution
m = maximum depth of the state space

Because A* search is optimal, it doesn’t go down m depths deep

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

What are “Heuristics”

A

Think of them as evaluation functions to be used at each node to better inform the search tree of the optimal path to take

e. g. for the 8-puzzle;
- Number of misplaced tiles
- Total Manhattan distance (# of squares from desired location of each tile)

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

Elaborate on “Dominance” for heuristics

A

If h1(n) >= h2(n) for all n, then h1 DOMINATES h2 and is better for search

  • Do this because we don’t want a heuristic which can be too expensive to compute at each node
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are “Relaxed problems”?

A

How to approach deriving an admissible heuristic.

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

What are “Iterative improvement algorithms?”

A

In many optimisation problems, path is irrelevant; the goal state itself is the solution
- This is very costly

Alternatively, we can do this iteratively by keeping a single “current” state, and try to improve it

Thus, we can solve this with CONSTANT SPACE

e.g. Traveling salesperson or n-queens

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

What is “Hill-climbing”

A

Iteratively search until a maxima is found, however, can get stuck in local maxima depending on the initial state

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

What’s an example of “Best-first search”

A

Greedy search

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