Download presentation

Presentation is loading. Please wait.

Published byEllis Mawdsley Modified over 2 years ago

1
Ch. 5 – Adversarial Search Supplemental slides for CSE 327 Prof. Jeff Heflin

2
Tic-Tac-Toe Transition Model XX O O X O XXO O X O to top-left O to bottom-center O to top-center O to top-right O XXO O X O XXO O X XXO OOX

3
Minimax Algorithm function M INIMAX -D ECISION (state) returns an action return arg max a ACTIONS(s) M IN -V ALUE (R ESULT (state,a)) function M AX -V ALUE (state) returns a utility value if T ERMINAL -T EST (state) then return U TILITY (state) v - for each a in A CTIONS (state) do v M AX (v, M IN -V ALUE (R ESULT (s,a))) return v function M IN -V ALUE (state) returns a utility value if T ERMINAL -T EST (state) then return U TILITY (state) v + for each a in A CTIONS (state) do v M IN (v, M AX -V ALUE (R ESULT (s,a))) return v From Figure 5.3, p. 166

4
Utility-Based Agent sensors actuators Agent Environment What the world is like now What action I should do now Utility State How the world evolves What my actions do What it will be like if I do action A How happy will I be in such a state

5
Minimax with Cutoff Limit function M INIMAX -D ECISION (state) returns an action return arg max a A CTION S(s) M IN -V ALUE (R ESULT (state,a),0) function M AX -V ALUE (state,depth) returns a utility value if C UTOFF -T ES t(state,depth) then return E VAL (state) v - for each a in A CTIONS (state) do v M AX (v, M IN -V ALUE (R ESULT (s,a)), depth+1) return v function M IN -V ALUE (state,depth) returns a utility value if C UTOFF -T ES t(state,depth) then return E VAL (state) v + for each a in A CTIONS (state) do v M IN (v, M AX -V ALUE (R ESULT (s,a)), depth+1) return v

Similar presentations

OK

Announcements (1) Cancelled: –Homework #2 problem 4.d, and Mid-term problems 9.d & 9.e & 9.h. –Everybody gets them right, regardless of your actual answers.

Announcements (1) Cancelled: –Homework #2 problem 4.d, and Mid-term problems 9.d & 9.e & 9.h. –Everybody gets them right, regardless of your actual answers.

© 2017 SlidePlayer.com Inc.

All rights reserved.

Ads by Google

Presentation ppt on motivation theory Ppt on different types of internet access devices Ppt on water our lifeline assistance Ppt on application of linear algebra in computer graphics Ppt on different occupations in india Ppt on mental health nursing Ppt on urinary tract infection in children Ppt on area of trapezium ppt Ppt on conservation of animals Ppt on networking related topics on typhoons