COMP 406 Lecture 05. Artificial. Fiona Yan Liu Department of Computing The Hong Kong Polytechnic University

Similar documents
CENG 466 Artificial Intelligence. Lecture 4 Solving Problems by Searching (II)

Problem Solving as Search - I

CS472 Foundations of Artificial Intelligence. Final Exam December 19, :30pm

Application of Bayesian Networks to Shopping Assistance

Uninformed Search (Ch )

Problem Solving Agents

Introduction. AI and Searching. Simple Example. Simple Example. Now a Bit Harder. From Hammersmith to King s Cross

Princess Nora University Faculty of Computer & Information Systems ARTIFICIAL INTELLIGENCE (CS 370D) Computer Science Department

Uninformed search methods

/435 Artificial Intelligence Fall 2015

6.034 Artificial Intelligence

Optimization and Search. Jim Tørresen Optimization and Search

Section I: Multiple Choice Select the best answer for each problem.

Uninformed search methods II.

Uninformed search methods II.

9.3 Altitude-on-Hypotenuse Theorems

Chapter 12 Practice Test

Uninformed search methods

Evaluating and Classifying NBA Free Agents

Uninformed Search (Ch )

Principles of Knowledge Representation and Reasoning. Principles of Knowledge Representation and Reasoning. Lecturers. Lectures: Where, When, Webpage

Solving Problems by Searching chap3 1. Problem-Solving Agents

Principles of Knowledge Representation and Reasoning

CS 4649/7649 Robot Intelligence: Planning

G53CLP Constraint Logic Programming

Planning and Acting in Partially Observable Stochastic Domains

COMP219: Artificial Intelligence. Lecture 8: Combining Search Strategies and Speeding Up

Overview. Depth Limited Search. Depth Limited Search. COMP219: Artificial Intelligence. Lecture 8: Combining Search Strategies and Speeding Up

Estimating a Toronto Pedestrian Route Choice Model using Smartphone GPS Data. Gregory Lue

Description Logic. Agam Sarup Biplab Kar Hitesh Kewalramani

LING 364: Introduction to Formal Semantics. Lecture 19 March 28th

CS Lecture 5. Vidroha debroy. Material adapted courtesy of Prof. Xiangnan Kong and Prof. Carolina Ruiz at Worcester Polytechnic Institute

Lesson 21: Special Relationships within Right Triangles Dividing into Two Similar Sub-Triangles

Generating None-Plans in Order to Find Plans 1

Using Perceptual Context to Ground Language

100-Meter Dash Olympic Winning Times: Will Women Be As Fast As Men?

COMP9414: Artificial Intelligence Uninformed Search

Module 13 Trigonometry (Today you need your notes)

Stat 139 Homework 3 Solutions, Spring 2015

Unit 4. Triangle Relationships. Oct 3 8:20 AM. Oct 3 8:21 AM. Oct 3 8:26 AM. Oct 3 8:28 AM. Oct 3 8:27 AM. Oct 3 8:27 AM

Better Search Improved Uninformed Search CIS 32

Comp115: Databases. Relational Algebra

Reasoning for Ontology Engineering and Usage

CSC242: Intro to AI. Lecture 21

Decision Trees. an Introduction

Representation. Representation. Representation. Representation. 8 puzzle.

CS 4649/7649 Robot Intelligence: Planning

Exercise 11: Solution - Decision tree

SAT and SMT-based Interactive Configuration for Container Vessel Stowage Planning

Advanced Search Hill climbing

Decision Trees. Nicholas Ruozzi University of Texas at Dallas. Based on the slides of Vibhav Gogate and David Sontag

Towards an Intelligent Planning Knowledge Base Development Environment

1.1 The size of the search space Modeling the problem Change over time Constraints... 21

Modeling Planned and Unplanned Store Stops for the Scenario Based Simulation of Pedestrian Activity in City Centers

The Project The project involved developing a simulation model that determines outcome probabilities in professional golf tournaments.

100-Meter Dash Olympic Winning Times: Will Women Be As Fast As Men?

A Finite Model Theorem for the Propositional µ-calculus

RoboCup-99 Simulation League: Team KU-Sakura2

D-Case Modeling Guide for Target System

TERMINATION FOR HYBRID TABLEAUS

The Use of Genetic Algorithm for Traffic Light and Pedestrian Crossing Control

1. The table below shows the relative frequencies of the ages of the students at Ingham High School.

Pedestrian Dynamics: Models of Pedestrian Behaviour

The Path to Participation in Shooting Sports

Section 5.1 Randomness, Probability, and Simulation

SIDDHARTH INSTITUTE OF ENGINEERING & TECHNOLOGY :: PUTTUR (AUTONOMOUS) Siddharth Nagar, Narayanavanam Road QUESTION BANK (DESCRIPTIVE)

Search I. Tuomas Sandholm Carnegie Mellon University Computer Science Department. [Read Russell & Norvig Chapter 3]

Artificial Intelligence. Uninformed Search Strategies

y ) s x x )(y i (x i r = 1 n 1 s y Statistics Lecture 7 Exploring Data , y 2 ,y n (x 1 ),,(x n ),(x 2 ,y 1 How two variables vary together

Team Description: Building Teams Using Roles, Responsibilities, and Strategies

ROSE-HULMAN INSTITUTE OF TECHNOLOGY Department of Mechanical Engineering. Mini-project 3 Tennis ball launcher

8-1. The Pythagorean Theorem and Its Converse. Vocabulary. Review. Vocabulary Builder. Use Your Vocabulary

Estimating the Probability of Winning an NFL Game Using Random Forests

Cyrus Soccer 2D Simulation

Safety Analysis Methodology in Marine Salvage System Design

Team Competition. Yoav Shoham Computer Science Department Stanford University, California, 94305

Phoenix Soccer 2D Simulation Team Description Paper 2015

YAN GU. Assistant Professor, University of Massachusetts Lowell. Frederick N. Andrews Fellowship, Graduate School, Purdue University ( )

Aryeh Rappaport Avinoam Meir. Schedule automation

Lecturers. Multi-Agent Systems. Exercises: Dates. Lectures. Prof. Dr. Bernhard Nebel Room Dr. Felix Lindner Room

SQUARE ROOTS. Pythagoras theorem has been a perennially interesting. Drawing A SPIRAL OF. ClassRoom

First-Server Advantage in Tennis Matches

Biostatistics & SAS programming

Scarborough Spring 2013 Math Exam I 1. "On my honor, as an Aggie, I have neither given nor received unauthorized aid on this academic work.

Planning. CS 510: Intro to AI October 19 th 2017

Ocean Fishing Fleet Scheduling Path Optimization Model Research. Based On Improved Ant Colony Algorithm

CRICKET ONTOLOGY. Project Description :- Instructor :- Prof: Navjyothi Singh

The Safety Case. The safety case

Week 7 One-way ANOVA

Using Markov Chains to Analyze a Volleyball Rally

Youth Sports Leagues Scheduling

Three New Methods to Find Initial Basic Feasible. Solution of Transportation Problems

Legendre et al Appendices and Supplements, p. 1

SEARCH SEARCH TREE. Node: State in state tree. Root node: Top of state tree

Instrumental Variables

The Safety Case. Structure of Safety Cases Safety Argument Notation

The Cooperative Cleaners Case Study: Modelling and Analysis in Real-Time ABS

Application of Dijkstra s Algorithm in the Evacuation System Utilizing Exit Signs

Practice Plan. United States Youth Soccer Association. Diagram. Activity. Name: Jeff Hopkins. Theme: Ball exploration, dribbling, passing

The system design must obey these constraints. The system is to have the minimum cost (capital plus operating) while meeting the constraints.

Transcription:

COMP 406 Lecture 05 Artificial Intelligence Fiona Yan Liu Department of Computing The Hong Kong Polytechnic University

Learning Outcomes of Intelligent Agents Search agents Uninformed search Informed search Local search Hill climbing search Simulated annealing search Constraint satisfaction problem Games State is defined by variables X i with values from domain D i Goal test is a set of constraints specifying allowable combinations of values for subsets of variables Views any multiagent environment as a game, provided that the impact of each agent on the other is significant Oct. 6, 2015 Knowledge based Agnets 2

Knowledge based Agents Knowledge base (KB) A set of sentences Each sentence is expressed in a language called a knowledge representation language Represent some assertion about the world Inference Derive new sentences from old Tell: add new sentences to the knowledge base Ask: query what is known Knowledge based Agent Tell the knowledge base what it perceives Ask the knowledge base what action is should perform Tell the knowledge base which action was chosen The agent executes the action Oct. 6, 2015 Knowledge based Agents 3

Wumpus World Performance measure gold +1000, death 1000 1 per step, 10 for using the arrow Environment Sensors Squares adjacent to wumpus are smelly Squares adjacent to pit are breezy Glitter iff gold is in the same square Shooting kills wumpus if you are facing it Shooting uses up the only arrow Grabbing picks up gold if in same square Releasing drops the gold in same square Stench, Breeze, Glitter, Bump, Scream Actuators Left turn, Right turn, Forward, Grab, Release, Shoot Oct. 6, 2015 Knowledge based Agents 4

Exploring a Wumpus world Perceive: [Stench, Breeze, Glitter, Bump, Scream] [1,1]: [None, none, none, none, none] Oct. 6, 2015 Knowledge based Agents 5

Exploring a Wumpus world Perceive: [Stench, Breeze, Glitter, Bump, Scream] [1,1]: [None, none, none, none, none] [1,2]: [Stench, none, none, none, none] Oct. 6, 2015 Knowledge based Agents 6

Exploring a Wumpus world Perceive: [Stench, Breeze, Glitter, Bump, Scream] [1,1]: [None, none, none, none, none] [1,2]: [Stench, none, none, none, none] Oct. 6, 2015 Knowledge based Agents 7

Exploring a Wumpus world Perceive: [Stench, Breeze, Glitter, Bump, Scream] [1,1]: 1]: [None, none, none, none, none] [1,2]: [Stench, none, none, none, none] Oct. 6, 2015 Knowledge based Agents 8

Exploring a Wumpus world Perceive: [Stench, Breeze, Glitter, Bump, Scream] [1,1]: [None, none, none, none, none] [1,2]: [Stench, none, none, none, none] [2,1]: [None, breeze, none, none, none] Oct. 6, 2015 Knowledge based Agents 9

Exploring a Wumpus world Perceive: [Stench, Breeze, Glitter, Bump, Scream] [1,1]: [None, none, none, none, none] [1,2]: [Stench, none, none, none, none] [2,1]: [None, breeze, none, none, none] Oct. 6, 2015 Knowledge based Agents 10

Representation Language Knowledge Is contained in agents In the form of sentences In a knowledge representation language That are stored in a knowledge base A presentation language is defined by its syntax Specify the structure of sentences And its semantics, which defines the truth of each sentence The relationship of entailment between sentences A sentence α entails another sentence β if β is true in all worlds where α is true if and only if M ( ) M ( ) Example: The sentence x = 0 entails the sentence xy=0 Oct. 6, 2015 Knowledge based Agents 11

Forward Chaining Idea: fire any rule whose premises are satisfied in the KB, add its conclusion to the KB, until query is found Oct. 6, 2015 Knowledge based Agents 12

Backward Chaining Idea: work backwards from the query q: Avoid loops: check if new subgoal is already on the goal stack Avoid repeated work: check if new subgoal has already been proved true, or has already failed Oct. 6, 2015 Knowledge based Agents 13

Forward Channing and Backward Channing Intend dto query Q2 A B C A^B => D B^C => E A^C => F A^F => G D^F => K G^K => Q1 E=>H H^C =>Q2 Oct. 6, 2015 Knowledge based Agents 14

Decision Tree Given a training set Oct. 6, 2015 Knowledge based Agnets 15

One Example of Decision Tree Each internodes test tan attribute t Each branch corresponds a attribute value Each leave node assigns a classification Oct. 6, 2015 Knowledge based Agnets 16

Choosing an Attribute Entropy (s) () Expected number of bits needed to encode class + or of randomly drawn member of S Gain (S,A) Expected reduction in entropy due to sorting on A Oct. 6, 2015 Knowledge based Agnets 17

Select Next Attribute Oct. 6, 2015 Knowledge based Agnets 18