Week 4: Heuristic Search Flashcards

1
Q

What is a heuristic in AI search?

A

A rule of thumb or educated guess that estimates the cost from a given state to the goal.

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

Define h(n) in heuristic search.

A

h(n) is the estimated cost to reach the goal from node n.

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

What is the value of h(n) when n is a goal state?

A

h(n) = 0

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

What is best-first search?

A

An informed search strategy that selects the most promising node based on an evaluation function f(n).

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

What does f(n) represent in heuristic search?

A

An evaluation function that estimates the total cost of a solution path through node n.

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

What is greedy best-first search?

A

A search strategy that selects nodes with the lowest h(n) value, ignoring cost so far (g(n)).

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

What is the evaluation function for greedy best-first search?

A

f(n) = h(n)

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

What is A* search?

A

A search strategy using f(n) = g(n) + h(n), combining path cost and heuristic estimate.

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

What does g(n) represent in A* search?

A

The path cost from the start node to node n.

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

What is the evaluation function for A* search?

A

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

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

Why is A* search considered optimal?

A

Because it guarantees the lowest-cost solution if the heuristic is admissible.

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

What is an admissible heuristic?

A

A heuristic that never overestimates the cost to reach the goal.

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

What is a consistent (monotonic) heuristic?

A

A heuristic where h(n) ≤ c(n, a, n’) + h(n’) for all nodes, ensuring optimality in A*.

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

Is greedy best-first search complete?

A

No, it is not complete as it can get stuck in loops.

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

Is A* search complete?

A

Yes, if the branching factor is finite and step costs are non-negative.

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

What is the time and space complexity of greedy best-first search?

A

O(b^m), where b is branching factor and m is maximum depth.

17
Q

What is the main drawback of greedy best-first search?

A

It is not optimal and can lead to long detours or loops.

18
Q

What is a priority queue in heuristic search?

A

A data structure that selects the next node based on the lowest f(n) value.

19
Q

What is the heuristic used in the Romania route-finding example?

A

Straight-line distance to Bucharest.

20
Q

In A*, what happens if h(n) is always 0?

A

A* becomes equivalent to uniform-cost search.

21
Q

What is the benefit of using an informed search strategy?

A

It can dramatically reduce the number of nodes explored compared to uninformed search.

22
Q

What is local search in AI?

A

Search techniques that operate using a single current node and move to neighbors, e.g., hill climbing.

23
Q

Name two optimization-focused search algorithms.

A

Hill climbing and genetic algorithms.

24
Q

What is the difference between uninformed and informed search?

A

Uninformed search uses no problem-specific info, informed search uses heuristics to guide search.

25
What is the evaluation function in uniform-cost search?
f(n) = g(n)