Chapter 4: Heuristic Search Flashcards

1
Q

Describe the Best-First Search algorithm

A

Similar to Breadth-First Search and Depth-First Search with lists of open and closed-state nodes. However, it uses a priority queue to retrieve higher-priority nodes first based on a heuristic function that estimates the cost of
a path to the goal state.

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

Heuristics

A

Rules for choosing those branches in a state space that are most likely to lead to an acceptable problem solution

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

Evaluation function

A

A function used to estimate the value of a particular state.

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

Admissibility

A

Heuristics that find the shortest path to a goal whenever it exists.

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

Monotonicity

A

When the same state is not found later in the search at a cheaper cost (and with a shorter path from the start state).
i.e. Algorithm A = Algorithm A*
i.e. estimated = actual

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

Informedness

A

A heuristic’s estimation is more informative if it is closer to the actual cost than another heuristic.

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

Algorithm A

A

Uses an evaluation function to estimate the cost of reaching the goal and prioritizes nodes based on their estimated cost, expanding the node with the lowest cost.

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

Algorithm A*

A

When algorithm A is used with an evaluation function where the estimated cost to the goal is less than or equal to the cost of the minimal path to the goal.

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

Compare Depth-First Search, Breadth-First Search, and Best-First Search

A

Algorithms that are used to search data structures to find a “goal state”. DFS uses a stack to explore as far down each path before backtracking, BFS uses a queue to explore all
nodes at the current depth before moving on to the next depth, and best-first search uses a priority queue and heuristic function to estimate the cost of paths and then
moves towards the most cost-effective path.

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

What is the Best-First Search Algorithm?

A
  1. Initialize:
    • Create a priority queue “OPEN”
    • Add start node to “OPEN”
    • Create a set “CLOSED”
  2. Loop:
    • If “OPEN” is empty, fail
    • Remove lowest-priority node from “OPEN” as “current”
    • If “current” is the goal, return path
    • Add “current” to “CLOSED”
    • For each neighbour of “current”:
      • If not in “CLOSED”:
        • Calculate tentative cost
        • Add neighbour to “OPEN” with updated priority
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Algorithm A vs. Algorithm A*

A

A = estimation
A* = actual

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