pertemuan 2 problems problem spaces and search n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Pertemuan 2 PROBLEMS, PROBLEM SPACES, AND SEARCH PowerPoint Presentation
Download Presentation
Pertemuan 2 PROBLEMS, PROBLEM SPACES, AND SEARCH

Loading in 2 Seconds...

play fullscreen
1 / 29

Pertemuan 2 PROBLEMS, PROBLEM SPACES, AND SEARCH - PowerPoint PPT Presentation


  • 90 Views
  • Uploaded on

Pertemuan 2 PROBLEMS, PROBLEM SPACES, AND SEARCH. Matakuliah : T0264/Inteligensia Semu Tahun : Juli 2006 Versi : 2/1. Learning Outcomes. Pada akhir pertemuan ini, diharapkan mahasiswa akan mampu : << TIK-99 >> << TIK-99>>. Outline Materi. Materi 1 Materi 2 Materi 3 Materi 4

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Pertemuan 2 PROBLEMS, PROBLEM SPACES, AND SEARCH' - euphemia


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
pertemuan 2 problems problem spaces and search

Pertemuan 2PROBLEMS, PROBLEM SPACES, AND SEARCH

Matakuliah : T0264/Inteligensia Semu

Tahun : Juli 2006

Versi : 2/1

learning outcomes
Learning Outcomes

Pada akhir pertemuan ini, diharapkan mahasiswa

akan mampu :

  • << TIK-99 >>
  • << TIK-99>>
outline materi
Outline Materi
  • Materi 1
  • Materi 2
  • Materi 3
  • Materi 4
  • Materi 5
building a problem solving program
Building a Problem-Solving Program

To build a system to solve a particular problem, needed four things :

  • Define the problem precisely
  • Analyze the problem
  • Represent the task knowledge
  • Choose and apply representation and reasoning technique
another way to describe chess moves
Another Way to Describe Chess Moves

White pawn at

Square(file e, rank 2)

AND

Square(file e, rank 3)

is empty

AND

Square(file e, rank 4)

is empty

Move pawn from

Square(file e, rank 2)

TO

Square(file e, rank 4)

a water jug problem
A Water Jug Problem

You are given two jugs, a 4-galon one and a 3-galon one. Neither has any measuring marker on it. There is pump that can be used to fill the jugs with water. How can you get exactly 2 gallons of water into the 4-galon jug ?

to specify a problem
To Specify a Problem

To provide a formal description of

problem, do the following :

  • Define the state space that contain all possible configurations of the relevan objects
  • Specify one or more the initial states
  • Specify one or more the goal states
  • Specify a set of rules that describe the actions (operator) available
contoh kasus
Contoh Kasus
  • Seorang Petani akan menyeberangkan seekor Kambing, seekor Harimau dan Sayuran dengan sebuah rakit keseberang sungai. Rakit hanya muat petani dengan satu penumpang lainya. Jika ditinggal petani maka kambing dimakan harimau dan sayuran dimakan kambing.

Buatlah representasi ruang keadaan agar keempat obyek sampai diseberang sungai masih lengkap.

2 2 production systems
2.2 Production Systems
  • A set of rules
  • Knowledge / database
  • A control strategy
  • A rule applier
search techniques
Search Techniques

Termasuk dalam Blind Search

Breadth First Search : semua node dikunjungi sehingga jika ada solusi pasti diketemukan atau tidak terjebak jalan buntu. Tetapi membutuhkan memori besar dan waktu pencarian relatif lama.

Dept First Search : node dikunjungi dari ranting paling kiri. Jika ada solusi bisa diketemukan lebih cepat, membutuhkan memori kecil dan waktu pencarian lebih singkat. Tetapi bisa terjebak dalam jalan buntu.

2 2 1 control strategies
2.2.1 Control Strategies

Algorithm : Breadth – First Search

  • Set Node-List to the initial state
  • Until a goal is found or Node-List is empty do :
    • Remove the first element of Node-List and call it E.If Node-List was empty,quit
    • For each rule match againtst E do :
      • Apply the rule to generate a new state
      • If the nem state is a goal, quit and return it
      • Else,add the new state to the end of Node-List
algorithm dept first search
Algorithm : Dept-First Search

1.If the initial state is a goal state, quit and return succes

2.Otherwise,do the following until succes or failure is signaled :

  • Generate a successors,E,of the initial state.If there are no more successors,signal failure
  • Call Depth-First Search with E as the initial state
  • If succes is returned,signal success. Otherwise continue in this loop
slide20

2.2.2 Heuristic Search

Some Simple Heuristic Functions

heuristic search
Heuristic Search
  • Heuristic Search is a technique that improves the efficiency of a search process, possibly by sacrificing claims of completeness. Heuristic like tour guides.
  • Some heuristics help to guide a search process without sacrificing any claims to completeness that the process might previously have had.
2 3 problem characteristics
2.3 Problem Characteristics
  • Is the problem decomposable ?
  • Can solution steps be ignored or undone ?
  • Is the problem’s universe predictable?
  • Is a good solution absolute or relative ?
  • Is the desired solution a state of the world or a path to a state ?
  • Is a large amount of knowledge absolutely required to solve the problem, or is it important only to constrain the search ?
  • Must problem-solving be interactive?
2 4 production system characteristics
2.4 Production System Characteristics
  • A monotonic production system is a production system in which the application of rule never prevents the later application of another rule that could also have been applied at the time the first rule was selected.
  • A nonmonotonic production system is one in which this is not true.
  • A partially commutative production system is production system with the property that if the application of a particular sequence of rules transform state x into state y, then any permutation of those rules that is allowable also transform state x into state y.
  • A commutative productions system is production system that is both monotonic and partially commutative.
production system characteristics
Production System Characteristics

The four Categories of Production Systems

2 5 design of search programs
2.5 Design of Search Programs
  • Some important issues that arise in all of them :
  • The direction in which to conduct the search (forward vs backward reasoning)
  • How to select applicable rules (matching)
  • How to represent each node of the search process (the knowledge representation problem and frame problem)
design of search programs

(0,0)

(4,0)

(0,3)

(1,3)

(4,3)

(3,0)

Design of Search Programs

A Search Graph for the Water Jug Problem

2 6 additional problems
2.6 Additional Problems
  • The Missionarries and Cannibals
  • The Tower of Hanoi
  • The Monkey and Bananas
  • Cryptarithmetic
closing
<< CLOSING>>

End of Pertemuan 2

Good luck