• Sonuç bulunamadı

Yapay Zeka 802600715151

N/A
N/A
Protected

Academic year: 2021

Share "Yapay Zeka 802600715151"

Copied!
19
0
0

Yükleniyor.... (view fulltext now)

Tam metin

(1)

Yapay Zeka 802600715151

Doç. Dr. Mehmet Serdar GÜZEL

Slides are mainly adapted from the following course page:

at http://ai.berkeley.edu created by Dan Klein and Pieter Abbeel for CS188

(2)

Lecturer

Instructor: Assoc. Prof Dr. Mehmet S Güzel

Office hours: Tuesday, 1:30-2:30pm

Open door policy – don’t hesitate to stop by!

Watch the course website

Assignments, lab tutorials, lecture notes

slid e 2

(3)

Agents that Plan Ahead

Search Problems

Uninformed Search Methods

Depth-First Search

Breadth-First Search

Uniform-Cost Search

(4)

Reflex Agents

 Reflex agents:

Choose action based on current percept (and maybe memory)

May have memory or a model of the world’s current state

Do not consider the future consequences of their actions

Consider how the world IS

 Can a reflex agent be rational?

[Demo: reflex optimal (L2D1)]

[Demo: reflex optimal (L2D2)]

(5)

Planning Agents

Planning agents:

Ask “what if”

Decisions based on (hypothesized) consequences of actions

Must have a model of how the world evolves in response to actions

Must formulate a goal (test)

Consider how the world WOULD BE

Optimal vs. complete planning

Planning vs. replanning

[Demo: replanning (L2D3)]

[Demo: mastermind (L2D4)]

(6)

Search Problems

(7)

Search Problems

A search problem consists of:

A state space

A successor function (with actions, costs)

A start state and a goal test

A solution is a sequence of actions (a plan) which transforms the start state to a goal (final) state

“N”, 2.0

“E”, 2.0

(8)

Search Problems Are Models

(9)

Example: Traveling in USA

State space:

Cities

Successor function:

Roads: Go to adjacent city with cost = distance

Start state:

LA

Goal test:

Is state == NewYork?

Solution?

(10)

State Space Graphs and Search Trees

(11)

State Space Graphs

 State space graph: A mathematical representation of a search problem

Nodes are (abstracted) world configurations

Arcs represent successors (action results)

The goal test is a set of goal nodes (maybe only one)

 In a state space graph, each state occurs only once!

 We can rarely build this full graph in

memory (it’s too big), but it’s a useful idea

(12)

State Space Graphs

 State space graph: A mathematical representation of a search problem

Nodes are (abstracted) world configurations

Arcs represent successors (action results)

The goal test is a set of goal nodes (maybe only one)

 In a search graph, each state occurs only once!

 We can rarely build this full graph in

memory (it’s too big), but it’s a useful idea

S

G

d b

p q

c

e h a

f

r

Tiny search graph for a tiny search

problem

(13)

Search Trees

A search tree:

A “what if” tree of plans and their outcomes

The start state is the root node

Children correspond to successors

Nodes show states, but correspond to PLANS that achieve those states

For most problems, we can never actually build the whole tree

“E”, 1.0

“N”, 1.0

This is now / start

Possible futures

(14)

State Space Graphs vs. Search Trees

S

a b

d p

a c

e

p h

f r q

q c G

a e q

p h

f r q

q c G

a

S

G

d b

p q

c

e h a

f

r

We construct both on demand – and

we construct as little as possible.

Each NODE in in the search tree is an entire PATH in the state space

graph.

Search Tree

State Space Graph

(15)

Quiz: State Space Graphs vs. Search Trees

S

G

b a

Consider this 4-state graph:

Important: Lots of repeated structure in the search tree!

How big is its search tree (from S)?

(16)

Tree Search

(17)

Search Example: Romania

(18)

Searching with a Search Tree

Search:

Expand out potential plans (tree nodes)

Maintain a fringe of partial plans under consideration

Try to expand as few tree nodes as possible

(19)

General Tree Search

 Important ideas:

Fringe

Expansion

Exploration strategy

 Main question: which fringe nodes to explore?

Referanslar

Benzer Belgeler

In mathematical expression recognition, a graph grammar is of- ten used in conjunction with graph rewriting methods where the initial graph constructed from the tokenized expression

Pac-Man is a registered trademark of Namco-Bandai Games, used here for educational purposes Demo1: pacman-l1.mp4

• It is called the depth-first search because it starts from the root node and follows each path to its greatest depth node before moving to the next path.. • DFS uses a stack

 Backtracking is an algorithmic-technique for solving problems recursively by trying to build a solution incrementally, one piece at a time, removing those solutions that fail

 Go: Human champions are now starting to be challenged by machines, though the best humans still beat the best machines.. In go, b

each time step, the process is in some state , and the decision maker may choose any action that is available in

In this study, a combination of block-EDM and wire electro discharge grinding (WEDG) techniques are used to fabricate micro end mills of different geometries.. The influences of

direk kar dondurma vatan sevgi taş dört kavun atmaca beceri kaplumbağa değirmen sorular kaplan duru lacivert yüzlük mavi sözlük sarı gözlük tren genç sorgu tasarım kuş