1. Trang chủ
  2. » Văn bán pháp quy

Slide Trí Tuệ Nhân Tạo - Lecture05-Games - UET - Tài liệu VNU

57 40 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 57
Dung lượng 4,42 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

•   Computer programs playing games is a proof that computer can do the task that require human!. intelligence.".[r]

Trang 1

Phạm Bảo Sơn 1

Artificial Intelligence!

Adversarial Search – based on

slides from Dan Klein Các chiến lược tìm kiếm có đối thủ

Trang 3

Phạm Bảo Sơn 3

Why Games?!

•   In 1950, Claude Shannon wrote the first computer

program that plays chess."

•   Computer programs playing games is a proof that

computer can do the task that require human

intelligence."

•   “Unpredictable” opponent: solution is a strategy Must respond to every possible opponent reply"

•   Time limits: must rely on approximation Tradeoff

between speed and accuracy"

•   Games have been a key driver of new techniques in

CS and AI."

Trang 4

Phạm Bảo Sơn 4

Go !

Trang 5

Phạm Bảo Sơn 5

Checkers!

Trang 6

Phạm Bảo Sơn 6

Robocup Soccer !

Trang 7

Phạm Bảo Sơn 7

!

Deep Green playing billard

Trang 8

Game Playing: State-of-the-Art!

  Checkers: Chinook ended 40-year-reign of human world champion Marion Tinsley in 1994 Used an endgame database defining perfect play for all positions involving 8 or fewer pieces

on the board, a total of 443,748,401,247 positions Checkers is now solved!"

  Chess: Deep Blue defeated human world champion Gary Kasparov in a six-game match in 1997 Deep Blue examined

200 million positions per second, used very sophisticated evaluation and undisclosed methods for extending some lines of search up to 40 ply Current programs are even better, if less historic."

Trang 9

Game Playing: State-of-the-Art!

  Othello: Human champions refuse to compete

against computers, which are too good "

  Go: It’s used to be the case that human champions refuse to compete against computers, who are too bad (b> 300) AlphaGo, developed by Google

DeepMind in London beat human champion Lee

Sedol 4-1 in March 2016 AlphaGo uses deep

learning and reinforcement learning."

  Pacman: unknown "

Trang 10

–  Partially observable (bridge, poker, scrabble)"

•   Continuous, embodied games:"

–  Robocup soccer, pool (snooker)"

•   Two or more players?"

•   Want algorithms for calculating a strategy ( policy )

which recommends a move in each state"

Trang 11

Deterministic Games!

•   Many possible formalizations, one is:"

–   States: S (start at s0)"

–   Players: P={1 N} (usually take turns)"

–   Actions: A (may depend on player / state)"

Trang 12

Zero-Sum Games!

•   Zero-Sum Games:"

–  Agents have opposite utilities (values on outcomes)"

–  Lets us think of a single value that one maximizes and the other minimizes "

–  Adversarial, pure competition "

•   General Games"

–  Agents have independent utilities (values on outcomes)"

–  Cooperation, indifference, competition, and more are all

possible "

Trang 13


 Deterministic Single Player!

Trang 14

Single Agent Tree!

Trang 15

Value of a State!

Trang 16

Deterministic Two Players!

Trang 17

Adversarial Game Trees !

Trang 18

Phạm Bảo Sơn 18

Tic-tac-toe Game Tree


2-player, deterministic!

Trang 19

Minimax Values 


!

Trang 20

Adversarial Search

(Minimax) !

Trang 21

Minimax Implementation !

Trang 22

Minimax Implementation

(Dispatch) !

Trang 23

Minimax Example!

•  Perfect Play for deterministic, perfect-information games."

•  Idea: choose move to position with highest minimax value = best

achievable payoff against best play"

Trang 25

Phạm Bảo Sơn 25

Minimax Properties!

•  Complete? Yes (if tree is finite)"

•  Optimal? Yes (against an optimal opponent)"

•  Time complexity? O(bm)"

•  Space complexity? O(bm) (depth-first exploration)"

•   For chess: b ~ 35, m ~100: optimal solution is

infeasible "

Trang 26

Minimax Properties !

Trang 27

Example!

Trang 28

Resource Limits !

Trang 29

Depth Matters !

Trang 30

Example!

Trang 31

Evaluation Functions !

Trang 32

Evaluation for Pacman !

Trang 33

Why Pacman Starves !

Trang 34

Evaluation Function for

Ghosts!

(two ghosts having the same evaluation function using minimax)"

Trang 35

Pruning - Motivation!

"

"

•  Q1 Why would “Queen to G5” be a bad move for Black?"

•  Q2 How many White “replies” did you need to consider in

answering?"

Once we have seen one reply scary enough to convince us the

move is really bad, we can abandon this move and continue

searching elsewhere "

Trang 36

Phạm Bảo Sơn 36

Alpha-Beta Pruning !

Trang 37

Phạm Bảo Sơn 37

Alpha-Beta Pruning !

Trang 38

Phạm Bảo Sơn 38

Alpha-Beta Pruning !

Trang 39

Phạm Bảo Sơn 39

Trang 40

Phạm Bảo Sơn 40

Trang 41

Alpha-Beta Pruning 


!

Trang 42

Alpha-Beta Implementation !

Trang 43

Alpha-Beta Pruning

Properties !

Trang 44

Alpha-Beta Pruning

Example !

Trang 45

Worst-Case vs Average

Case !

Trang 46

Example!

Trang 47

Expectimax Search !

Trang 48

Expectimax Pseudocode !

Trang 49

Expectimax Example !

Trang 50

Expectimax Example !

Trang 51

Expectimax Pruning? !

Trang 52

Depth-Limited Expectimax !

Trang 53

Reminder: Probabilities!

Trang 54

Reminder: Expectations !

Trang 55

The Dangers of Optimism

and Pessimism !

Trang 56

Assumptions vs Reality !

Ngày đăng: 26/01/2021, 10:26

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

🧩 Sản phẩm bạn có thể quan tâm

w