Lecture 3 Flashcards

Informed Search Algorithms

1
Q

What is an informed search algorithm?

A

An algorithm that uses problem-specific knowledge (heuristics) to search more intelligently for a goal state compared to uninformed methods.

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

What are the four performance measures for comparing search algorithms?

A

Completeness, Optimality, Time Complexity, Space Complexity.

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

How does Breadth-First Search (BFS) work, and what are its properties?

A

Explores all nodes level by level; it’s complete and optimal for uniform step costs but has high space complexity.

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

What is the main advantage of Iterative Deepening Search (IDS) over BFS and DFS?

A

Combines DFS’s low memory usage with BFS’s optimality.

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

What is the key difference between Greedy Best-First Search and A* Search?

A

Greedy uses h(n) (heuristic only), while A* uses f(n) = g(n) + h(n) (cost so far + heuristic).

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

What is a heuristic function?

A

A rule or measure used to estimate how close a node is to the goal.

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

What does it mean for a heuristic to be admissible?

A

It never overestimates the true cost to reach the goal, ensuring optimality.

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

Give two examples of heuristic functions.

A

Straight-Line Distance (SLD) and Manhattan Distance.

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

What issue can occur with Greedy Best-First Search, and why?

A

It may get stuck in loops or fail to find a solution because it doesn’t consider the cost so far (g(n)).

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

What is the difference between uninformed and informed search algorithms?

A

Uninformed search algorithms do not use additional problem-specific knowledge, while informed search algorithms use heuristics to guide the search process more effectively.

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

What is the fringe in a search algorithm?

A

The fringe is a data structure that stores nodes that are generated but not yet expanded during the search process.

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

When would you use a goal-driven approach over a data-driven approach?

A

Use a goal-driven approach when the goal is well-defined and the branching factor is smaller in the backward direction.

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

What is the main limitation of Depth-First Search (DFS)?

A

DFS may fail to find a solution if the search space is infinite, and it is not guaranteed to find the optimal solution.

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

How does Iterative Deepening Search handle memory differently compared to Breadth-First Search?

A

Iterative Deepening Search uses less memory by discarding nodes after each depth-limited iteration, while Breadth-First Search retains all nodes in memory.

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

Why is Greedy Best-First Search incomplete and not optimal?

A

It focuses only on the heuristic value (h(n)) without considering the cost so far (g(n)), which can lead to loops or dead ends.

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

Why is it important for a heuristic to be monotonic?

A

Monotonicity ensures that the estimated cost (heuristic) does not decrease as nodes are expanded, maintaining local admissibility and preventing suboptimal paths.

17
Q

How can the choice of heuristic impact the performance of A* search?

A

A good heuristic can significantly reduce the number of nodes expanded, improving efficiency, while a bad heuristic can increase computational cost or lead to incorrect results.

18
Q

What is the main advantage of A* Search over Greedy Best-First Search?

A

A* considers both the cost to reach a node (g(n)) and the estimated cost to reach the goal (h(n)), ensuring both completeness and optimality.

19
Q

How does Beam Search sacrifice solution quality for efficiency?

A

Beam Search limits the number of nodes stored and expanded by only considering the k best nodes at each level, which may miss the optimal solution.

20
Q

Which algorithm guarantees the least memory usage, and why?

A

Depth-First Search guarantees the least memory usage because it only stores nodes along the current path.

21
Q

How does stochastic beam search differ from traditional beam search?

A

Stochastic beam search introduces randomness when selecting nodes, which reduces the risk of getting stuck in local maxima.

22
Q

What is an evaluation function in informed search algorithms?

A

An evaluation function is a mathematical expression used to rank nodes during search, typically combining g(n) and h(n).

23
Q

What does it mean for a heuristic to be admissible?

A

It means the heuristic never overestimates the true cost to reach the goal, ensuring the solution is optimal.

24
Q

What is monotonicity in the context of heuristics?

A

Monotonicity ensures that for any node, the estimated cost to the goal is not less than the cost of reaching a successor plus the successor’s cost to the goal.

25
Q

What is Straight-Line Distance (SLD) and how is it used in search algorithms?

A

Straight-Line Distance (SLD) is the shortest distance between two points, used as an admissible heuristic in search algorithms.

26
Q

What is Manhattan Distance and when is it used as a heuristic?

A

Manhattan Distance measures the total number of horizontal and vertical steps required to reach the goal, commonly used in grid-based searches.

27
Q

What does it mean for an algorithm to be complete?

A

Completeness means the algorithm will always find a solution if one exists.

28
Q

What does it mean for an algorithm to be optimal?

A

Optimality means the algorithm guarantees finding the best (least-cost) solution.