1 CS B551: Elements of Artificial Intelligence Instructor: Kris Hauser

Slides:



Advertisements
Similar presentations
Artificial Intelligence: Knowledge Representation
Advertisements

Presentation on Artificial Intelligence
Artificial Intelligence By Mr. Ejaz CIIT Sahiwal.
Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2007.
Intelligent Agents Russell and Norvig: 2
Problem Solving and Search Andrea Danyluk September 9, 2013.
Solving Problem by Searching Chapter 3. Outline Problem-solving agents Problem formulation Example problems Basic search algorithms – blind search Heuristic.
ECE457 Applied Artificial Intelligence R. Khoury (2007)Page 1 Please pick up a copy of the course syllabus from the front desk.
An Introduction to Artificial Intelligence. Introduction Getting machines to “think”. Imitation game and the Turing test. Chinese room test. Key processes.
Search: Representation and General Search Procedure Jim Little UBC CS 322 – Search 1 September 10, 2014 Textbook § 3.0 –
Problem Solving and Search in AI Part I Search and Intelligence Search is one of the most powerful approaches to problem solving in AI Search is a universal.
CPSC 322 Introduction to Artificial Intelligence October 6, 2004.
ICS 101 Fall 2011 Introduction to Artificial Intelligence Asst. Prof. Lipyeow Lim Information & Computer Science Department University of Hawaii at Manoa.
Search: Representation and General Search Procedure CPSC 322 – Search 1 January 12, 2011 Textbook § 3.0 –
Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2004.
1 Search Problems (Where reasoning consists of exploring alternatives) R&N: Chap. 3, Sect. 3.1–
CS 357 – Intro to Artificial Intelligence  Learn about AI, search techniques, planning, optimization of choice, logic, Bayesian probability theory, learning,
Uninformed Search Reading: Chapter 3 by today, Chapter by Wednesday, 9/12 Homework #2 will be given out on Wednesday DID YOU TURN IN YOUR SURVEY?
Leroy Garcia 1.  Artificial Intelligence is the branch of computer science that is concerned with the automation of intelligent behavior (Luger, 2008).
Artificial Intelligence Course outline Introduction Problem solving Generic algorithms Knowledge Representation and Reasoning Expert Systems Uncertainty.
Solving problems by searching This Lecture Read Chapters 3.1 to 3.4 Next Lecture Read Chapter 3.5 to 3.7 (Please read lecture topic material before and.
Ch1 AI: History and Applications Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2011.
1 AI and Agents CS 171/271 (Chapters 1 and 2) Some text and images in these slides were drawn from Russel & Norvig’s published material.

ICS 101 Fall 2011 Introduction to Artificial Intelligence Asst. Prof. Lipyeow Lim Information & Computer Science Department University of Hawaii at Manoa.
Artificial Intelligence Introductory Lecture Jennifer J. Burg Department of Mathematics and Computer Science.
CNS 4470 Artificial Intelligence. What is AI? No really what is it? No really what is it?
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.
Lection 3. Part 1 Chapter 2 of Russel S., Norvig P. Artificial Intelligence: Modern Approach.
Outline Agents and environments Rationality PEAS (Performance measure, Environment, Actuators, Sensors) Environment types Agent types Artificial Intelligence.
Intelligent Agents Chapter 2. CIS Intro to AI - Fall Outline  Brief Review  Agents and environments  Rationality  PEAS (Performance measure,
110/19/2015CS360 AI & Robotics AI Application Areas  Neural Networks and Genetic Algorithms  These model the structure of neurons in the brain  Humans.
Psychology of Thinking: Embedding Artifice in Nature.
Dr.Abeer Mahmoud ARTIFICIAL INTELLIGENCE (CS 461D) Dr. Abeer Mahmoud Computer science Department Princess Nora University Faculty of Computer & Information.
Agents CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Chapter 2 Hande AKA. Outline Agents and Environments Rationality The Nature of Environments Agent Types.
I NTELLIGENT A GENTS 1. D EFINITION OF A GENT Anything that: Perceives its environment Acts upon its environment A.k.a. controller, robot 2.
I Robot.
Lecture 3: 18/4/1435 Searching for solutions. Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
Artificial Intelligence and Searching CPSC 315 – Programming Studio Spring 2013 Project 2, Lecture 1 Adapted from slides of Yoonsuck Choe.
Artificial Intelligence
Chapter 5 Constraint Satisfaction Problems
Rational Agency CSMC Introduction to Artificial Intelligence January 8, 2007.
Introduction to Artificial Intelligence CS 438 Spring 2008.
Artificial Intelligence Lecture No. 6 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Rational Agency CSMC Introduction to Artificial Intelligence January 8, 2004.
Intelligent Agents Introduction Rationality Nature of the Environment Structure of Agents Summary.
Introduction to State Space Search
CS382 Introduction to Artificial Intelligence Lecture 1: The Foundations of AI and Intelligent Agents 24 January 2012 Instructor: Kostas Bekris Computer.
1 Solving problems by searching Chapter 3. 2 Outline Problem types Example problems Assumptions in Basic Search State Implementation Tree search Example.
1 CS B551: Elements of Artificial Intelligence Instructor: Kris Hauser
Intelligent Agents Chapter 2. How do you design an intelligent agent? Definition: An intelligent agent perceives its environment via sensors and acts.
Lecture 2: Problem Solving using State Space Representation CS 271: Fall, 2008.
Artificial Intelligence
Search Problems Russell and Norvig: Chapter 3, Sections 3.1 – 3.3 CS121 – Winter 2003.
1 Search Problems (Where we see problems as the exploration of alternatives) R&N: Chap. 3, Sect. 3.1–
Constraint satisfaction
Artificial Intelligence Lecture No. 6
Artificial Intelligence and Searching
EA C461 – Artificial Intelligence Problem Solving Agents
AI and Agents CS 171/271 (Chapters 1 and 2)
Russell and Norvig: Chapter 3, Sections 3.1 – 3.3
Psychology of Thinking: Embedding Artifice in Nature
Solving problems by searching
Search.
Search.
Instructor: Kris Hauser
Artificial Intelligence and Searching
Artificial Intelligence and Searching
Solving problems by searching
Presentation transcript:

1 CS B551: Elements of Artificial Intelligence Instructor: Kris Hauser

2 Recap   Brief history and philosophy of AI  What is intelligence? Can a machine act/think intelligently? Turing machine, Chinese roomTuring machine, Chinese room

3 Agenda   Agent Frameworks   Problem Solving and the Heuristic Search Hypothesis

4 Agent Frameworks

5 Definition of Agent  Anything that: Perceives its environmentPerceives its environment Acts upon its environmentActs upon its environment  A.k.a. controller, robot

6 Definition of “Environment”  The real world, or a virtual world  Rules of math/formal logic  Rules of a game  …  Specific to the problem domain

7 Environment ? Agent Percepts Actions Actuators Sensors

8 Environment ? Agent Percepts Actions Actuators Sensors Sense – Plan – Act

9 “Good” Behavior  Performance measure (aka reward, merit, cost, loss, error)  Part of the problem domain

10 Exercise  Formulate the problem domains for: Tic-tac-toeTic-tac-toe A web serverA web server An insectAn insect A student in B551A student in B551 A doctor diagnosing a patientA doctor diagnosing a patient IU’s basketball teamIU’s basketball team The U.S.A.The U.S.A. What is/are the: Environment Percepts Actions Performance measure How might a “good- behaving” agent process information?

11 Types of agents  Simple reflex (aka reactive, rule- based)  Model-based  Goal-based  Utility-based (aka decision-theoretic, game-theoretic)  Learning (aka adaptive)

12 Simple Reflex Percept Action Rules Interpreter State

13 Simpl(est) Reflex Action Rules Interpreter State Observable Environment

14 Simpl(est) Reflex Action Rules State Observable Environment

15 Rule-based Reflex Agent AB if DIRTY = TRUE then SUCK else if LOCATION = A then RIGHT else if LOCATION = B then LEFT

16 Model-Based Reflex Percept Action Rules Interpreter State Action

17 Model-Based Reflex Percept Action Rules Model State Action

18 Model-Based Reflex Percept Action Rules Model State Action State estimation

19 Model-Based Agent AB Rules: if LOCATION = A then if HAS-SEEN(B) = FALSE then RIGHT else if HOW-DIRTY(A) > HOW-DIRTY(B) then SUCK else RIGHT … State: LOCATION HOW-DIRTY(A) HOW-DIRTY(B) HAS-SEEN(A) HAS-SEEN(B) Model: HOW-DIRTY(LOCATION) = X HAS-SEEN(LOCATION) = TRUE

20 Model-Based Reflex Agents  Controllers in cars, airplanes, factories  Robot obstacle avoidance, visual servoing

21 Goal-Based, Utility-Based Percept Action Rules Model State Action

22 Goal- or Utility-Based Percept Action Decision Mechanism Model State Action

23 Goal- or Utility-Based State Decision Mechanism Action Model Simulated State Action Generator Performance tester Best Action Percept Model

24 Goal-Based Agent

25 Big Open Questions: Goal-Based Agent = Reflex Agent? Percept Action DM Rules Model State ActionMental Action Mental State Mental Model Physical Environment “Mental Environment”

26 Big Open Questions: Goal-Based Agent = Reflex Agent? Percept Action DM Rules Model State ActionMental Action Mental State Mental Model Physical Environment “Mental Environment”

27 With Learning Percept Action Decision Mechanism Model/Learning Action State/Model/DM specs

28 Big Open Questions: Learning Agents  The modeling, learning, and decision mechanisms of artificial agents are tailored for specific tasks  Are there general mechanisms for learning?  If not, what are the limitations of the human brain?

29 Types of Environments  Observable / non-observable  Deterministic / nondeterministic  Episodic / non-episodic  Single-agent / Multi-agent

30 Observable Environments Percept Action Decision Mechanism Model State Action

31 Observable Environments State Action Decision Mechanism Model State Action

32 Observable Environments State Action Decision Mechanism Action

33 Nondeterministic Environments Percept Action Decision Mechanism Model State Action

34 Nondeterministic Environments Percept Action Decision Mechanism Model Set of States Action

35 Agents in the bigger picture  Binds disparate fields (Econ, Cog Sci, OR, Control theory)  Framework for technical components of AI Components are useful and rich topics themselvesComponents are useful and rich topics themselves Rest of class primarily studies componentsRest of class primarily studies components  Casting problems in the framework sometimes brings insights Search Knowledge rep. Planning Reasoning Learning Agent Robotics Perception Natural language... Expert Systems Constraint satisfaction

36 Problem Solving and the Heuristic Search Hypothesis

37 Example: 8-Puzzle Initial stateGoal state State: Any arrangement of 8 numbered tiles and an empty tile on a 3x3 board

38 Successor Function: 8-Puzzle SUCC(state)  subset of states The successor function is knowledge about the 8-puzzle game, but it does not tell us which outcome to use, nor to which state of the board to apply it.

39 Across history, puzzles and games requiring the exploration of alternatives have been considered a challenge for human intelligence:  Chess originated in Persia and India about 4000 years ago  Checkers appear in 3600-year-old Egyptian paintings  Go originated in China over 3000 years ago So, it’s not surprising that AI uses games to design and test algorithms

40 Exploring Alternatives  Problems that seem to require intelligence require exploring multiple alternatives  Search: a systematic way of exploring alternatives

41 Defining a Search Problem  State space S  Successor function: x  S  SUCC (x)  2 S  Initial state s 0  Goal test: x  S  GOAL? (x) =T or F  Arc cost S

42 Problem Solving Agent Algorithm 1.I  sense/read initial state 2.GOAL?  select/read goal test 3.SUCC  select/read successor function 4.solution  search(I, GOAL?, SUCC) 5.perform(solution)

43 State Graph  Each state is represented by a distinct node  An arc (or edge) connects a node s to a node s’ if s’  SUCC (s)  An arc (or edge) connects a node s to a node s’ if s’  SUCC (s)  The state graph may contain more than one connected component

44 Solution to the Search Problem  A solution is a path connecting the initial node to a goal node (any one)  The cost of a path is the sum of the arc costs along this path  An optimal solution is a solution path of minimum cost  There might be no solution ! I G

45 Pathless Problems  Sometimes the path doesn’t matter  A solution is any goal node  Arcs represent potential state transformations  E.g. 8-queens, Simplex for LPs, Map coloring I G

46 8-Queens Problem  State repr. 1 Any non- conflicting placement of 0-8 queensAny non- conflicting placement of 0-8 queens  State repr. 2 Any placement of 8 queensAny placement of 8 queens

47 Intractability  It may not be feasible to construct the state graph completely  n-puzzle: (n+1)! states  k-queens: k k states

48 Heuristic Search Hypothesis (Newell and Simon, 1976)  Intelligent systems must use heuristic search to find solutions efficiently  Heuristic: knowledge that is not presented immediately by the problem specification “The solutions to problems are represented as symbol structures. A physical symbol system exercises its intelligence in problem solving by search - that is, by generating and progressively modifying symbol structures until it produces a solution structure.”

49 Example  I’ve thought of a number between 1 and 100. Guess it.

50 Example  I’ve picked a password between 3 and 8 alphanumeric characters that I’ll never forget. Guess it.

51 Discussion  Debated whether all intelligence is modifying symbol structures… e.g., Elephants don’t play chess, Brooks ’91e.g., Elephants don’t play chess, Brooks ’91  But for those tasks that do require modifying symbol structures, hypothesis seems true Perhaps circular logic?Perhaps circular logic?

52 Topics of Next 3-4 Classes  Blind Search Little or no knowledge about how to searchLittle or no knowledge about how to search  Heuristic Search How to use heuristic knowledgeHow to use heuristic knowledge  Local Search With knowledge about goal distributionWith knowledge about goal distribution

53 Recap  Agent: a sense-plan-act framework for studying intelligent behavior  “Intelligence” lies in sophisticated components

54 Recap  General problem solving framework State spaceState space Successor functionSuccessor function Goal testGoal test => State graph=> State graph  Search is a methodical way of exploring alternatives

55 Homework  Register!  Readings: R&N Ch

56 What is a State?  A compact representation of elements of the world relevant to the problem at hand Sometimes very clear (logic, games)Sometimes very clear (logic, games) Sometimes not (brains, robotics, econ)Sometimes not (brains, robotics, econ)  History is a general-purpose state representation: [p 1,a 1,p 2,a 2,…]  State should capture how history affects the future