Docsity

Game Tree Search Two - Artificial Intelligence - Lecture Slides, Slides of Artificial Intelligence

Partial preview of the text

Download Game Tree Search Two - Artificial Intelligence - Lecture Slides and more Slides Artificial Intelligence in PDF only on Docsity!

Lecture 10 of 41

Game Tree Search (Concluded)

Introduction to Logical Agents

Lecture Outline

  • Today’s Reading
  • Reading for Next Class: Chapter 6, Russell and Norvig
  • More on Game Tree Search
    • Review: framework; minimax algorithm; quiescence detection, horizon effect
    • Alpha-Beta pruning
    • Expectiminimax
  • Applications: Current “Hot” Problems
    • “Harder” games: Go
    • Interactive agents and games
      • Economically-founded multiagent systems, negotiation
      • Simulated societies
  • Next Week: Knowledge Representation – Logics and Production Systems

Alpha-Beta (  -  ) Pruning:

Definitions

Alpha-Beta (  -  ) Pruning:

Example [1]

MAX

MIN

MAX

Figure 5.6 p. 131 R&N

Warning: Gratuitous use of

Microsoft®^ PowerPoint ®^ XP 

Alpha-Beta (  -  ) Pruning:

Modified Minimax Algorithm

Expectiminimax

Digression:

Learning Evaluation Functions [1]

  • Learning = Improving with Experience at Some Task
    • Improve over task T,
    • with respect to performance measure P ,
    • based on experience E****.
  • Example: Learning to Play Checkers
    • T : play games of checkers
    • P : percent of games won in world tournament
    • E : opportunity to play against self
  • Refining the Problem Specification: Issues
    • What experience?
    • What exactly should be learned?
    • How shall it be represented****?
    • What specific algorithm to learn it?
  • Defining the Problem Milieu
    • Performance element: How shall the results of learning be applied?
    • How shall the performance element be evaluated? The learning system?

Digression:

Learning Evaluation Functions [2]

  • Possible Definition
    • If b is a final board state that is won, then V(b) = 100
    • If b is a final board state that is lost, then V(b) = -
    • If b is a final board state that is drawn, then V(b) = 0
    • If b is not a final board state in the game, then V(b) = V(b’) where b’ is the best final board state that can be achieved starting from b and playing optimally until the end of the game
    • Correct values for minimax / alpha-beta, but not operational
  • Choosing a Representation for the Static Evaluation Function
    • Collection of rules?
    • Neural network?
    • Polynomial function (e.g., linear, quadratic combination) of board features?
    • Other?
  • A Representation for Learned Function

    • bp/rp = number of black/red pieces; bk/rk = number of black/red kings; bt/rt = number of black/red pieces threatened (can be taken on next turn)

V ˆ  b   w 0  w 1 bp  b   w 2 rp  b   w 3 bk  b   w 4 rk  b   w 5 bt  b   w 6 rt  b 

Current Research Topics in Games and AI

  • Game Theory
    • Common ramework: two-player (or multi-player), zero-sum
    • Deterministic or known probability distribution function, totally observable
    • Minimax algorithm given ability to search to arbitrary ply
  • Negotiation
    • … game?
    • … opponent?
  • Specifications and Ramifications
    • Combinatorics: finite depth ( m ), breadth ( b ) of search
    • Resource limits : need for static evaluation function
  • Practical Issues
    • Effects of depth cutoff
    • Need for pruning

Resources for Term Project

  • Print Resources on The Web (You May Cite Some as Print References)
    • CiteSeer (largest online citation database): http://citeseer.nj.nec.com
    • See also: Google (author search), E-journals (JAIR, JMLR), societies (AAAI, AUAI)
  • Resources for AI Projects
    • USENET: many AI-related groups
      • comp.ai, comp.ai.edu, comp.ai.{neural-nets | genetic | fuzzy}
      • Other groups on vision, optical character recognition (OCR)
    • Watch CIS730 Yahoo! Group (see Part 3 of 3, project guidelines)
  • Don’t Forget Interlibrary Loan!
    • K-State: off-campus borrowing facilities (http://www.lib.ksu.edu)
    • Arrangements for remote (NTU) students: contact instructor
  • Instructor Contact Info
    • ICQ #28651394, cis730ta, [email protected]
    • Voice: (785) 532-6350 x29 [Office], (785) 539-7180 [Home 18:00 – 20:00 CDT]
    • Mobile phone contact: call Delores Winfough (785) 532-
    • Schedule: http://www.kddresearch.org/Personal/bhsu/schedule.txt

Advice About Term Project [1]

  • Start Early!
    • Recall “How to Get an A in This Course” (Lecture 0)
    • See below: start ball rolling ASAP
  • Ask Questions on Course Web Group (ksu-cis730-fall2001)
    • On online fora
      • Course web group (ksu-cis730-fall2001) – check progress with classmates!
      • USENET (caveat: know what you are asking, what you will do with answers)
      • Mailing lists (ditto) – data mining; Uncertainty in AI; many, many others
    • Directly question instructor
      • By remote: see contacts, previous page
      • in person: before class, Wednesday office hours (with project partner, by self)
    • Do footwork
      • Not everything is on web (Inter-Library Loan – excruciatingly slow)
      • Not everything on web is well-indexed, easily accessible
  • Stay Coordinated with Project Partner
  • Don’t Waste Too Much Time on Nonessentials (Display/GUI)

Advice About Term Project [2]

  • Evaluation Criteria
    • Originality, significance, scope
      • Nontriviality of problem: very important!
      • Originality of solution: reimplementation / rehashing of common “applet”?
      • Generality of results
    • Functionality
    • Writing quality
      • Proposal is not end of writing!
      • Conference/workshop-style report much more important
  • How to Focus on Essentials
    • Keep list of milestones, track schedule slippage carefully
    • Report to instructor and get feedback (no formal interim reports, but post )
    • Know what is essential
      • Ounce of prevention: good planning, design, specification, antibugging
      • Don’t lose time on interfaces, et cetera : scoring not based on “KLOC”
      • Leave time for debugging and testing!

Simple Knowledge-Based Agent

Adapted from slides by S. Russell, UC Berkeley Figure 6.1 p. 152 R&N

Representing Intelligent Agent (IA) Problems:

PAGE Formulation

  • Percepts
    • What can agent observe?
    • What can sensors tell it?
  • Actions
    • What actuators does agent have?
    • In what context are they applicable?
  • Goals
    • What are agents goals? Preferences (utilities)?
    • How does agent evaluate them (check environment, deliberate, etc.)?
  • Environment
    • What are “rules of the world”?
    • How can these be represented, simulated?