Slides:



Advertisements
Similar presentations
Solving problems by searching Chapter 3. Outline Problem-solving agents Problem types Problem formulation Example problems Basic search algorithms.
Advertisements

Announcements Course TA: Danny Kumar
Intelligent Agents Chapter 2.
Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2007.
January 26, 2003AI: Chapter 3: Solving Problems by Searching 1 Artificial Intelligence Chapter 3: Solving Problems by Searching Michael Scherger Department.
Solving Problem by Searching Chapter 3. Outline Problem-solving agents Problem formulation Example problems Basic search algorithms – blind search Heuristic.
14 Jan 2004CS Blind Search1 Solving problems by searching Chapter 3.
Feng Zhiyong Tianjin University Fall  datatype PROBLEM ◦ components: INITIAL-STATE, OPERATORS, GOAL- TEST, PATH-COST-FUNCTION  Measuring problem-solving.
SEARCH APPLICATIONS David Kauchak CS30 – Spring 2015.
14 Jan 2004CS Blind Search1 Solving problems by searching Chapter 3.
1 Solving problems by searching Chapter 3. 2 Why Search? To achieve goals or to maximize our utility we need to predict what the result of our actions.
CHAPTER 3 CMPT Blind Search 1 Search and Sequential Action.
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.
A RTIFICIAL I NTELLIGENCE Problem-Solving Solving problems by searching.
CS 380: Artificial Intelligence Lecture #3 William Regli.
Search Problems Russell and Norvig: Chapter 3, Sections 3.1 – 3.3 Slides adapted from: robotics.stanford.edu/~latombe/cs121/2003/home.htm by Prof. Jean-Claude.
1 Solving problems by searching Chapter 3. 2 Why Search? To achieve goals or to maximize our utility we need to predict what the result of our actions.
Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2004.
Artificial Intelligence
Intelligent agents Intelligent agents are supposed to act in such a way that the environment goes through a sequence of states that maximizes the performance.
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?
Intelligent agents Intelligent agents are supposed to act in such a way that the environment goes through a sequence of states that maximizes the performance.
Solving problems by searching
1 Solving problems by searching Chapter 3. 2 Why Search? To achieve goals or to maximize our utility we need to predict what the result of our actions.
Solving Problems by Searching
lib. umn. edu/torre107/si/pics/superficialintelligence2
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.
Copyright R. Weber Search in Problem Solving Search in Problem Solving INFO 629 Dr. R. Weber.
1 Problem Solving and Searching CS 171/271 (Chapter 3) Some text and images in these slides were drawn from Russel & Norvig’s published material.

CMSC 471 Spring 2014 Class #3 Tue 2/4/14 Problem Solving as Search Professor Marie desJardins,
Problem solving.
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.
Outline Agents and environments Rationality PEAS (Performance measure, Environment, Actuators, Sensors) Environment types Agent types Artificial Intelligence.
Basic concepts of Searching
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.
Carla P. Gomes CS4700 CS 4700: Foundations of Artificial Intelligence Prof. Carla P. Gomes Module: Search I (Reading R&N: Chapter.
1 Solving problems by searching 171, Class 2 Chapter 3.
Lecture 3: 18/4/1435 Searching for solutions. Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
An Introduction to Artificial Intelligence Lecture 3: Solving Problems by Sorting Ramin Halavati In which we look at how an agent.
SOLVING PROBLEMS BY SEARCHING Chapter 3 August 2008 Blind Search 1.
A General Introduction to Artificial Intelligence.
Problem solving by search Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
Artificial Intelligence
Problem Solving Agents
Goal-based Problem Solving Goal formation Based upon the current situation and performance measures. Result is moving into a desirable state (goal state).
CPSC 420 – Artificial Intelligence Texas A & M University Lecture 3 Lecturer: Laurie webster II, M.S.S.E., M.S.E.e., M.S.BME, Ph.D., P.E.
Artificial Intelligence Lecture No. 6 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Uninformed Search.
Solving Problems by Searching 제 4 주 강의. Problem solving agent What to do by finding sequences of actions that lead to desirable states the current state.

1 Solving problems by searching Chapter 3. 2 Outline Problem types Example problems Assumptions in Basic Search State Implementation Tree search Example.
Lecture 2: Problem Solving using State Space Representation CS 271: Fall, 2008.
More with Ch. 2 Ch. 3 Problem Solving Agents
Introduction to Artificial Intelligence
Introduction to Artificial Intelligence
David Kauchak CS30 – Spring 2016
Problem Solving by Searching
Problem Solving as Search
Intelligent Agents Chapter 2.
Solving problems by searching
CS 2710, ISSP 2160 Foundations of Artificial Intelligence
EA C461 – Artificial Intelligence Problem Solving Agents
Russell and Norvig: Chapter 3, Sections 3.1 – 3.3
ARTIFICIAL INTELLIGENCE
David Kauchak CS51A – Spring 2019
Solving Problems by Searching
Presentation transcript:

Uninformed Search CS457 David Kauchak Fall 2011 Adapted from notes from: Sara Owsley Sood, Eric Eaton

Administrative  Final project proposals  Assignment 5

AI is a huge field  So, what is AI…  One definition: “Building programs that enable computers to do what humans can do.”  for example: read, walk around, drive, play games, solve problems, learn, have conversations…

How do we measure success? there are many interpretations of this goal… Think like a human Cognitive Modeling Think rationally Logic-based Systems Act like a human Turing Test Act rationally Rational Agents thinking vs. acting human vs. rational “Building programs that enable computers to do what humans can do.”

How do we make a computer "smart?" Computer, clean the house! This one's got no chance… Um… OK…??

Search Reasoning with knowledge and uncertainty Fundamental problem of AI Reasoning with Utility Learning Many different ways of making an agent intelligent

Today: search  Brute force approach  Very unlikely how humans do it  Enumerate out possibilities in a reasonable order Think like a human Cognitive Modeling Think rationally Logic-based Systems Act like a human Turing Test Act rationally Rational Agents

What is an “agent”?  Human agent  sensors = eyes, ears, etc  actuators = hands, legs, mouth, etc  Software agent  sensors = any input devices - keyboard gives it keystrokes, commands over the network, files give it text or data  actuators = any output devices - using the screen to display things, pass things over the network, write things to files, etc “anything that can be viewed as perceiving its environment through sensors and acting upon that environment through actuators”

search agents  A search agent is an agent that approaches problem solving via search  To accomplish a task: 1. Formulate problem and goal 2. Search for a sequence of actions that will lead to the goal (the policy) 3. Execute the actions one at a time done offline!

Formulating the problem: What information does a search agent need to know to plan out a solution?

Formulating the problem:  Initial state: where are we starting from  what are the states?  Actions: what are the possible actions  Transition model: aka state-space, mapping from action x state to state  Goal/goal test: what is the end result we’re trying to achieve?  Cost: what are the costs of the different actions

Let’s start with our vacuum cleaner example  State space  Just two possible spaces in the house (though this generalizes easily to more)  each space can either be dirty or clean  vaccum is in one space at a time

Let’s start with our vacuum cleaner example  State space  Just two possible spaces in the house (though this generalizes easily to more)  each space can either be dirty or clean  vaccum is in one space at a time How many states?

Vacuum world Only 8 states (options spaces )

Vacuum world goal state(s)?

Vacuum world

 Actions?  move left  move right  suck  no-op

Vacuum world: state space/transition model

Problem characteristics What are some of the challenges of solving even this simple version in the real world?

Problem characteristics  Fully observable vs. partially observable  do we have access to all of the relevant information  noisy information, inaccurate sensors, missing information  Deterministic vs. non-deterministic (stochastic)  outcome of actions are not always certain  probabilistic sometimes  Known/unknown environment  Do we know a priori what the problem space is like (e.g. do we have a map)

Example: vacuum world  Deterministic, fully observable  start in #5. Solution?

Example: vacuum world  Sensorless  start in {1,2,3,4,5,6,7,8} Solution?

Example: Vacuum world  Non-deterministic and/or partially observable  Nondeterministic: Suck may dirty a clean carpet  Partially observable: location, dirt at current location.  Percept: [L, Clean], i.e., start in #5 or #7 Solution?

Vacuum world  Cost?

Another problem: 8-Puzzle

8-puzzle  goal  states?  actions?  path cost?

8-puzzle  state:  all 3 x 3 configurations of the tiles on the board  actions:  Move Blank Square Left, Right, Up or Down.  This is a more efficient encoding than moving each of the 8 distinct tiles  path cost:  +1 for each action

The 8-Queens Problem State transition: ? Initial State: ? Actions: ? Goal: Place eight queens on a chessboard such that no queen attacks any other!

Missionaries and Cannibals Three missionaries and three cannibals wish to cross the river. They have a small boat that will carry up to two people. Everyone can navigate the boat. If at any time the Cannibals outnumber the Missionaries on either bank of the river, they will eat the Missionaries. Find the smallest number of crossings that will allow everyone to cross the river safely.

Cryptarithmetic  Find an assignment of digits (0,..., 9) to letters so that a given arithmetic expression is true. examples: SEND + MORE = MONEY and FORTY Solution: TEN SIXTY F=2, O=9, R=7, etc.

Remove 5 Sticks Given the following configuration of sticks, remove exactly 5 sticks in such a way that the remaining configuration forms exactly 3 squares.

Water Jug Problem Given a full 5-gallon jug and a full 2-gallon jug, fill the 2-gallon jug with exactly one gallon of water. 5 2

Some real-world problems  Route finding  directions, maps  computer networks  airline travel  VLSI layout  Touring (traveling salesman)  Agent planning

Search algorithms  We’ve defined the problem  Now we want to find the solution!  Use search techniques  offline, simulated exploration of state space by generating successors of already-explored states (a.k.a. expanding states)  Start at the initial state and search for a goal state  What are candidate search techniques?  BFS  DFS  Uniform-cost search  Depth limited DFS  Depth-first iterative deepening