• Keine Ergebnisse gefunden

Foundations of Artificial Intelligence 14. State-Space Search: Analysis of Heuristics Malte Helmert

N/A
N/A
Protected

Academic year: 2022

Aktie "Foundations of Artificial Intelligence 14. State-Space Search: Analysis of Heuristics Malte Helmert"

Copied!
15
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

14. State-Space Search: Analysis of Heuristics

Malte Helmert

University of Basel

March 24, 2021

(2)

State-Space Search: Overview

Chapter overview: state-space search 5.–7. Foundations

8.–12. Basic Algorithms 13.–19. Heuristic Algorithms

13. Heuristics

14. Analysis of Heuristics 15. Best-first Graph Search

16. Greedy Best-first Search, A, Weighted A 17. IDA

18. Properties of A, Part I 19. Properties of A, Part II

(3)

Properties of Heuristics

(4)

Perfect Heuristic

Definition (perfect heuristic)

LetS be a state space with statesS.

Theperfect heuristicfor S, written h, maps each states ∈S to the cost of anoptimal solutionfor s.

remark: h(s) =∞ if no solution for s exists German: perfekte Heuristik

(5)

Properties of Heuristics

Definition (safe, goal-aware, admissible, consistent) LetS be a state space with statesS.

A heuristich forS is called

safe ifh(s) =∞ for all s ∈S with h(s) =∞ goal-aware ifh(s) = 0 for all goal statess admissible ifh(s)≤h(s) for all states s ∈S

consistent ifh(s)≤cost(a) +h(s0) for all transitions s −→a s0

German: sicher, zielerkennend, zul¨assig, konsistent

(6)

Examples

(7)

Properties of Heuristics: Examples

Which of our three example heuristics have which properties?

Route Planning in Romania straight-line distance:

safe goal-aware admissible consistent Why?

(8)

Properties of Heuristics: Examples

Which of our three example heuristics have which properties?

Blocks World misplaced blocks:

safe?

goal-aware?

admissible?

consistent?

(9)

Properties of Heuristics: Examples

Which of our three example heuristics have which properties?

Missionaries and Cannibals people on wrong river bank:

safe?

goal-aware?

admissible?

consistent?

(10)

Connections

(11)

Properties of Heuristics: Connections (1)

Theorem (admissible =⇒safe + goal-aware)

Let h be an admissible heuristic.

Then h is safe and goal-aware.

Why?

(12)

Properties of Heuristics: Connections (2)

Theorem (goal-aware + consistent =⇒ admissible)

Let h be a goal-aware and consistent heuristic.

Then h is admissible.

Why?

(13)

Showing All Four Properties

How can one show most easily that a heuristic has all four properties?

(14)

Summary

(15)

Summary

perfect heuristich: true cost to the goal

important properties: safe,goal-aware,admissible,consistent connectionsbetween these properties

admissible =safe and goal-aware goal-aware and consistent =admissible

Referenzen

ÄHNLICHE DOKUMENTE

breadth-first search ( this chapter) uniform cost search ( Chapter 11) depth-first search ( Chapter 12) depth-limited search ( Chapter 12) iterative deepening search ( Chapter

breadth-first search optimal if all action costs equal otherwise no optimality guarantee example:.. remedy: uniform

space complexity O(bm) if m maximal search depth reached low memory complexity main reason why depth-first search interesting despite its disadvantages.. Depth-first

heuristics estimate distance of a state to the goal can be used to focus search on promising states soon: search algorithms that

Helmert (University of Basel) Foundations of Artificial Intelligence March 24, 2021 2 / 16.. State-Space

In IDDFS, we grow the limit from the smallest limit that gives a non-empty search tree (0) by 1 at a time. This usually leads to exponential growth of

in every clause, choose the variables randomly literals positive or negative with equal probability critical parameter: #clauses divided by #variables phase transition at ratio ≈

Alpha-Beta Search: Idea idea: Use two values α and β during minimax depth-first search, such that the following holds for every recursive call: If the utility value in the