AI Problem-Solving Methods. Outline

Similar documents
Computer Algorithms. NP-Complete Problems. CISC 4080 Yanjun Li

1. I have 4 sides. My opposite sides are equal. I have 4 right angles. Which shape am I?

Flowers for Algernon by Daniel Keyes Harcourt: New York 2004

The Basics of Robot Mazes Teacher Notes

(Refer Slide Time: 2:03)

Jean Piaget: A Cognitive Account of Development

Society tells us otherwise. Our broke family and friends tell us otherwise.

MEDICAL DECISION SUPPORT IN CLINICAL RECORD MANAGEMENT SYSTEMS. Stefano Rizzi DEIS - Facoltˆ di Ingegneria, Universitˆ di Bologna, Italy

Unit B: Decision Making

CPSC 211 Data Structures & Implementations (c) Texas A&M University [ 313]

Session 6 Number Theory

The dispute is about the sale of a payment protection insurance (PPI) policy in connection with a credit card account with the firm in April 2007.

Midterm Practice Problems

STRAND: Number and Operations Algebra Geometry Measurement Data Analysis and Probability STANDARD:

Sophia s War: a Tale of the Revolution Teaching Guide

WRITING PROOFS. Christopher Heil Georgia Institute of Technology

Prime Factorization 0.1. Overcoming Math Anxiety

This puzzle is based on the following anecdote concerning a Hungarian sociologist and his observations of circles of friends among children.

Current Standard: Mathematical Concepts and Applications Shape, Space, and Measurement- Primary

Graph Theory Problems and Solutions

Mathematical Induction

The fundamental question in economics is 2. Consumer Preferences

Jack s Dyslexia Index indicates he has dyslexic difficulties that are mild in extent.

Moving As A Child Part 2 Mini-Story Lesson

Koko's Kitten/Dr. Francine Patterson/Created by Long Beach District

CSC384 Intro to Artificial Intelligence

Grammar Unit: Pronouns

Regular Languages and Finite Automata

IFS-8000 V2.0 INFORMATION FUSION SYSTEM

Laboratory work in AI: First steps in Poker Playing Agents and Opponent Modeling

Scenario-based Requirements Engineering and User-Interface Design

1.2 Forms and Validity

1. The most dominant detail (after you found it) 2. The feelings in your body

1. Although Atticus did not want his children in court, he defends Jem's right to know what has

Creating, Solving, and Graphing Systems of Linear Equations and Linear Inequalities

ARTIFICIAL INTELLIGENCE (CSCU9YE) LECTURE 6: MACHINE LEARNING 2: UNSUPERVISED LEARNING (CLUSTERING)

Genetic Algorithms and Sudoku

CSE 135: Introduction to Theory of Computation Decidability and Recognizability

Plotting Ordered Pairs on a Four Quadrant Grid Grade Five

Clock Arithmetic and Modular Systems Clock Arithmetic The introduction to Chapter 4 described a mathematical system

Fractions as Numbers INTENSIVE INTERVENTION. National Center on. at American Institutes for Research

My husband and I hope that the resources we offer to use along with the What s in the Bible? DVD series will be a blessing to you and your family.

Microsoft PowerPoint Exercises 4

Decomposing Numbers (Operations and Algebraic Thinking)

Opening Our Hearts, Transforming Our Losses

Exhibit memory of previously-learned materials by recalling facts, terms, basic concepts, and answers. Key Words

Cancer: Genetic testing can save lives

God Has Gifts for You

Einstein s Theory of Special Relativity Made Relatively Simple!

5. Develop two test questions based on the first chapter:

Inductive Reasoning Page 1 of 7. Inductive Reasoning

WILL WE BE MARRIED IN THE LIFE AFTER DEATH?

CRITICAL PATH ANALYSIS AND GANTT CHARTS

Chapter 11 Number Theory

Answer: The relationship cannot be determined.

The Chocolate Touch: Chapters 1-2

Extending Data Processing Capabilities of Relational Database Management Systems.

FREQUENTLY ASKED QUESTIONS AND ANSWERS ABOUT WHOLE BRAIN TECHNOLOGY

CpSc810 Goddard Notes Chapter 7. Expert Systems

Volume of Pyramids and Cones

OA3-10 Patterns in Addition Tables

Kenken For Teachers. Tom Davis June 27, Abstract

You ve read the book now go deeper!

Planning Guide. Grade 6 Factors and Multiples. Number Specific Outcome 3

1 Solving LPs: The Simplex Algorithm of George Dantzig

How to Make the Most of Excel Spreadsheets

vii TABLE OF CONTENTS CHAPTER TITLE PAGE DECLARATION DEDICATION ACKNOWLEDGEMENT ABSTRACT ABSTRAK

CMPSCI611: Approximating MAX-CUT Lecture 20

Reading Questions THE STRANGER PART ONE

The importance of Prayer life

Kodu Curriculum: Single Session Intro

Credit Score Basics, Part 1: What s Behind Credit Scores? October 2011

Application of Function Composition

Tom wants to find two real numbers, a and b, that have a sum of 10 and have a product of 10. He makes this table.

Pigeonhole Principle Solutions

Hypothesis testing. c 2014, Jeffrey S. Simonoff 1

The Taxman Game. Robert K. Moniot September 5, 2003

Five High Order Thinking Skills

How To Write A Diagram

Commutative Property Grade One

ROMEO AND JULIET: Act I Reading and Study Guide

An Introduction to The A* Algorithm

Brain U Learning & Scientific Reasoning Keisha Varma. Summer 2011

There are basically three options available for overcoming barriers to learning:

ACH 1.1 : A Tool for Analyzing Competing Hypotheses Technical Description for Version 1.1

DRAW SOME MORE TOYS FOR THEM TO PLAY WITH

ROMEO AND JULIET: Act I Reading and Study Guide

4. 32 cookies were divided among some children. Each child got 4 cookies. How many children were there?

Formal Languages and Automata Theory - Regular Expressions and Finite Automata -

Chapter 1. Computation theory

Differentiated Instruction Strategies

The Chinese Remainder Theorem

Photoillustration: Harold A. Perry; photos: Jupiter Images

Mathematics Task Arcs

Of Mice and Men Unit Test Matching: **Please match the description of the character to each character below. Please use all capital letters!

8 Divisibility and prime numbers

Problem of the Month: Once Upon a Time

Unit 7 The Number System: Multiplying and Dividing Integers

Transcription:

AI ProblemSolving Methods Luger, Part II, Ch 3 & Reference Texts Outline Classic AI Problemsolving methods State space search Search strategies Blind searches

Intelligence and Symbol Systems Physical symbol system hypothesis (Newell & Simon 76): Intelligence resides in physical symbol systems (collections of patterns and processes) à Principles of traditional AI methods: Symbols to describe the world Searches to select a solution among alternative results from operations on symbol patterns Architectures to support symbol systems in ways that do not depend on the implementation of symbols AI as representation and search Given a problem, classic AI approaches: Define symbol structures & operations (actions) Develop efficient and correct search techniques

Building AI programs Define problem precisely Analyze & represent the task knowledge Choose & apply representation and reasoning techniques Problemsolving techniques AI Problem Initial state State Space Problem Search the problem for a solution Goal state

State Space Problems A problem space consists of states and operators States specify values of all attributes of interest in the world Operators change one state into another specified by Preconditions: values certain attributes must have to enable operators application in a state Postconditions: attributes of a state altered by an operator application Problem Formulation: Example 1 A water jug problem Jugs have no scale measurement You can empty the jug or pour from one jug to fill the other 3 gallons 5gallon jug 1 gallon 2gallon jug 1 gallon 5gallon jug No water 2gallon jug Can you formulate this problem into a state space search problem?

Example 1 (cont.) Toy problem: Water jug problem States: amount of water in both jugs Actions: Empty large, Empty small, Pour from small to (empty) large, Pour from large to (empty) small Goal: specified amount of water in both jugs Path cost: total number of actions applied Problem formulation: Example 2 Realworld problem: Find a driving route from city A to city B States: location specified by city Actions: driving along the roads between cities Goal: city B Path cost: total distance or expected travel time

Problem formulation: Example 3 5 4 6 1 8 7 3 2 Start state 1 2 3 8 4 7 6 5 Goal state Toy problem: The 8puzzle States: location of each tile and also the blank Actions: blank moves left, right, up or down Goal: state matches the goal configuration Path cost: length of path (each action step cost 1) More Example Problems Real world problems Touring and travelling salesman problems VLSI layout Robot navigation

Problem formulation Key elements Representation of states and actions Abstraction, i.e., removing details of representation while maintaining validity Efficiency State Space Problems: Representation Problem formulation à Representation à Search Representation states operator specifications Example: a water jug problem States: amount of water in both jugs (b, s) where b is amount of water in a big (5gal) jug s is amount of water in a small (2gal) jug say, initial state = (5, 2) and goal state = (1, 0)

Water Jug Problem (Cont.) when one of the jug is not empty Operators: empty big empty small Preconditions Postconditions b > 0 (0, s) s > 0 (b, 0) when one of the jug is empty big is empty small is empty b = 0, s > 0 (s, 0) b > 0, s = 0 (b2, 2) if b 2 (0, b) b < 2 Water Jug Problem (Cont.) Operators: 1. empty big 2. empty small 3. big is empty 4. small is empty Precond Postcond b > 0 (0, s) s > 0 (b, 0) b = 0, s > 0 (s, 0) b > 0, s = 0 (b2, 2) if b 2 (0, b) b < 2 Solution path: 2, 4, 2, 4, 2 Init: (5, 2) goal: (1, 0) (5, 2) 1 2 (0, 2) (5, 0) 3 (2, 0).... (1, 0)

Characterizing problems Characterizing problems help find effective search strategies: Decomposibility à divideconquer, parallelism Examples: Integration problem: (3x x 2 2) dx 3x dx x 2 dx 2 dx Block world: A O1: put_ontable(x) O2: stack(x, Y) C A B B C Characterizing problems (contd.) Solution types: a state or a path? Examples: Natural Language Understanding search for interpretation of a sentence (e.g., pasta salad vs. dog food) Water jug problem Does the search need to record the path of the problemsolving process as it proceeds?

Characterizing problems (contd.) Solution steps: Ignorable? only care about the result (e.g., theorem proving) à search needs only control Recoverable? solution steps can be undone (e.g., 8 puzzle) à search additionally needs backtrack mechanisms Irrecoverable? solution steps can t be undone (e.g., chess) à search needs planning process Characterizing problems (contd.) Solution quality: Absolute? (e.g., question answering problem given a goal state ) à search for optimal solution Relative? (e.g., traveling salesman problem no prior goal state) à search for any solution

Characterizing problems (contd.) Predictability of the problem universe Certain outcome? (e.g., 8 puzzle ) à search needs planning in open loop control Uncertain outcome? (e.g., bridge due to incomplete information, nondeterministic natures of controlling robot arms) à search needs planning with revision (i.e., closed loop control) Problemsolving techniques Good representations are the key to good problemsolving techniques Once a problem is described using appropriate representation, the problem is almost solved

Problemsolving techniques (contd) General problemsolving techniques: Generate and test Describe and match Means ends Analysis Problem Reduction Generate and test Used in analysis task e.g. diagnosis Disease1 Disease2 Disease3 goal state H B C caused_by E F G causes A B C D Symptom3 Symptom1 Symptom2 initial state Good generator must be complete, nonredundant, informed e.g., finding a combination lock of a three twodigit numbers 000000 à 100 3 combinations if we know that each number is prime à 25 3 combinations

Describe and Match Featuredbased à classification Describe: What are the features to classify circle and ovals? What about an image of a man vs. a woman? Describe and Match (contd) Similaritybased à analogy [Winston, 97] Example: Given A, B and C Which of the five choices is related to C similarly to how A relates to B?

Analogy Example Describe How objects are arranged e.g., leftof, above How each object is transformed e.g., smaller, disappear, rotated Representation C deleted C above above R enlarged R inside Leftof T unchanged T Analogy Example (contd) Detecting objects arrangement Leftof, Rightof, Above, Below: compute center of area of an object then divide area into four quadrants Examples: Above leftof

Analogy Example (contd) Detecting objects arrangement Inside/Outside: Draw a line from center of one object to infinity If the line touches the other object odd number of times à inside Examples: Analogy Example (contd) Match Find associations of transformed objects Match relations between associated objects

Issues Analogy Example (contd) Graph matching is intractable # possible associations = n! for n transformed objects Inexact match Rank similarity by measuring degree of overlapping e.g., transformations (e.g., unchanged, scaled, rotated) may have different weighting scores Ambiguity Issues Analogy Example (contd) Ambiguity Delete large, or Delete small and shrink size A A A A

Describe and Match (contd) Abstraction à summarization, story understanding Example: [Winston, 97] Thomas and Albert Thomas and Albert respect each other s technical judgment and decided to form a company together. Thomas learned that Albert was notoriously absentminded whereupon he insisted that Albert have nothing to do with the proposed company s finances. This angered Albert so much that he backed out of their agreement, hoping that Thomas would be disappointed. 1. What is this story about? 2. What is the result? 3. In what way is this story like the story of John and Mary? John and Mary John and Mary loved each other and decided to be married. Just before the wedding, John discovered that Mary s father was secretly smuggling stolen art through Venice. After struggling with his conscience for days, John reported Mary s father to the police. Mary understood John s decision, but she despised him for it nevertheless; she broke their engagement knowing that he would suffer. Abstraction Story can be abstracted as combinations of mental states events ve event ve event Mental state Initiates Terminates Corefers

Mental States & Events Recursion Change mind Perseverance ve event ve event Mental state Success Failure Enablement Motivation Initiates Terminates Corefers ve tradeoff loss resolution ve tradeoff ve coref Mixed blessing Hidden blessing ve blessing Mental States & Events (contd) Motivation Success Success born of adversity Intentional problem resolution Retaliation (to return like for like, evil for evil) ve event ve event Mental state Initiates Terminates Corefers Perspective 1 Perspective 2

Story Understanding T learned that A was notoriously absentminded where upon he insisted that A have nothing to do with the proposed company s finances. Thomas s perspective Respect Discovery about A Form company Thought about company s finance Disappoint Ban Albert Albert s perspective Respect T and A respect each other s technical judgment Form company Anger Thought about agreement Withdrawal and decided to form a company together. This angered A so much that he backed out of their agreement, hoping that T would be disappointed Story Understanding (contd) Thomas s perspective Albert s perspective Success Success Intentional Problem Resolution Loss Retaliation ve Tradeoff

Story Understanding (contd) Summary: Albert retaliated against Thomas because Thomas went through an intentional problem resolution that was bad for Robert. The retaliation caused a loss for Thomas and a positive tradeoff for Albert. The loss reversed Thomas s previous success, and the positive tradeoff reversed Albert s previous success. Question Answering: 1. What is this story about? most highly connected unit Retaliation 2. What is the result? top level units joined with central unit loss (Thomas) and positive tradeoff (Robert) 3. In what way is this story like the story of John and Mary? Both involve retaliation, also success, intention problem resolution, loss and positive tradeoff Success Loss Intentional Problem Resolution Retaliation all common units Success ve Tradeoff Meansends Analysis Idea: to reduce difference between goal state and current state I O 3 S T G O 1 O 2 O 3 Continue until the path between I and G is connected Applied in planning

Problem Reduction Goaldirected: Andgoals, Orgoals trees Examples: planning, expert system, theorem proving Open Safe (locked by key) Unlock Breakin Turn key Pick lock Blow up safe Insert key Get key Access Get Know Get to lock Tool How Dynamite Study Learn from books from crooks Get Matches Problem Reduction (contd) Goaldirected: Andgoals, Orgoals trees Examples: planning, expert system, theorem proving Given: s, t true and the following implication rules 1. q p 2. 3. r p v q p 4. 5. s r t r q r u 6. s u v Prove or disprove p t s Change the graph to AND graph, can you prove p? Is q p and r p the same as q r p?

Recap: Problemsolving techniques General problemsolving techniques Generate and test Describe and match abstraction featurebased similaritybased Means ends Analysis Problem Reduction Representations how to describe problem space what to abstract Search choose best alternatives Pattern matching when to terminate search Search Control Control Problem: When searching for a solution path from an initial state, there may be many alternatives to move from one state to another. How does the system select the appropriate state to move to? Try all exhaustive search Try most likely one AI search using heuristics