A*-algorithm, Python




CS156

Chris Pollett

Feb 6, 2012

Outline

Informed Search Strategies

Example Heuristic Functions

`A^star`-search

Quiz

Which of the following is true?

  1. Unknown problem task environments are always only partially observable.
  2. If a goal has depth `n`, the iterative deepening search can find the goal using `O(n)` space.
  3. Uniform cost search is a generalization of depth first search to the case where action costs may not always be `1`.

Python

Getting Started

Running Python

Python as Calculator; Programs in Files

Variables and Arithmetic Expressions

Conditionals

File I/O

Strings