Ch. 6 - PowerPoint PPT Presentation

About This Presentation
Title:

Ch. 6

Description:

return the action in SUCCESSORS(state) with value v ... for each a,s in SUCCESSORS(state) do. v MAX(v, MIN-VALUE(s)) return v ... – PowerPoint PPT presentation

Number of Views:20
Avg rating:3.0/5.0
Slides: 5
Provided by: JeffH47
Category:
Tags: successors

less

Transcript and Presenter's Notes

Title: Ch. 6


1
Ch. 6 Adversarial Search
  • Supplemental slides for CSE 327
  • Prof. Jeff Heflin

2
Tic-Tac-Toe Successor Function

X X O
O X
O tobottom-center
O to top-left
O totop-center
O to top-right
O
X X O
O X
O
X X O
O X
O
X X O
O X

X X O
O O X
3
Minimax Algorithm
  • function MINIMAX-DECISION(state) returns an
    action v ? MAX-VALUE(state) return the action
    in SUCCESSORS(state) with value v
  • function MAX-VALUE(state) returns a utility
    value if TERMINAL-TEST(state) then return
    UTILITY(state) v ? -? for each lta,sgt in
    SUCCESSORS(state) do v ? MAX(v,
    MIN-VALUE(s)) return v
  • function MIN-VALUE(state) returns a utility
    value if TERMINAL-TEST(state) then return
    UTILITY(state) v ? ? for each lta,sgt in
    SUCCESSORS(state) do v ? MIN(v,
    MAX-VALUE(s)) return v
  • From Figure 6.3, p. 166

4
Minimax with Cutoff Limit
  • function MINIMAX-DECISION(state) returns an
    action v ? MAX-VALUE(state, 0) return the
    action in SUCCESSORS(state) with value v
  • function MAX-VALUE(state, depth) returns a
    utility value if CUTOFF-TEST(state, depth) then
    return EVAL(state) v ? -? for each lta,sgt in
    SUCCESSORS(state) do v ? MAX(v, MIN-VALUE(s,
    depth 1)) return v
  • function MIN-VALUE(state, depth) returns a
    utility value if CUTOFF-TEST(state, depth) then
    return EVAL(state) v ? ? for each lta,sgt in
    SUCCESSORS(state) do v ? MIN(v, MAX-VALUE(s,
    depth 1)) return v
Write a Comment
User Comments (0)
About PowerShow.com