6_graphs

6_graphs - Introduction to Computers and Programming Prof....

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
Introduction to Computers and Programming Prof. I. K. Lundqvist Lecture 6 Mar 30 2004 Some slides adapted from: 6.034 Tomas Lozano Perez, Russell and Norvig AIMA and 16.410 Brian C. Williams 2 Today •Prob lem Formu la t ion – Problem solving as state space search • Definition of Graphs –Types of Graphs • Shortest Path problems – Dijkstra’s Algorithm
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
3 Today Problem Formulation Problem solving as state space search • Definition of Graphs –Types of Graphs • Shortest Path problems – Dijkstra’s Algorithm 4 Complex missions must carefully: • Plan complex sequences of actions • Schedule tight resources • Monitor and diagnose behavior • Repair or reconfigure hardware. Ö Most AI problems, like these, may be formulated as state space search.
Background image of page 2
5 Simple Trivial Astronaut Goose Grain Fox Rover • Astronaut + 1 item allowed in the rover. • Goose alone eats Grain • Fox alone eats Goose Can the astronaut get its produce safely across the Martian canal? 6 Problem Solving as State Space Search •Formu la te Goa l – State • Astronaut, Fox, Goose & Grain across river • Formulate Problem – States • Location of Astronaut, Fox, Goose & Grain at top or bottom river bank – Operators • Move rover with astronaut & 1 or 0 items to other bank • Generate Solution – Sequence of States • Move(goose,astronaut), Move(astronaut), . . .
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
7 Astronaut Goose Grain Fox Grain Fox Astronaut Goose Astronaut Grain Fox Goose Goose Astronaut Fox Grain Astronaut Goose Grain Fox Astronaut Goose Grain Fox Grain Astronaut Goose Fox Astronaut Goose Grain Fox Fox Astronaut Goose Grain Astronaut Goose Fox Grain Goose Fox Astronaut Grain Goose Grain Astronaut Fox Astronaut Grain Goose Fox Astronaut Fox Goose Grain Goose Grain Fox Astronaut Goose Grain Fox Astronaut 8 Astronaut Goose Grain Fox Grain Fox Astronaut Goose Astronaut Grain Fox Goose Goose Astronaut Fox Grain Astronaut Goose Grain Fox Astronaut Goose Grain Fox Grain Astronaut Goose Fox Astronaut Goose Grain Fox Fox
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 17

6_graphs - Introduction to Computers and Programming Prof....

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online