Artificial Intelligence and Searching CPSC 315 – Programming Studio Spring 2009 Project 2, Lecture 1 Adapted from slides of Yoonsuck Choe.

Slides:



Advertisements
Similar presentations
Chapter 6, Sec Adversarial Search.
Advertisements

Learning Procedural Planning Knowledge in Complex Environments Douglas Pearson March 2004.
Presentation on Artificial Intelligence
Games & Adversarial Search Chapter 5. Games vs. search problems "Unpredictable" opponent  specifying a move for every possible opponent’s reply. Time.
Games & Adversarial Search
Part2 AI as Representation and Search
CS 4700: Foundations of Artificial Intelligence Bart Selman Reinforcement Learning R&N – Chapter 21 Note: in the next two parts of RL, some of the figure/section.
Adversarial Search Chapter 5.
Class Project Due at end of finals week Essentially anything you want, so long as it’s AI related and I approve Any programming language you want In pairs.
Adversarial Search CSE 473 University of Washington.
ECE457 Applied Artificial Intelligence R. Khoury (2007)Page 1 Please pick up a copy of the course syllabus from the front desk.
Games CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
An Introduction to Artificial Intelligence. Introduction Getting machines to “think”. Imitation game and the Turing test. Chinese room test. Key processes.
Minimax and Alpha-Beta Reduction Borrows from Spring 2006 CS 440 Lecture Slides.
Lecture 13 Last time: Games, minimax, alpha-beta Today: Finish off games, summary.
Search: Representation and General Search Procedure Jim Little UBC CS 322 – Search 1 September 10, 2014 Textbook § 3.0 –
CPSC 322, Lecture 4Slide 1 Search: Intro Computer Science cpsc322, Lecture 4 (Textbook Chpt ) January, 12, 2009.
Games with Chance Other Search Algorithms CPSC 315 – Programming Studio Spring 2008 Project 2, Lecture 3 Adapted from slides of Yoonsuck Choe.
Game Playing CSC361 AI CSC361: Game Playing.
How computers play games with you CS161, Spring ‘03 Nathan Sturtevant.
EXPERT SYSTEMS Part I.
Building Knowledge-Driven DSS and Mining Data
Game Playing State-of-the-Art  Checkers: Chinook ended 40-year-reign of human world champion Marion Tinsley in Used an endgame database defining.
Game Trees: MiniMax strategy, Tree Evaluation, Pruning, Utility evaluation Adapted from slides of Yoonsuck Choe.
Minimax Trees: Utility Evaluation, Tree Evaluation, Pruning CPSC 315 – Programming Studio Spring 2008 Project 2, Lecture 2 Adapted from slides of Yoonsuck.
Artificial Intelligence Introduction (2). What is Artificial Intelligence ?  making computers that think?  the automation of activities we associate.
(Classical) AI Planning. Some Examples Route search: Find a route between Lehigh University and the Naval Research Laboratory Project management: Construct.
Artificial Intelligence
1 Solving problems by searching This Lecture Chapters 3.1 to 3.4 Next Lecture Chapter 3.5 to 3.7 (Please read lecture topic material before and after each.
Game-playing AIs Part 1 CIS 391 Fall CSE Intro to AI 2 Games: Outline of Unit Part I (this set of slides)  Motivation  Game Trees  Evaluation.
Introduction to Artificial Intelligence CS 438 Spring 2008 Today –AIMA, Ch. 6 –Adversarial Search Thursday –AIMA, Ch. 6 –More Adversarial Search The “Luke.
Instructor: Vincent Conitzer
SARTRE: System Overview A Case-Based Agent for Two-Player Texas Hold'em Jonathan Rubin & Ian Watson University of Auckland Game AI Group
Memory and Analogy in Game-Playing Agents Jonathan Rubin & Ian Watson University of Auckland Game AI Group
Expert System Note: Some slides and/or pictures are adapted from Lecture slides / Books of Dr Zafar Alvi. Text Book - Aritificial Intelligence Illuminated.
1 The main topics in AI Artificial intelligence can be considered under a number of headings: –Search (includes Game Playing). –Representing Knowledge.
GAME PLAYING 1. There were two reasons that games appeared to be a good domain in which to explore machine intelligence: 1.They provide a structured task.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 9 of 42 Wednesday, 14.
Artificial Intelligence and Searching CPSC 315 – Programming Studio Spring 2013 Project 2, Lecture 1 Adapted from slides of Yoonsuck Choe.
AI ● Dr. Ahmad aljaafreh. What is AI? “AI” can be defined as the simulation of human intelligence on a machine, so as to make the machine efficient to.
Today’s Topics Playing Deterministic (no Dice, etc) Games –Mini-max –  -  pruning –ML and games? 1997: Computer Chess Player (IBM’s Deep Blue) Beat Human.
KNOWLEDGE BASED SYSTEMS
CSCI 4310 Lecture 2: Search. Search Techniques Search is Fundamental to Many AI Techniques.
Course Overview  What is AI?  What are the Major Challenges?  What are the Main Techniques?  Where are we failing, and why?  Step back and look at.
(Classical) AI Planning. General-Purpose Planning: State & Goals Initial state: (on A Table) (on C A) (on B Table) (clear B) (clear C) Goals: (on C Table)
RULES Patty Nordstrom Hien Nguyen. "Cognitive Skills are Realized by Production Rules"
Forward and Backward Chaining
Organic Evolution and Problem Solving Je-Gun Joung.
Artificial Intelligence, simulation and modelling.
Some Thoughts to Consider 5 Take a look at some of the sophisticated toys being offered in stores, in catalogs, or in Sunday newspaper ads. Which ones.
Explorations in Artificial Intelligence Prof. Carla P. Gomes Module 5 Adversarial Search (Thanks Meinolf Sellman!)
Understanding AI of 2 Player Games. Motivation Not much experience in AI (first AI project) and no specific interests/passion that I wanted to explore.
Adversarial Search CMPT 463. When: Tuesday, April 5 3:30PM Where: RLC 105 Team based: one, two or three people per team Languages: Python, C++ and Java.
Artificial Intelligence AIMA §5: Adversarial Search
Instructor: Vincent Conitzer
SNS College of Engineering Department of Computer Science and Engineering AI Planning Presented By S.Yamuna AP/CSE 5/23/2018 AI.
Done Done Course Overview What is AI? What are the Major Challenges?
CS 4700: Foundations of Artificial Intelligence
Games with Chance Other Search Algorithms
Artificial Intelligence
Artificial Intelligence and Searching
Announcements Homework 3 due today (grace period through Friday)
Artificial Intelligence
EA C461 – Artificial Intelligence Problem Solving Agents
Instructor: Vincent Conitzer
Search.
Search.
Artificial Intelligence and Searching
Artificial Intelligence and Searching
Minimax Trees: Utility Evaluation, Tree Evaluation, Pruning
Presentation transcript:

Artificial Intelligence and Searching CPSC 315 – Programming Studio Spring 2009 Project 2, Lecture 1 Adapted from slides of Yoonsuck Choe

Artificial Intelligence Long-standing computational goal Turing test Field of AI very diverse “Strong” AI – trying to simulate thought itself “Weak” AI – trying to make things that behave intelligently Several different approaches used, topics studied Sometimes grouped with other fields Robotics Computer Vision

Topics in Artificial Intelligence Problem Solving Reasoning Theorem Proving Planning Learning Knowledge Representation Perception Agent Behavior etc. Common theme: reason about domain knowledge

Domain Knowledge To perform a task, systems need a representation of the domain Symbolic Explicit representation of domain objects, concepts, and attributes E.g. Rules, frames, schemas Sub-symbolic Distributed representation of objects, concepts, and attributes in the world E.g. neural nets There are also representations that blend these two depending on their use

Frames & Rules Frames Represents declarative and behavioral information Like objects in E-R diagram or OO code Reasoning through inheritance of attributes and behaviors Single and multiple inheritance Class-instance and prototype inheritance Rules Often of the form “If A then B” (A → B) Reasoning through associative property A → B and B → C means A → C Often combined with other representation of objects

Planning Actions often represented as preconditions and post-conditions CookFood pre: haveRawFood AND haveCookingDevice post: haveCookedFood AND NOT haveRawFood BuyRawFood pre: atGroceryStore AND money>=5 post: haveRawFood AND money = money – 5 IncreaseRetirement (n) pre: money>=n post: retirement = retirement + n AND money = money – n Assume features not mentioned in post-condition are not modified by action

Planning Forward chaining From current state to decision (data driven) Often used in open-ended domains (e.g. design) and domains where new data becomes available over time Identifies potential action sequences A utility (“goodness”) function used to select among possible paths (could be lowest cost in design) Backward chaining From goal to actions (goal driven) Used in domains with fixed number of outcomes (e.g. diagnosis) Hypothesis/test method identifies possible diagnoses Tests to discriminate between diagnoses are then identified

Planning How to select among actions when more than one is available Priority Order Often times implemented implicitly through order of actions in list Could have priority ranks, but then again have to choose when more than one in the same rank are available Precision of Context Number of preconditions often used to infer more specialized action More specialized is assumed better

Schemas & Case-based Reasoning Schemas Represents normal sequences of actions/events Case-based reasoning: reuse solution from prior case for current context Identify appropriate schema requires similarity assessment Revise/adapt case to match current context Perhaps save new case as schema for future action Our legal system includes case-based reasoning because rule-based reasoning is fragile many unanticipated exceptions too many potential exceptions to be encoded

Schemas Consider when entering a new restaurant Restaurant schema 1 Enter restaurant Get in line Order at counter Pay for food Wait for food Take food to table Eat food Take trash to trashcan Leave restaurant

Schemas Consider when entering a new restaurant Restaurant schema 1 Enter restaurant Get in line Order at counter Pay for food Wait for food Take food to table Eat food Take trash to trashcan Leave restaurant Restaurant schema 2 Enter restaurant Ask for table Wait to be seated Order food from waiter Wait for food Eat food Get bill Pay bill & leave tip Leave restaurant

Determining Similarity How to identify similar contexts Similar situation Number of attributes in common Can be weighted to indicate relative importance of attributes  Does it look like McDonald’s or Christopher’s? Similar process Number of common actions preceding current state Can be weighted as a function of time to emphasize recent actions  Did you just give your car to the valet?

Game Playing and Search Game playing a long-studied topic in AI Seen as a proxy for how more complex reasoning can be developed Search Understanding the set of possible states, and finding the “best” state or the best path to a goal state, or some path to the goal state, etc. “State” is the condition of the environment e.g. in theorem proving, can be the state of things known  By applying known theorems, can expand the state, until reaching the goal theorem Should be stored concisely

Really Basic State Search Example Given a=b,b=c,c=d, prove a=d. a=b, b=c, c=d a=c a=b, b=c, c=d b=d a=b, b=c, c=d b=d, a=d

Operators Transition from one state to another Fly from one city to another Apply a theorem Move a piece in a game Add person to a meeting schedule Operators and states are both usually limited by various rules Can only fly certain routes Only valid moves in game

Search Examine possible states, transitions to find goal state Interesting problems are those too large to explore exhaustively Uninformed search Systematic strategy to explore options Informed search Use domain knowledge to limit search

Game Playing Abstract AI problem Nice and challenging properties Usually state can be clearly, concisely represented Limited number of operations (but can still be large) Unknown factor – account for opponent Search space can be huge Limit response based on time – forces making good “decisions” e.g. Chess averages about 35 possible moves per turn, about 50 moves per player per game, or possible games. But, “only” possible board states.

Types of games Deterministic vs. random factor Known state vs. hidden information Examples DeterministicChance Perfect InfoChess, Checkers, Othello, Go Monopoly, Backgammon Imperfect InfoStratego, Bridge? Poker, Scrabble Bridge?

Game Playing In upcoming lectures, we will discuss some of the basic methods for performing search Project will focus on a deterministic game with perfect information