20 Pages

Class12

Course: CS 1571, Fall 2008
School: Pittsburgh
Rating:
 
 
 
 
 

Word Count: 1007

Document Preview

1571 CS Introduction to AI Lecture 12 Adversarial search Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square CS 1571 Intro to AI M. Hauskrecht Announcements Homework assignment 4 is out Programming and experiments Simulated annealing + Genetic algorithm Competition Course web page: http://www.cs.pitt.edu/~milos/courses/cs1571/ CS 1571 Intro to AI M. Hauskrecht 1 Search review Search Path search...

Register Now

Unformatted Document Excerpt

Coursehero >> Pennsylvania >> Pittsburgh >> CS 1571

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
1571 CS Introduction to AI Lecture 12 Adversarial search Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square CS 1571 Intro to AI M. Hauskrecht Announcements Homework assignment 4 is out Programming and experiments Simulated annealing + Genetic algorithm Competition Course web page: http://www.cs.pitt.edu/~milos/courses/cs1571/ CS 1571 Intro to AI M. Hauskrecht 1 Search review Search Path search Configuration search Optimality Finding a path versus finding the optimal path Finding a configuration satisfying constraints versus finding the best configuration CS 1571 Intro to AI M. Hauskrecht Game search Game-playing programs developed by AI researchers since the beginning of the modern AI era Programs playing chess, checkers, etc (1950s) Specifics of the game search: Sequences of players decisions we control Decisions of other player(s) we do not control Contingency problem: many possible opponents moves must be covered by the solution Opponents behavior introduces an uncertainty in to the game We do not know exactly what the response is going to be Rational opponent maximizes it own utility (payoff) function CS 1571 Intro to AI M. Hauskrecht 2 Types of game problems Types of game problems: Adversarial games: win of one player is a loss of the other Cooperative games: players have common interests and utility function A spectrum of game problems in between the two: Adversarial games Fully cooperative games we focus on adversarial games only!! CS 1571 Intro to AI M. Hauskrecht Example of an adversarial 2 person game: Tic-tac-toe Player 1 (x) moves first Loss Draw Win M. Hauskrecht CS 1571 Intro to AI 3 Game search problem Game problem formulation: Initial state: initial board position + info whose move it is Operators: legal moves a player can make Goal (terminal test): determines when the game is over Utility (payoff) function: measures the outcome of the game and its desirability Search objective: find the sequence of players decisions (moves) maximizing its utility (payoff) Consider the opponents moves and their utility CS 1571 Intro to AI M. Hauskrecht Game problem formulation (Tic-tac-toe) Objectives: Player 1: maximize outcome Player 2: minimize outcome Operators Initial state Terminal (goal) states Utility: -1 0 1 M. Hauskrecht CS 1571 Intro to AI 4 Minimax algorithm How to deal with the contingency problem? Assuming that the opponent is rational and always optimizes its behavior (opposite to us) we consider the best opponents response Then the minimax algorithm determines the best move MAX 3 MIN 3 2 2 3 12 8 2 4 6 14 5 2 CS 1571 Intro to AI M. Hauskrecht Minimax algorithm. Example MAX MIN MAX 4 3 6 2 2 1 9 5 3 1 5 4 7 5 CS 1571 Intro to AI M. Hauskrecht 5 Minimax algorithm. Example MAX MIN MAX 4 3 6 2 2 1 9 5 3 1 5 4 7 5 CS 1571 Intro to AI M. Hauskrecht Minimax algorithm. Example MAX MIN MAX 4 4 3 6 2 2 1 9 5 3 1 5 4 7 5 CS 1571 Intro to AI M. Hauskrecht 6 Minimax algorithm. Example MAX MIN MAX 4 6 4 3 6 2 2 1 9 5 3 1 5 4 7 5 CS 1571 Intro to AI M. Hauskrecht Minimax algorithm. Example MAX MIN 4 MAX 4 6 4 3 6 2 2 1 9 5 3 1 5 4 7 5 CS 1571 Intro to AI M. Hauskrecht 7 Minimax algorithm. Example MAX MIN 4 MAX 4 6 2 4 3 6 2 2 1 9 5 3 1 5 4 7 5 CS 1571 Intro to AI M. Hauskrecht Minimax algorithm. Example MAX MIN 4 MAX 4 6 2 9 4 3 6 2 2 1 9 5 3 1 5 4 7 5 CS 1571 Intro to AI M. Hauskrecht 8 Minimax algorithm. Example MAX MIN 4 MAX 4 6 2 9 3 4 3 6 2 2 1 9 5 3 1 5 4 7 5 CS 1571 Intro to AI M. Hauskrecht Minimax algorithm. Example MAX 5 MIN 4 2 5 MAX 4 6 2 9 3 5 7 4 3 6 2 2 1 9 5 3 1 5 4 7 5 CS 1571 Intro to AI M. Hauskrecht 9 Minimax algorithm CS 1571 Intro to AI M. Hauskrecht Complexity of the minimax algorithm We need to explore the complete game before tree making the decision b Complexity: ? m -1 0 1 CS 1571 Intro to AI M. Hauskrecht 10 Complexity of the minimax algorithm We need to explore the complete game tree before making the decision b Complexity: O (b m ) m -1 0 1 Impossible for large games Chess: 35 operators, game can have 50 or more moves CS 1571 Intro to AI M. Hauskrecht Solution to the complexity problem Two solutions: 1. Dynamic pruning of redundant branches of the search tree identify a provably suboptimal branch of the search tree before it is fully explored Eliminate the suboptimal branch Procedure: Alpha-Beta pruning 2. Early cutoff of the search tree uses imperfect minimax value estimate of non-terminal states (positions) CS 1571 Intro to AI M. Hauskrecht 11 Alpha beta pruning Some branches will never be played by rational players since they include sub-optimal decisions (for either player) CS 1571 Intro to AI M. Hauskrecht Alpha beta pruning. Example MAX MIN MAX 4 3 6 2 2 1 9 5 3 1 5 4 7 5 CS 1571 Intro to AI M. Hauskrecht 12 Alpha beta pruning. Example MAX MIN MAX 4 4 3 6 2 2 1 9 5 3 1 5 4 7 5 CS 1571 Intro to AI M. Hauskrecht Alpha beta pruning. Example MAX MIN 4 MAX = 4 4 3 6 2 2 1 9 5 3 1 5 4 7 5 CS 1571 Intro to AI M. Hauskrecht 13 Alpha beta pruning. Example MAX MIN 4 MAX = 4 6 !! 4 3 6 2 2 1 9 5 3 1 5 4 7 5 CS 1571 Intro to AI M. Hauskrecht Alpha beta pruning. Example MAX 4 MIN = 4 MAX = 4 6 4 3 6 2 2 1 9 5 3 1 5 4 7 5 CS 1571 Intro to AI M. Hauskrecht 14 Alpha beta pruning. Example MAX 4 MIN = 4 MAX = 4 6 2 4 3 6 2 2 1 9 5 3 1 5 4 7 5 CS 1571 Intro to AI M. Hauskrecht Alpha beta pruning. Example MAX 4 MIN = 4 2 MAX = 4 6 = 2 4 3 6 2 2 1 9 5 3 1 5 4 7 5 CS 1571 Intro to AI M. Hauskrecht 15 Alpha beta pruning. Example MAX 4 !! MIN = 4 2 MAX = 4 6 = 2 4 3 6 2 2 1 9 5 3 1 5 4 7 5 CS 1571 Intro to AI M. Hauskrecht Alpha beta pruning. Example MAX 4 MIN = 4 2 MAX = 4 6 = 2 5 4 3 6 2 2 1 9 5 3 1 5 4 7 5 CS 1571 Intro to AI M. Hauskrecht 16 Alpha beta pruning. Example MAX 4 MIN = 4 2 5 MAX = 4 6 = 2 = 5 4 3 6 2 2 1 9 5 3 1 5 4 7 5 CS 1571 Intro to AI M. Hauskrecht Alpha beta pruning. Example M...

Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

Pittsburgh - MAY - 2005
FEATUREAN EDITOR ON A MISSION BY JESSICA MESMANSO YOU WANT TOCHANGETHE WORLD?HSome people might say Ive reached a point in my life where Im not afraid. But Ive never been afraid, says Catherine DeAngelis.PHOTOGRAPHY |ere comes Dr. De, h
Pittsburgh - EXP - 1593
Pittsburgh - EXP - 1652
Internet WavesDisruptive Technologies> Cool ToolsDigging Digsby and Tweeting Locally> Database ReviewSmart Search Engines Find Best Facts Page 26Page 19Page 41iJune 2008Vol. 25 I Issue 6The Newspaper for Users and Producers of Elect
Pittsburgh - SIS - 793
MARLA MISEKMirror Image InternetThrough the Looking GlassIike the heroine of Lewis Carroll's Alice's Adventures in Wotiderland, who finds herself in a fantastical place where things are not always as they seem, Intemet users generally have no
Pittsburgh - EXP - 793
MARLA MISEKMirror Image InternetThrough the Looking GlassIike the heroine of Lewis Carroll's Alice's Adventures in Wotiderland, who finds herself in a fantastical place where things are not always as they seem, Intemet users generally have no
Pittsburgh - SIS - 1821
BUILDING COMMUNITY AS A LIBRARY IN A 3D ENVIRONMENTKelly Czarnecki Technology education librarianPublic Library of Charlotte and Mecklenburg County North CarolinaUSA Received January2008It is predicted in a recent reportby GartnerInc that '80% of a
Pittsburgh - EXP - 1821
BUILDING COMMUNITY AS A LIBRARY IN A 3D ENVIRONMENTKelly Czarnecki Technology education librarianPublic Library of Charlotte and Mecklenburg County North CarolinaUSA Received January2008It is predicted in a recent reportby GartnerInc that '80% of a
Pittsburgh - EXP - 325
CLICK FIRST, ASK QUESTIONS LATER: UNDERSTANDING TEEN ONLINE BEHAVIOURJack Goodman CEO Tutoring AustralasiaExamined are how teenagers engage with technology, particularly the internet; what services, sites and programs they find compelling; and how
Pittsburgh - EXP - 335
Pittsburgh - SIS - 1590
Pittsburgh - EXP - 1590
Pittsburgh - SIS - 1834
Social Networking Mixes the Hip with the Proven"THIS YEAR'S EXPLOSIVE GROWTH IN SOCIAL SOFTWARE REMINDS ME OF SHAKESPEARE'S FAMOUS LINE FROM THE TEMPEST, 'WHAT IS PAST IS PROLOGUE."' When Computers in Librariestakes up K. H UVWE the topic of Hip Hig
Pittsburgh - EXP - 1834
Social Networking Mixes the Hip with the Proven"THIS YEAR'S EXPLOSIVE GROWTH IN SOCIAL SOFTWARE REMINDS ME OF SHAKESPEARE'S FAMOUS LINE FROM THE TEMPEST, 'WHAT IS PAST IS PROLOGUE."' When Computers in Librariestakes up K. H UVWE the topic of Hip Hig
Pittsburgh - EXP - 602
Chapter 5Social VideoVideoblogging & YouTuben the past year, viewing and creating video for the Web skyrocketed to the top of many Internet users' lists. The popularity of YouTube, Google Video, and other sharing sites, coupled with the ease of
Pittsburgh - EXP - 116
3 6 I InformationTodayApril 2007www.lntotocfav.coniwww.infotoday.com/linkupYour Personal Guide 1 0 t:he V\#eb :omeA 'del.icio.us' Way to Use Bookmarksregister With del.icio.usby THOMAS PACKThe Folksonomic ApproachEDITED BYLoRAiNF P
Pittsburgh - EXP - 228
practice & researchblogging for beginnersCan the blogging phenomenon offer anything to people with learning disabilities? Yes, says Denise Stokes, who co-ordinates a pioneering group based in CoventryKeywords comrriLinication information techno
Pittsburgh - EXP - 1654
IOWWW.IWR.CO.UK/INFOTECHSOCIAL COMPUTING WITHOUT TEARSReluctant IT departments are playing it safe with social networking, but that could all be about to change, as David Tebbutt explainsfew months ago the IWR blog carried a post about nast\- goi
Pittsburgh - CIDDEFALL - 02
Media IN and FOR the Language Class Presenter: Zsuzsa HorvthIntroductionSponsored by CIDDE Supported by the Robert Henderson Language Media CenterMedia and Technology in the ClassroomRoom with media service: - pick up key (Instructional Media Se
Pittsburgh - TECHWORKSH - 01
Stacks, Buttons, Fields, and Cards in HyperCardCreating New Stacks Find the icon for "Home" or "HyperCard" and double-click on it.If you are on the first card of the Home stack the upper left portion of your screen probably looks something like t
Pittsburgh - TECHWORKSH - 01
1. Basic Hypercard InformationCommands Which Are Used in Almost All Macintosh Programs Command key: (on either side of the Space Bar)+Q +N +O +W +S +Z +X +C +V +PQuit from a program New file (inside Hypercard: "New card") Open file or program (d
Pittsburgh - SUPER - 7
Administrative Issues in Outbreak InvestigationsOR.How to Optimize Your 15 Minutes of FameM. Joan Mallick, R.N., Ph.D.Part AGetting to Know the Media Before an Emergency StrikesBackgroundA The anthrax "outbreak" of 2001 brought theissue
Wisc Stevens Point - ED - 362
Classroom RulesClassroom rules will be set by the students, but guided by the three teachers around five core values: Body Basics, Honesty, Respect, Responsibility, and Caring. Once the students have created rules that they can agree on, the three t
Pittsburgh - LASA - 97
Better Workers, Better Wives: Vocational Education for Poor Women in Turn-of-the-Century Chile1by Elizabeth Quay Hutchison Colby CollegePrepared for delivery at the 1997 Meeting of the Latin American Studies Association, Continental Plaza Hotel,
BU - SPG - 06
NBER WORKING PAPER SERIESABORTION AND SELECTION Elizabeth Oltmans Ananat Jonathan Gruber Phillip B. Levine Douglas Staiger Working Paper 12150 http:/www.nber.org/papers/w12150 NATIONAL BUREAU OF ECONOMIC RESEARCH 1050 Massachusetts Avenue Cambridge
BU - PDFFALL - 07
R&D and productivity: Estimating production functions when productivity is endogenousUlrich Doraszelski Harvard University and CEPR Jordi Jaumandreu Universidad Carlos III and CEPRApril 2007 Preliminary and incomplete. Comments very welcome.Abst
BU - ELBAZ - 1
BU - ELBAZ - 1
BU - ELBAZ - 1
BU - ELBAZ - 1
BU - ELBAZ - 1
BU - ELBAZ - 1
BU - ELBAZ - 1
BU - ELBAZ - 1
BU - ELBAZ - 1
BU - ELBAZ - 1
BU - ELBAZ - 1
BU - ELBAZ - 1
Pittsburgh - LASA - 98
How U.S. Students Perceive Cuba: A Current Cultural ExperienceAviva Chomsky History Department Salem State College Salem, MA 01970 978-542-6389 achomsky@salem.mass.eduPrepared for delivery at the 1998 meeting of the Latin American Studies Associa
Pittsburgh - CS - 1550
Outline of this class How to submit your assignment? A few examples Install NachOS for second assignmentusemainsimple.c usestring.c usefork.c useexecvp.c~jrmst106/public/1550Synch.pl1
Pittsburgh - CS - 2750
CS 2750 Machine Learning Lecture 13Multi-way classificationMilos Hauskrecht milos@cs.pitt.edu 5329 Sennott SquareCS 2750 Machine LearningAdministrative announcementsHomework 6 due on Wednesday Plan for the upcoming month: Homework 7 due on
Pittsburgh - CS - 2750
CS 2750 Machine Learning Lecture 12Nave Bayes classifier & Evaluation frameworkMilos Hauskrecht milos@cs.pitt.edu 5329 Sennott SquareCS 2750 Machine LearningGenerative approach to classificationIdea: 1. Represent and learn the distribution p
Pittsburgh - CS - 3750
CS 3750 Machine Learning Lecture 20Support vector machinesMilos Hauskrecht milos@cs.pitt.edu 5329 Sennott SquareCS 3750 Advanced Machine LearningLinearly separable classesThere is a hyperplane that separates training instances with no error
Pittsburgh - CS - 2750
CS 2750 Machine Learning Lecture 14Support vector machinesMilos Hauskrecht milos@cs.pitt.edu 5329 Sennott SquareCS 2750 Machine LearningOutlineOutline: Fisher Linear Discriminant Algorithms for linear decision boundary Support vector mach
Pittsburgh - CS - 2750
CS 2750 Machine Learning Lecture 21Learning with hidden variables and missing values.Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott SquareCS 2750 Machine LearningLearning probability distributionBasic learning settings: A set of random vari
Pittsburgh - CS - 2710
CS 2710 Foundations of AI Lecture 25Learning probability distributionsMilos Hauskrecht milos@cs.pitt.edu 5329 Sennott SquareCS 2710 Foundations of AIDensity estimationData: D = {D1 , D2 ,., Dn } Di = x i a vector of attribute values Attribut
Pittsburgh - CS - 3710
CS 3710 Advanced Topics in AI Lecture 6Undirected graphical models and factorsMilos Hauskrecht milos@cs.pitt.edu 5329 Sennott SquareCS 3710 Probabilistic graphical modelsFactors Factor: is a function that maps value assignments for a subset o
Pittsburgh - CS - 3710
CS 3710 Advanced Topics in AI Lecture 15Constructing Free Energy Approximations and GBP AlgorithmsBranislav Kveton bkveton@cs.pitt.edu 5802 Sennott SquareCS 3710 Probabilistic graphical modelsContent Why? Belief propagation (BP) Factor
Pittsburgh - CS - 2620
INTERDISCIPLINARYMODELINGANDVISUALIZATIONIntroductionLiz MaraiJanuary 5, 2009Introduction 1/17INTERDISCIPLINARYMODELINGANDVISUALIZATIONVisualization In general: (graphic) any technique for creating images, diagrams, or animat
Pittsburgh - CS - 2620
=Name: James ShoemakerDept: PsychiatryYear (Fr, So, Jr, Sr, Gr<n>): GRE-mail:calceusATyahoo.comPhone(s): Want to learn: I am interested in learning what is possible using current technology, and how that technology can be expanded.Other
Pittsburgh - RX - 2011
From schmotze+ at pitt.edu Tue Apr 1 09:08:41 2008From: schmotze+ at pitt.edu (Schmotzer, Lori Marie)Date: Tue Apr 1 09:08:47 2008Subject: [Rx2011] FW: Highmark Managed Care Summer InternshipIn-Reply-To: <F7BD22056ED101408F179A18ABF65685A75C0F
Pittsburgh - RX - 2011
From waterstc+ at pitt.edu Mon Oct 1 17:05:17 2007From: waterstc+ at pitt.edu (Waters, Thomas C)Date: Tue Oct 2 04:11:39 2007Subject: [Rx2011] Scholarship ApplicationMessage-ID: <C326D94D.637E%waterstc@pitt.edu>Earlier today, the scholarship
Pittsburgh - IS - 0020
1IS 0020Program Design and Software ToolsTemplates Lecture 10 March 23, 2004 2003 Prentice Hall, Inc. All rights reserved.2Introduction Templates Function templates Specify entire range of related (overloaded) functions Function-templa
Pittsburgh - IS - 0020
1IS 0020Program Design and Software ToolsTemplate, Standard Template Library Lecture 9 March 22, 2005 2003 Prentice Hall, Inc. All rights reserved.2Introduction Overloaded functions Similar operations but Different types of data Functi
Pittsburgh - IS - 0020
Quiz 6, IS0020, Feb 17, 2004 Name:1. The correct function name for overloading the addition (+) operator is (a) operator+ (b) +operator (c) operator(+) (d) operator:+ ANS: (a) Which statement about operator overloading is false? (a) New operators c
Pittsburgh - SIS - 3955
IEEE/ACM TRANSACTIONS ON NETWORKING, VOL. 11, NO. 3, JUNE 2003399Dynamic Routing of Restorable Bandwidth-Guaranteed Tunnels Using Aggregated Network Resource Usage InformationMurali Kodialam, Associate Member, IEEE, and T. V. Lakshman, Senior Me
Pittsburgh - IS - 0020
1IS 0020Program Design and Software ToolsPolymorphism, Template, Preprocessor Lecture 6 June 28, 2004 2003 Prentice Hall, Inc. All rights reserved.2Introduction Polymorphism "Program in the general" Derived-class object can be treated a
Pittsburgh - CHEM - 1410
Chapter 6 CommutatorsThe values of two different observables, a and b, can be simultaneously determined (precisely) only if the measurement does not change the state of the system. aA bB( A n = n n ) BA n ( x) = B n b ( x), if n an e.f.
Pittsburgh - LTL - 13
Game Evaluation TemplateIdentification Name URL Manufacturer Author(s) Date of Production Classification Type Intended Audience Yahoo Chess Games.yahoo.com Yahoo! Yahoo and their game designers (Not quite sure) Copyright 2008Strategy All Ages, Nov
Pittsburgh - PHYS - 0475
GENERAL GUIDELINES FOR WRITTEN LAB REPORTSTitleA good title should describe lab concisely, adequately, appropriately. List the students who worked on the lab, your group number, and the roles each of you played (Manager, Recorder, Skeptic). If a gr
Pittsburgh - PHYS - 0175
Phys 0175Midterm Exam I SolutionsJan 28, 20091. (12 pts) In a region of space there is an electric eld E1 that is uniform in magnitude and direction, due to charges that are not shown. The magnitude and direction of E1 are indicated by arrows s
Pittsburgh - PHYS - 0175
Phys 0175Practice Midterm Exam IJan 28, 2009Note: THIS IS A REPRESENTATION OF THE ACTUAL TEST. It is a sample and does not include questions on every topic covered since the start of the semester. Also be sure to review Homework assignments on