Informed Search Flashcards

1
Q

What is informed search?

A

A search algorithm that has a target goal state that it works towards

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

What is a search heurisitc?

A

A function that estimates how close a state is to a certain goal

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

What makes an admissible (optimistic) heuristic?

A

A heuristic h is admissible if:
0 <= h(n) <= h(n)
where h
(n) is the true cost to a nearest goal

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

How does a best first-search work?

A

Use an evaluation function for each node and determine the most desirable unexpanded node.

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

What is the best-first search implementation?

A

Fringe is a queue sorted in decreasing order of desirability

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

How does a greedy search work?

A

It estimates the cost from n to the closest goal, and expands the node the appears to be closest to the goal. The nearest goal for each state

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

Is greedy search complete?

A

No, most often it will reach dead-ends/infinite loops.

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

What is the time complexity of greedy search?

A

O(b^m) good heuristics can give dramatic improvement.

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

What is the space complexity of greedy search?

A

O(b^m) all nodes are kept in memory

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

Is greedy search optimal?

A

No (best first take can often lead to the wrong goal)

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

What is the premise of A* search?

A

To avoid expanding paths that are already expensive.

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

What is the evaluation function of A* search?

A

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

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

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

Does A* search use and admissible heuristic?

A

Yes, it never overestimates the distance

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

Is A* search optimal?

A

Yes, it will find a solution and the cheapest one

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

Is A* search complete?

A

Yes, unless there are infinitely many nodes with f <= f(G)

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

What is the time complexity of A* search?

A

O(b^d)

17
Q

What is the space complexity of A* search?

A

Keep all nodes in memory

18
Q

What is a heuristic function?

A

A function that calculates the cost of a path

19
Q

What conditions must be met for A* to find an optimal solution

A
  • The heuristic function must be admissible
  • must never overestimate the cost from n to goal