人工智能(三) LeeRinji

Heuristic search(启发式搜索)

Motivation

Greedy best-first search (Greedy BFS)

Conditions on h(n): Admissible

Consistency (aka monotonicity)

Time and space complexities

Admissibility implies optimality

Any optimal path will be expanded before any path of cost > C∗

Proof:

  • Let p∗ be an optimal solution
  • Assume that p is a path s.t. c(p) > c(p∗) and p is expanded before p∗
  • Then there must be a node n on p∗ which is still in the frontier
  • So $c(p) \le f(p) \le f(n) = g(n) + h(n) \le g(n) + h∗(n) = c(p∗)$, contradicting $c(p) > c(p∗)$

What about cycle checking