1 Defining a Problem as a State Space 1. Define a state space that contains all the possible configurations of the relevant objects. 2. Specify one (or.

Slides:



Advertisements
Similar presentations
State Space Representation and Search
Advertisements

1 Rule Based Systems Introduction to Production System Architecture.
PROBLEM SOLVING AND SEARCH
Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2007.
Rulebase Expert System and Uncertainty. Rule-based ES Rules as a knowledge representation technique Type of rules :- relation, recommendation, directive,
Part2 AI as Representation and Search
Conflict Resolution  what to do if there is more than 1 matching rule in each inference cycle? match WM with LHS of rules select one rule (conflict resolution)
Problems and Search Chapter 2.
CSC 423 ARTIFICIAL INTELLIGENCE
Problems, Problem Spaces, and Search. Introduction To build a system to solve a particular problem, we need to do four things: – Define the problem precisely.
1 Pertemuan 2 PROBLEMS, PROBLEM SPACES, AND SEARCH Matakuliah: T0264/Inteligensia Semu Tahun: 2005 Versi: 1/0.
Reasoning System.  Reasoning with rules  Forward chaining  Backward chaining  Rule examples  Fuzzy rule systems  Planning.
Best-First Search: Agendas
Knowledge Engineering.  Process of acquiring knowledge from experts and building knowledge base  Narrow perspective  Knowledge acquisition, representation,
Rule Based Systems Michael J. Watts
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.
Algorithm Strategies Nelson Padua-Perez Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
Chapter 12: Expert Systems Design Examples
© C. Kemke1Reasoning - Introduction COMP 4200: Expert Systems Dr. Christel Kemke Department of Computer Science University of Manitoba.
© 2002 Franz J. Kurfess Introduction 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.
COMP 4200: Expert Systems Dr. Christel Kemke
Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2004.
Introduction to Expert Systems
1 5.0 Expert Systems Outline 5.1 Introduction 5.2 Rules for Knowledge Representation 5.3 Types of rules 5.4 Rule-based systems 5.5 Reasoning approaches.
© Franz J. Kurfess Introduction 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.
MAE 552 – Heuristic Optimization Lecture 27 April 3, 2002
Lecture 04 Rule Representation
Using Search in Problem Solving
Artificial Intelligence CAP492
1 Chapter 9 Rules and Expert Systems. 2 Chapter 9 Contents (1) l Rules for Knowledge Representation l Rule Based Production Systems l Forward Chaining.
© C. Kemke1Reasoning - Introduction COMP 4200: Expert Systems Dr. Christel Kemke Department of Computer Science University of Manitoba.
Production Rules Rule-Based Systems. 2 Production Rules Specify what you should do or what you could conclude in different situations. Specify what you.
Blind Search-Part 2 Ref: Chapter 2. Search Trees The search for a solution can be described by a tree - each node represents one state. The path from.
EXPERT SYSTEMS Part I.
Using Search in Problem Solving
CS 561, Session 25 1 Introduction to CLIPS Overview of CLIPS Facts Rules Rule firing Control techniques Example.
Artificial Intelligence CSC 361
Copyright R. Weber Search in Problem Solving ISYS 370 Dr. R. Weber.
CS62S: Expert Systems Based on: The Engineering of Knowledge-based Systems: Theory and Practice A. J. Gonzalez and D. D. Dankel.
CSE & CSE6002E - Soft Computing Winter Semester, 2011 Expert Systems Introduction to Expert Systems Production Systems Architecture Applications.
1 Chapter 2 Heuristic Search Techniques AI & ESChapter 2 2 Defining the problem A water jug problem: 4-gallon and 3-gallon - no marker on the.
Introduction to search Chapter 3. Why study search? §Search is a basis for all AI l search proposed as the basis of intelligence l inference l all learning.
Chapter 2 Problems, Problem Spaces, and Search?
Introduction to search Chapter 3. Why study search? §Search is a basis for all AI l search proposed as the basis of intelligence l all learning algorithms,
Dr.Abeer Mahmoud ARTIFICIAL INTELLIGENCE (CS 461D) Dr. Abeer Mahmoud Computer science Department Princess Nora University Faculty of Computer & Information.
Chapter 9: Rules and Expert Systems Lora Streeter.
Problems, Problem Spaces and Search
Problem-Solving by Searching Uninformed (Blind) Search Algorithms.
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.
Jess: A Rule-Based Programming Environment Reporter: Yu Lun Kuo Date: April 10, 2006 Expert System.
Chapter 2 Problems, Problem Spaces, and Search?
Search exploring the consequences of possible actions.
Introduction to knowledge-base intelligent systems (Expert Systems) دكترمحسن كاهاني
Search exploring the consequences of possible actions.
Expert System Note: Some slides and/or pictures are adapted from Lecture slides / Books of Dr Zafar Alvi. Text Book - Aritificial Intelligence Illuminated.
1 Solving problems by searching 171, Class 2 Chapter 3.
Solving problems by searching A I C h a p t e r 3.
Forward and Backward Chaining
Expert System Seyed Hashem Davarpanah University of Science and Culture.
Summary for final exam Agent System..
Artificial Intelligence Solving problems by searching.
Advanced AI Session 2 Rule Based Expert System
The following materials are borrowed from Prof. Ken Forbus’ class
Introduction to Expert Systems Bai Xiao
Introduction to Artificial Intelligence
Problem Solving by Searching
STATE SPACE REPRESENTATION
STATE SPACE REPRESENTATION
Problem Spaces & Search
Chapter 2 Problems, Problem Spaces, and Search?
Presentation transcript:

1 Defining a Problem as a State Space 1. Define a state space that contains all the possible configurations of the relevant objects. 2. Specify one (or more) state(s) as the initial state(s). 3. Specify one (or more) state(s) as the goal state(s). 4. Specify a set of rules that describe available actions (operators), considering: What assumptions are present in the informal problem description? How general should the rules be? How much of work required to solve the problem should be precompiled and represented in the rules?

2 Production Systems A set of rules (Knowledge Base) : –LHS  RHS (if-part  then-part) –Pattern  Action –Antecedent  Consequent knowledge/databases containing information (temporal/permanent) required to solve the current task. (Working Memory) A control strategy to specify the order of testing patterns and resolving possible conflicts (Inference Engine) A rule applier.

3 Production System Major Components knowledge base –contains essential information about the problem domain –often represented as facts and rules inference engine –mechanism to derive new knowledge from the knowledge base and the information provided by the user –often based on the use of rules

4 Production (Rule-Based) System Knowledge Base Inference Engine Working Memory User Interface Agenda

5 Rule-Based System knowledge is encoded as IF … THEN rules –these rules can also be written as production rules the inference engine determines which rule antecedents are satisfied –the left-hand side must “match” a fact in the working memory satisfied rules are placed on the agenda rules on the agenda can be activated (“fired”) –an activated rule may generate new facts through its right- hand side –the activation of one rule may subsequently cause the activation of other rules

6 Example Rules IF … THEN Rules Rule: Red_Light IF the light is red THEN stop Rule: Green_Light IFthe light is green THENgo antecedent (left-hand-side) consequent (right-hand-side) Production Rules the light is red ==> stop the light is green ==> go antecedent (left-hand-side) consequent (right-hand-side)

7 Inference Engine Cycle describes the execution of rules by the inference engine –match update the agenda –add rules whose antecedents are satisfied to the agenda –remove non-satisfied rules from agendas –conflict resolution select the rule with the highest priority from the agenda –execution perform the actions on the consequent of the selected rule remove the rule from the agenda the cycle ends when –no more rules are on the agenda, or –an explicit stop command is encountered

8 Control Stategies A good control strategy should have the following properties: –Cause motion –Be systematic

9 The Water Jugs Problem – Search Tree 0, 0 4, 0 4, 3 0, 0 1, 30, 0 4, 00, 34, 30, 31, 0 4, 01, 3 0, 0 0, 1 4, 10, 01, 0 0, 14, 03, 34, 3 0, 3 3, 04, 3 4, 00, 30, 04, 00, 33, 3 3, 00, 34, 34, 2 4, 03, 34, 30, 2 0, 04, 22, 00, 3

10 Blind Search – Breadth First 0, 0 4, 00, 3 4, 31, 33, 04, 31, 03, 3 0, 14, 2 2, 0 4, 10, 2

11 Blind Search – Depth First 0, 0 0, 3 4, 33, 03, 34, 0 4, 2 0, 2 2, 0

12 Breadth-first vs. depth-first search Depth-first: –requires less memory –may find a solution without searching much of the search space Breadth-first: –will not get trapped exploring a blind alley –guaranteed to find solution (if one exists) –will find minimal solution (if more than one exist)

13 Travelling salesman problem A salesman must visit 5 cities. What is the shortest route? AberdeenBrightonCardiffDoverEdinburgh Aberdeen Brighton Cardiff Dover Edinburgh

14 Travelling salesman problem A BCD CCBBDD CDDBCB No of paths = (n-1)!n=4, p=6 n=5, p=24 n=10, p=362,880

15 Heuristic Search heuristic = rule of thumb A DBC BCDE BD D