Docsity

Problem Solving by Searching in Artificial Intelligence - CS613, Slides of Introduction to Computing

Partial preview of the text

Download Problem Solving by Searching in Artificial Intelligence - CS613 and more Slides Introduction to Computing in PDF only on Docsity!

CS613 INTRODUCTION TO

ARTIFICIAL INTELLIGENCE

Lecture 3 a

Problem Solving by Searching

Today’s Class

Introduction to Problem solving and

Search Strategies

  • Problem solving agents, and examples
  • Problem Statement, Selecting a state space
  • Introduction to Search
  • Defining a Search Problem and Some

Examples

  • The most popular classical problem domains
  • Knowledge, Problem Types
  • Problem Statement, Examples and Real World

Problems

Classic AI Search Problems

Classic AI search problems: Map searching

(navigation)

Classic AI Search Problems

  • 333 Rubik’s Cube

Classic AI Search Problems

Classic AI search problems

  • N-Queens:

Classic AI Search Problems

  • 5-Queens:

Classic AI Search Problems

  • 5-Queens:

Classic AI Search Problems

  • 5-Queens:

Classic AI Search Problems

  • 5-Queens:

Solution !!

No Queen is under Attack

Missionaries and cannibals

  • Three missionaries and three cannibals are on

the left bank of a river.

  • There is one canoe which can hold one or two

people.

  • Find a way to get everyone to the right bank,

without ever leaving a group of missionaries in

one place outnumbered by cannibals in that

place.

Missionaries and Cannibals

Goal State

The River Problem

A farmer wishes to carry a wolf, a duck and corn across a river, from the south to the north shore. The farmer is the proud owner of a small rowing boat called Bounty which he feels is easily up to the job. Unfortunately the boat is only large enough to carry at most the farmer and one other item. Worse again, if left unattended the wolf will eat the duck and the duck will eat the corn.

How can the farmer safely transport the wolf, the duck and the corn to the opposite shore?

Farmer, Wolf,

Duck and Corn

boat

River

Farmer, Wolf, Duck and Corn

River boat

Problem Formulation

A Problem Space consists of

  • The current state of the world ( initial state )
  • A description of the actions we can take to transform one state of the world into another ( operators ).
  • A description of the desired state of the world ( goal state ), this could be implicit or explicit.
  • A solution consists of the goal state, or a path to the goal state.

Problem Formulation

8-Puzzle Problem

Initial State Operators Goal State

Slide blank square left. Slide blank square right. ….