Problem solving What is problem solving? Weak and strong methods.

Slides:



Advertisements
Similar presentations
Artificial Intelligence: Knowledge Representation
Advertisements

CMSC 471 Fall 2002 Class #5-6 – Monday, September 16 / Wednesday, September 18.
Heuristic Search techniques
CMSC 671 Fall 2005 Class #5 – Thursday, September 15.
Presentation on Artificial Intelligence
State Space Representation and Search
Ch 4. Heuristic Search 4.0 Introduction(Heuristic)
BackTracking Algorithms
Sudoku Puzzles.
Robotics Versus Artificial Intelligence. Search. SearchSearch “All AI is search” “All AI is search”  Game theory  Problem spaces Every problem is a.
Search Techniques MSc AI module. Search In order to build a system to solve a problem we need to: Define and analyse the problem Acquire the knowledge.
Data Structures and Algorithms Data Structures and Algorithms (CS210/ESO207/ESO211) Lecture 12 Application of Stack and Queues Application of Stack and.
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.
Problem Solving How do people solve problems? What factors influence the ways they solve different types of problems?
Search: Representation and General Search Procedure CPSC 322 – Search 1 January 12, 2011 Textbook § 3.0 –
State-Space Searches. State spaces A state space consists of –A (possibly infinite) set of states The start state represents the initial problem Each.
Problem Solving. Well-defined problems –Much studied in AI –Requires search –Domain general heuristics for solving problems What about ill-defined problems?
Computer Simulation (1). 8 A (8) Initial State 44 Goal State B (5) C (3) A (8) B (5) C (3) Step 1 Step 2 Step 3 Step 4 Step 5 Step 6 Step 7.
Robotics Versus Artificial Intelligence. Search. SearchSearch “All AI is search” “All AI is search”  Game theory  Problem spaces Every problem is a.
Problem Solving Shortcuts through the Problem Space.
Problem Solving. Well-defined problems –Much studied in AI –Requires search –Domain general heuristics for solving problems What about ill-defined problems?
Cognitive Processes PSY 334 Chapter 8 – Problem Solving.
1 What do we have so far? Basic biology of the nervous system Motivations Senses Learning Perception Memory Thinking and mental representations.
Problem Solving.
Problem solving and Creativity. Problem solving What is problem solving? Weak and strong methods Much of our life is spent solving problems? Homework.
Problem Solving & Creativity Dr. Claudia J. Stanny EXP 4507 Memory & Cognition Spring 2009.
State-Space Searches.
* Problem solving: active efforts to discover what must be done to achieve a goal that is not readily attainable.
Brute Force Search Depth-first or Breadth-first search
Heuristic Search Heuristic - a “rule of thumb” used to help guide search often, something learned experientially and recalled when needed Heuristic Function.
S L E O A V S L I M P E R P R O B E L M
Solve this maze at your leisure. Start at phil’s house. At first, you can only make right turns through the maze. Each time you cross the red zigzag sign.
Thinking & Problem Solving
Artificial Intelligence LECTURE 3 ARTIFICIAL INTELLIGENCE LECTURES BY ENGR. QAZI ZIA 1.
Problem solving Using background knowledge Analogical problem solving and access Case-based reasoning.
Constraint Satisfaction Problems (CSPs) CPSC 322 – CSP 1 Poole & Mackworth textbook: Sections § Lecturer: Alan Mackworth September 28, 2012.
Lecture 6: Problem Solving Dr John Levine Algorithms and Complexity February 10th 2006.
Human Cognitive Processes: psyc 345 Ch. 11: Problem Solving Takashi Yamauchi © Takashi Yamauchi (Dept. of Psychology, Texas A&M University)
State-Space Searches. 2 State spaces A state space consists of A (possibly infinite) set of states The start state represents the initial problem Each.
Problem-Solving Water Jugs Problem You are given two jugs, a 4-gallon jug & a 3-gallon jug. Neither has any measuring marks on it. There is a pump that.
Cognitive Processes PSY 334
Problem Representation
1 Solving problems by searching 171, Class 2 Chapter 3.
Solving Problems by searching Well defined problems A probem is well defined if it is easy to automatically asses the validity (utility) of any proposed.
For Wednesday Read chapter 6, sections 1-3 Homework: –Chapter 4, exercise 1.
Chess By Kezia Farley.
Thinking part III Problem Solving. Solve this maze at your leisure. Start at phil’s house. At first, you can only make right turns through the maze. Each.
Intelligent Control Methods Lecture 4: Searching in State Space Slovak University of Technology Faculty of Material Science and Technology in Trnava.
Phenomena in Problem Solving Insight Problems Functional Fixedness Using external representations.
Ways of solving problems
Search Techniques CS480/580 Fall Introduction Trees: – Root, parent, child, sibling, leaf node, node, edge – Single path from root to any node Graphs:
Chess Strategies Component Skills Strategies Prototype Josh Waters, Ty Fenn, Tianyu Chen.
Complex Cognitive Processes EDP 3004-Chapter 8. Metacognition –Awareness of your own cognitive machinery and how it works –Involves three kinds of knowledge:
Searches Algorithms for Exploration. Graphs Graphs represent spatial data How do I get from Augsburg to Wurzburg?
Introduction to State Space Search
Search in State Spaces Problem solving as search Search consists of –state space –operators –start state –goal states A Search Tree is an efficient way.
Mental imagery Some mental imagery phenomena
CSCI 4310 Lecture 4: Search 2 – Including A*. Book Winston Chapters 4,5,6.
Search Control.. Planning is really really hard –Theoretically, practically But people seem ok at it What to do…. –Abstraction –Find “easy” classes of.
Lecture 2: Problem Solving using State Space Representation CS 271: Fall, 2008.
CPSC 322, Lecture 7Slide 1 Heuristic Search Computer Science cpsc322, Lecture 7 (Textbook Chpt 3.6) Sept, 20, 2013.
From: Chess players' eye movements reveal rapid recognition of complex visual patterns: Evidence from a chess-related visual search task Journal of Vision.
Backtracking, Search, Heuristics
Name: Aimee McLaughlin
Heuristic Search A heuristic is a rule for choosing a branch in a state space search that will most likely lead to a problem solution Heuristics are used.
adapted from Recursive Backtracking by Mike Scott, UT Austin
CPSC 322 Introduction to Artificial Intelligence
The N-Queens Problem Search The N-Queens Problem Most slides from Milos Hauskrecht.
Constraint Satisfaction
Presentation transcript:

Problem solving What is problem solving? Weak and strong methods. Weak methods of problem solving.

There are problems all around us. Much of our life is spent solving problems. Getting into the cookie jar without your mother noticing. Stopping wars. Doing a crossword puzzle.

What makes these problems? Four aspects to a problem Goal What is to be accomplished? Givens What is known from the start of the problem? Means of transformation How can the initial state be modified? Obstacles Something that stands between the initial state and the goal. What would happen if one of these aspects were missing?

Types of problems Well-defined problems Ill-defined problems All four aspects of the problem are specified. Towers of Hanoi Mazes Ill-defined problems One or more of the aspects of the problem are not well specified. Stopping a war Getting cookies without your mother knowing.

Move one coin so that there are two straight lines of six coins which cross each other at the center point of each line. What kind of problem is this? Ill-defined? Well-defined?

How do we solve problems? Sometimes a problem is novel Then we use general problem solving strategies These are called “weak” methods Sometimes a problem is more familiar Then we can use our background knowledge These are called “strong methods” We will focus on “weak” methods today “Strong” methods will be discussed next class.

Problem solving as search Consider a well-defined problem The givens are known The means of transformation are known The goal is known The obstacle is generally that there are so many possible solutions it is hard to find the right one. We must search for the right solution.

The problem space 3 disc Towers of Hanoi problem. Initial State Goal State Search for a path from the initial state to the end state. For this problem, the whole space can be enumerated.

What if the search space is too large? It is not possible to enumerate the entire search space for all well-defined problems. Chess: After a few moves, there are too many possible moves and counter moves to consider all of them. We must use constraints Often called heuristics A heuristic is a general guideline It is likely to lead to a good solution Not guaranteed to work

Hill climbing Find some measure of the distance between your present state and the end state. Take a step in the direction that most reduces that distance. A potential local minimum problem.

An example Stacking blocks Create a stack with A on top, the B, then C. Sometimes you have to move away from your solution to reach it.

Means-end analysis Try to reduce the largest difference between the initial state and the goal state first. How should you get from UT to the Empire State Building? Fly from Austin to New York That takes care of the biggest difference. That creates new sub-problems Getting from UT to the airport Getting from a New York airport to the Empire State Building Each of these new sub-problems needs to be solved.

Working backward Sometimes it is hard to solve a problem by starting at the initial state Many puzzles are intentionally designed to be hard to solve from the givens. It can be useful to start at the end state and work backward.

Problem Representation What is the largest number of knights you can put on a chessboard where no two knights can attack each other? Most people try to solve this problem by visualizing knights on the board. Consider that every knight must start on a square of one color and end on a square of the other color.

Summary Problems involve overcoming obstacles Weak methods of problem solving Domain general heuristics for solving problems Best for well-defined problems No real mechanisms for dealing with ill-defined problems Domain knowledge needed for this.