Docsity

Artificial Intelligence chapter 5, Lecture notes of Artificial Intelligence

Partial preview of the text

Download Artificial Intelligence chapter 5 and more Lecture notes Artificial Intelligence in PDF only on Docsity!

Building Control Algorithm for

State Space Search

SCJ

Artificial Intelligence

Faculty of Computer Science and Information Systems

Universiti Teknologi Malaysia

Outline

• Recursion-based system

• Production Systems

• Control of Search in Production System

• Blackboard architecture

Recursion-based system

• Pattern-based Searching Technique

  • major advantage of using general methods such as unification and modus ponens to generate states is the resulting algorithm may search any space of logical inferences.
  • The specifics of a problem are described using predicate calculus assertions.
  • Thus, we have a means of separating problem-solving knowledge from its control and implementation.
  • One example of implementation of the separation of knowledge and control is pattern-search.

Recursion-based system

• Pattern-based Searching Technique

  • Recursive search is applied to a space of logical inferences
  • result in a general search procedure for predicate calculus based problem specifications
  • eg. In goal-directed search, modus ponens define the transition between states.
    • i.e. a goal p(a), the algorithm uses UNIFICATION to select the implications whose conclusions match the goal (q(x) -> p(x))
    • Implications are simply called rules
    • After unification, rule premise becomes new subgoal q(a)
    • The algo recurs on the subgoal
    • If subgoal matches fact in KB, search terminates

Production Systems

Production Systems

A production system. Control loops until working memory pattern no longer matches the conditions of any productions.

Production Systems

Production Systems

Production Systems

A production system solution to the 3 x 3 knight’s tour problem to make legal move

  • R from 1 to 2.
  • R2 R - R - R - R - R
    • R - R - R - R
      • R
  • R
    • R
    • R
      • R

Production Systems

Control of Search in Production System

Data-driven search in a production system

  • Begin with problem description
  • Infers new knowledge from data through rules inferencing, legal moves etc.
  • Continues until goal is reached
  • Productions have

CONDITION->ACTION form creating new state of graph

Control of Search in Production System

Goal-driven search in a production system

  • Begins with a goal, work backward to facts satisfying the goals
  • In production system,

-Goal is placed in working memory

ACTIONS <- CONDITIONS

  • Continues until facts are found

Control of Search in Production System

  • Heuristic control through conflict resolution
    • i.e. choose first rule matches the working memory
    • By Brownston et al. 1985
      • Refraction – once a rule has fired, it may not fire again until

working memory element that match its condition have been

modified to discourage looping

  • Recency – choose rules whose condition match with the pattern

most recently added to the working memory

  • Specificity – use a more specific problem-solving rule rather than

general one

Control of Search in Production System

Major advantages of production systems for artificial intelligence

i) Separation of Knowledge and Control- control (recognize-act cyle) and knowledge in the rule, can maintain separately

ii) A Natural Mapping onto State Space Search- working memory = nodes of states, production rules=transitions between states, conflict resolution=branch

iii) Modularity of Production Rules – syntatic independence, easy adding, deleting or changing knowledge of system

iv) Pattern-Directed Control

v) Opportunities for Heuristic Control of Search