• Keine Ergebnisse gefunden

14. State-Space Search: Analysis of Heuristics

N/A
N/A
Protected

Academic year: 2022

Aktie "14. State-Space Search: Analysis of Heuristics"

Copied!
4
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Foundations of Artificial Intelligence

14. State-Space Search: Analysis of Heuristics

Malte Helmert

University of Basel

March 24, 2021

M. Helmert (University of Basel) Foundations of Artificial Intelligence March 24, 2021 1 / 16

Foundations of Artificial Intelligence

March 24, 2021 — 14. State-Space Search: Analysis of Heuristics

14.1 Properties of Heuristics 14.2 Examples

14.3 Connections 14.4 Summary

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

State-Space Search: Overview

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

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

I 13. Heuristics

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

I 16. Greedy Best-first Search, A

, Weighted A

I 17. IDA

I 18. Properties of A

, Part I I 19. Properties of A

, Part II

M. Helmert (University of Basel) Foundations of Artificial Intelligence March 24, 2021 3 / 16

14. State-Space Search: Analysis of Heuristics Properties of Heuristics

14.1 Properties of Heuristics

M. Helmert (University of Basel) Foundations of Artificial Intelligence March 24, 2021 4 / 16

(2)

14. State-Space Search: Analysis of Heuristics Properties of Heuristics

Perfect Heuristic

Definition (perfect heuristic)

Let S be a state space with states S .

The perfect heuristic for S, written h , maps each state s ∈ S to the cost of an optimal solution for s .

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

M. Helmert (University of Basel) Foundations of Artificial Intelligence March 24, 2021 5 / 16

14. State-Space Search: Analysis of Heuristics Properties of Heuristics

Properties of Heuristics

Definition (safe, goal-aware, admissible, consistent) Let S be a state space with states S.

A heuristic h for S is called

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

I consistent if h(s) ≤ cost(a) + h(s 0 ) for all transitions s − → a s 0 German: sicher, zielerkennend, zul¨ assig, konsistent

M. Helmert (University of Basel) Foundations of Artificial Intelligence March 24, 2021 6 / 16

14. State-Space Search: Analysis of Heuristics Examples

14.2 Examples

M. Helmert (University of Basel) Foundations of Artificial Intelligence March 24, 2021 7 / 16

14. State-Space Search: Analysis of Heuristics Examples

Properties of Heuristics: Examples

Which of our three example heuristics have which properties?

Route Planning in Romania straight-line distance:

I safe I goal-aware I admissible I consistent Why?

M. Helmert (University of Basel) Foundations of Artificial Intelligence March 24, 2021 8 / 16

(3)

14. State-Space Search: Analysis of Heuristics Examples

Properties of Heuristics: Examples

Which of our three example heuristics have which properties?

Blocks World misplaced blocks:

I safe?

I goal-aware?

I admissible?

I consistent?

M. Helmert (University of Basel) Foundations of Artificial Intelligence March 24, 2021 9 / 16

14. State-Space Search: Analysis of Heuristics Examples

Properties of Heuristics: Examples

Which of our three example heuristics have which properties?

Missionaries and Cannibals people on wrong river bank:

I safe?

I goal-aware?

I admissible?

I consistent?

M. Helmert (University of Basel) Foundations of Artificial Intelligence March 24, 2021 10 / 16

14. State-Space Search: Analysis of Heuristics Connections

14.3 Connections

M. Helmert (University of Basel) Foundations of Artificial Intelligence March 24, 2021 11 / 16

14. State-Space Search: Analysis of Heuristics Connections

Properties of Heuristics: Connections (1)

Theorem (admissible = ⇒ safe + goal-aware) Let h be an admissible heuristic.

Then h is safe and goal-aware.

Why?

M. Helmert (University of Basel) Foundations of Artificial Intelligence March 24, 2021 12 / 16

(4)

14. State-Space Search: Analysis of Heuristics Connections

Properties of Heuristics: Connections (2)

Theorem (goal-aware + consistent = ⇒ admissible) Let h be a goal-aware and consistent heuristic.

Then h is admissible.

Why?

M. Helmert (University of Basel) Foundations of Artificial Intelligence March 24, 2021 13 / 16

14. State-Space Search: Analysis of Heuristics Connections

Showing All Four Properties

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

M. Helmert (University of Basel) Foundations of Artificial Intelligence March 24, 2021 14 / 16

14. State-Space Search: Analysis of Heuristics Summary

14.4 Summary

M. Helmert (University of Basel) Foundations of Artificial Intelligence March 24, 2021 15 / 16

14. State-Space Search: Analysis of Heuristics Summary

Summary

I perfect heuristic h : true cost to the goal

I important properties: safe, goal-aware, admissible, consistent I connections between these properties

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

M. Helmert (University of Basel) Foundations of Artificial Intelligence March 24, 2021 16 / 16

Referenzen

ÄHNLICHE DOKUMENTE

recognize duplicates: when a state is reached on multiple paths, only keep one search node search nodes correspond 1:1 to reachable states search tree bounded, as number of states

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

Missionaries and Cannibals people on wrong river

Best-first search is a class of search algorithms that expand the “most promising” node in each iteration?. decision which node is most promising

some practical remarks on implementing A ∗ : common bug: reopening not implemented although heuristic is not consistent common bug: duplicate test “too early”. (upon generation

f -bound lemma: The minimum f value in the open list at the beginning of each A ∗ iteration is a lower bound on the optimal