SlideShare ist ein Scribd-Unternehmen logo
1 von 21
CS 361
Lac 1-2
Artificial Intelligence (AI)
WHAT IS AI?
AI is the study of how to make
computers make things which at the
moment people do better.
DEFINING THE PROBLEM
 Defining the problem as State Space Search
 Initial state
 Goal state
 Rules: Matching ----- forward ----> Action
EXAMPLE (1): WATER JUG PROBLEM
 If you have 2 jugs (4 gallon - 3 gallon), how can you get
exactly 2 gallons into the 4 gallon jug?
 The state space for this problem can be described as the
set of ordered pairs of integers (x,y) such that
x = 0, 1,2, 3 or 4 and y = 0,1,2 or 3; x represents the
number of gallons of water in the 4-gallon jug and y
represents the quantity of water in 3-gallon jug
 The start state is (0,0)
The goal state is (2,n)
PRODUCTION RULES FOR WATER JUG PROBLEM
No Current state Next State Description
1 (x,y) if x < 4 (4,y) Fill the 4 gallon jug
2 (x,y) if y <3 (x,3) Fill the 3 gallon jug
3 (x,y) if x > 0 (x-d, y) Pour some water out of the 4 gallon jug
4 (x,y) if y > 0 (x, y-d) Pour some water out of the 3-gallon jug
5 (x,y) if x>0 (0, y) Empty the 4 gallon jug
6 (x,y) if y >0 (x,0) Empty the 3 gallon jug on the ground
7 (x,y) if x+y >= 4 and y >0 (4, y-(4-x)) Pour water from the 3 –gallon jug into the 4 –gallon
jug until the 4-gallon jug is full
8 (x, y) if x+y >= 3 and x>0 (x-(3-y), 3) Pour water from the 4-gallon jug into the 3-gallon
jug until the 3-gallon jug is full
9 (x, y) if x+y <=4 and y>0 (x+y, 0) Pour all the water from the 3-gallon jug into the 4-
gallon jug
10 (x, y) if x+y <= 3 and x>0 (0, x+y) Pour all the water from the 4-gallon jug into the 3-
gallon jug
TO SOLVE THE WATER JUG PROBLEM
Gallons in the 4-gallon jug Gallons in the 3-gallon jug Rule applied
0 0 2
0 3 9
3 0 2
3 3 7
4 2 5
0 2 9
2 0
THE WATER JUGS PROBLEM – SEARCH TREE
0 , 0
4 3
0 , 3 4 , 0
0 , 0 3 , 04 , 3 1 , 3 4 , 30 , 0
0 , 3 4 , 0 0 , 0 4 , 0 0 , 3 3 , 3 0 , 3 4 , 3 1 , 0
3 , 04 , 24 , 30 , 3 0 , 14 , 00 , 0 1 , 3
4 , 03 , 3 4 , 30 , 2 0 , 0 0 , 34 , 1 1 , 0
0 , 34 , 2 0 , 0 2 , 0 2 , 30 , 1 4 , 3 4 , 0
PROBLEM SEARCH
 Blind Search
… Blind Search – Breadth First
… Blind Search – Depth First
 Heuristic Search
THE WATER JUGS PROBLEM – SEARCH TREE
0 , 0
4 3
0 , 3 4 , 0
0 , 0 3 , 04 , 3 1 , 3 4 , 30 , 0
0 , 3 4 , 0 0 , 0 4 , 0 0 , 3 3 , 3 0 , 3 4 , 3 1 , 0
3 , 04 , 24 , 30 , 3 0 , 14 , 00 , 0 1 , 3
4 , 03 , 3 4 , 30 , 2 0 , 0 0 , 34 , 1 1 , 0
0 , 34 , 2 0 , 0 2 , 0 2 , 30 , 1 4 , 3 4 , 0
BLIND SEARCH – BREADTH FIRST
0 , 0
4 3
0 , 3 4 , 0
3 , 04 , 3 1 , 3
3 , 3 1 , 0
4 , 2 0 , 1
0 , 2 4 , 1
2 , 0
THE WATER JUGS PROBLEM – SEARCH TREE
0 , 0
4 3
0 , 3 4 , 0
0 , 0 3 , 04 , 3 1 , 3 4 , 30 , 0
0 , 3 4 , 0 0 , 0 4 , 0 0 , 3 3 , 3 0 , 3 4 , 3 1 , 0
3 , 04 , 24 , 30 , 3 0 , 14 , 00 , 0 1 , 3
4 , 03 , 3 4 , 30 , 2 0 , 0 0 , 34 , 1 1 , 0
0 , 34 , 2 0 , 0 2 , 0 2 , 30 , 1 4 , 3 4 , 0
BLIND SEARCH – DEPTH FIRST
0 , 0
4 3
0 , 3
3 , 04 , 3
3 , 3
4 , 2
0 , 2
2 , 0
EXAMPLE (2): WATER JUG PROBLEM
 You are given three jugs, a 10-gallon one,
7-gallon one, and 3-gallon one.
 Neither have any measuring markers on it.
 There is a pump that can used to fill the jugs
with water.
 Use Breadth First and Depth First search to get
exactly 5-gallons of water into 7-gallon jug.
 The start state is (0,0,0)
The goal state is (n,5,n)
EXAMPLE (3): TRAVERSING A MAZE
 The wall follower, the best-known rule for
traversing mazes, is also known as either the
left-hand rule or the right-hand rule.
TRAVERSING A MAZE PROBLEM – SEARCH TREE
A
CB D
FE HG I
KJ
NML
TRAVERSING A MAZE PROBLEM – BREADTH FIRST
A
B D
I
K
M
TRAVERSING A MAZE PROBLEM – SEARCH TREE
A
CB D
FE HG I
KJ
NML
TRAVERSING A MAZE PROBLEM – DEPTH FIRST
A
B D
I
K
M
EXAMPLE (4): TRAVERSING A MAZE
END

Weitere ähnliche Inhalte

Was ist angesagt?

01 knapsack using backtracking
01 knapsack using backtracking01 knapsack using backtracking
01 knapsack using backtrackingmandlapure
 
Features of tcp (part 2) .68
Features of tcp  (part 2) .68Features of tcp  (part 2) .68
Features of tcp (part 2) .68myrajendra
 
Mobile computing unit2,SDMA,FDMA,CDMA,TDMA Space Division Multi Access,Frequ...
Mobile computing unit2,SDMA,FDMA,CDMA,TDMA  Space Division Multi Access,Frequ...Mobile computing unit2,SDMA,FDMA,CDMA,TDMA  Space Division Multi Access,Frequ...
Mobile computing unit2,SDMA,FDMA,CDMA,TDMA Space Division Multi Access,Frequ...Pallepati Vasavi
 
Chomsky & Greibach Normal Forms
Chomsky & Greibach Normal FormsChomsky & Greibach Normal Forms
Chomsky & Greibach Normal FormsRajendran
 
Air Cargo transport
 Air Cargo transport Air Cargo transport
Air Cargo transportFaimin Khan
 
Knowledge Engineering in FOL.
Knowledge Engineering in FOL.Knowledge Engineering in FOL.
Knowledge Engineering in FOL.Megha Sharma
 
Reinforcement learning, Q-Learning
Reinforcement learning, Q-LearningReinforcement learning, Q-Learning
Reinforcement learning, Q-LearningKuppusamy P
 
Create & Execute First Hadoop MapReduce Project in.pptx
Create & Execute First Hadoop MapReduce Project in.pptxCreate & Execute First Hadoop MapReduce Project in.pptx
Create & Execute First Hadoop MapReduce Project in.pptxvishal choudhary
 
Problem solving agents
Problem solving agentsProblem solving agents
Problem solving agentsMegha Sharma
 

Was ist angesagt? (20)

01 knapsack using backtracking
01 knapsack using backtracking01 knapsack using backtracking
01 knapsack using backtracking
 
Classical Planning
Classical PlanningClassical Planning
Classical Planning
 
Planning
Planning Planning
Planning
 
Pumping lemma for cfl
Pumping lemma for cflPumping lemma for cfl
Pumping lemma for cfl
 
Congestion Control
Congestion ControlCongestion Control
Congestion Control
 
Features of tcp (part 2) .68
Features of tcp  (part 2) .68Features of tcp  (part 2) .68
Features of tcp (part 2) .68
 
Mobile computing unit2,SDMA,FDMA,CDMA,TDMA Space Division Multi Access,Frequ...
Mobile computing unit2,SDMA,FDMA,CDMA,TDMA  Space Division Multi Access,Frequ...Mobile computing unit2,SDMA,FDMA,CDMA,TDMA  Space Division Multi Access,Frequ...
Mobile computing unit2,SDMA,FDMA,CDMA,TDMA Space Division Multi Access,Frequ...
 
Computer network
Computer networkComputer network
Computer network
 
Chomsky & Greibach Normal Forms
Chomsky & Greibach Normal FormsChomsky & Greibach Normal Forms
Chomsky & Greibach Normal Forms
 
Air Cargo transport
 Air Cargo transport Air Cargo transport
Air Cargo transport
 
Knowledge Engineering in FOL.
Knowledge Engineering in FOL.Knowledge Engineering in FOL.
Knowledge Engineering in FOL.
 
Pipelining & All Hazards Solution
Pipelining  & All Hazards SolutionPipelining  & All Hazards Solution
Pipelining & All Hazards Solution
 
Reinforcement learning, Q-Learning
Reinforcement learning, Q-LearningReinforcement learning, Q-Learning
Reinforcement learning, Q-Learning
 
Create & Execute First Hadoop MapReduce Project in.pptx
Create & Execute First Hadoop MapReduce Project in.pptxCreate & Execute First Hadoop MapReduce Project in.pptx
Create & Execute First Hadoop MapReduce Project in.pptx
 
Distributed Mutual exclusion algorithms
Distributed Mutual exclusion algorithmsDistributed Mutual exclusion algorithms
Distributed Mutual exclusion algorithms
 
Congestion control in TCP
Congestion control in TCPCongestion control in TCP
Congestion control in TCP
 
Process Management-Process Migration
Process Management-Process MigrationProcess Management-Process Migration
Process Management-Process Migration
 
Problem solving agents
Problem solving agentsProblem solving agents
Problem solving agents
 
Operating System: Deadlock
Operating System: DeadlockOperating System: Deadlock
Operating System: Deadlock
 
Greedy method by Dr. B. J. Mohite
Greedy method by Dr. B. J. MohiteGreedy method by Dr. B. J. Mohite
Greedy method by Dr. B. J. Mohite
 

Ähnlich wie Cs 361 2015 lec 1-2

Ai lecture 8(unit02)
Ai lecture  8(unit02)Ai lecture  8(unit02)
Ai lecture 8(unit02)vikas dhakane
 
Problem Formulation
Problem FormulationProblem Formulation
Problem FormulationAdri Jovin
 
AI problem solving.pptx
AI problem solving.pptxAI problem solving.pptx
AI problem solving.pptxSonam Mittal
 
AI-State Space Representation.pptx
AI-State Space Representation.pptxAI-State Space Representation.pptx
AI-State Space Representation.pptxRatnakar Mikkili
 
AI-State Space Representation.pptx
AI-State Space Representation.pptxAI-State Space Representation.pptx
AI-State Space Representation.pptxRatnakar Mikkili
 
Problems problem spaces and search
Problems problem spaces and searchProblems problem spaces and search
Problems problem spaces and searchAmey Kerkar
 
Algebra 2 Section 1-7
Algebra 2 Section 1-7Algebra 2 Section 1-7
Algebra 2 Section 1-7Jimbo Lamb
 

Ähnlich wie Cs 361 2015 lec 1-2 (7)

Ai lecture 8(unit02)
Ai lecture  8(unit02)Ai lecture  8(unit02)
Ai lecture 8(unit02)
 
Problem Formulation
Problem FormulationProblem Formulation
Problem Formulation
 
AI problem solving.pptx
AI problem solving.pptxAI problem solving.pptx
AI problem solving.pptx
 
AI-State Space Representation.pptx
AI-State Space Representation.pptxAI-State Space Representation.pptx
AI-State Space Representation.pptx
 
AI-State Space Representation.pptx
AI-State Space Representation.pptxAI-State Space Representation.pptx
AI-State Space Representation.pptx
 
Problems problem spaces and search
Problems problem spaces and searchProblems problem spaces and search
Problems problem spaces and search
 
Algebra 2 Section 1-7
Algebra 2 Section 1-7Algebra 2 Section 1-7
Algebra 2 Section 1-7
 

Kürzlich hochgeladen

How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 

Kürzlich hochgeladen (20)

How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 

Cs 361 2015 lec 1-2

  • 3. WHAT IS AI? AI is the study of how to make computers make things which at the moment people do better.
  • 4. DEFINING THE PROBLEM  Defining the problem as State Space Search  Initial state  Goal state  Rules: Matching ----- forward ----> Action
  • 5. EXAMPLE (1): WATER JUG PROBLEM  If you have 2 jugs (4 gallon - 3 gallon), how can you get exactly 2 gallons into the 4 gallon jug?  The state space for this problem can be described as the set of ordered pairs of integers (x,y) such that x = 0, 1,2, 3 or 4 and y = 0,1,2 or 3; x represents the number of gallons of water in the 4-gallon jug and y represents the quantity of water in 3-gallon jug  The start state is (0,0) The goal state is (2,n)
  • 6. PRODUCTION RULES FOR WATER JUG PROBLEM No Current state Next State Description 1 (x,y) if x < 4 (4,y) Fill the 4 gallon jug 2 (x,y) if y <3 (x,3) Fill the 3 gallon jug 3 (x,y) if x > 0 (x-d, y) Pour some water out of the 4 gallon jug 4 (x,y) if y > 0 (x, y-d) Pour some water out of the 3-gallon jug 5 (x,y) if x>0 (0, y) Empty the 4 gallon jug 6 (x,y) if y >0 (x,0) Empty the 3 gallon jug on the ground 7 (x,y) if x+y >= 4 and y >0 (4, y-(4-x)) Pour water from the 3 –gallon jug into the 4 –gallon jug until the 4-gallon jug is full 8 (x, y) if x+y >= 3 and x>0 (x-(3-y), 3) Pour water from the 4-gallon jug into the 3-gallon jug until the 3-gallon jug is full 9 (x, y) if x+y <=4 and y>0 (x+y, 0) Pour all the water from the 3-gallon jug into the 4- gallon jug 10 (x, y) if x+y <= 3 and x>0 (0, x+y) Pour all the water from the 4-gallon jug into the 3- gallon jug
  • 7. TO SOLVE THE WATER JUG PROBLEM Gallons in the 4-gallon jug Gallons in the 3-gallon jug Rule applied 0 0 2 0 3 9 3 0 2 3 3 7 4 2 5 0 2 9 2 0
  • 8. THE WATER JUGS PROBLEM – SEARCH TREE 0 , 0 4 3 0 , 3 4 , 0 0 , 0 3 , 04 , 3 1 , 3 4 , 30 , 0 0 , 3 4 , 0 0 , 0 4 , 0 0 , 3 3 , 3 0 , 3 4 , 3 1 , 0 3 , 04 , 24 , 30 , 3 0 , 14 , 00 , 0 1 , 3 4 , 03 , 3 4 , 30 , 2 0 , 0 0 , 34 , 1 1 , 0 0 , 34 , 2 0 , 0 2 , 0 2 , 30 , 1 4 , 3 4 , 0
  • 9. PROBLEM SEARCH  Blind Search … Blind Search – Breadth First … Blind Search – Depth First  Heuristic Search
  • 10. THE WATER JUGS PROBLEM – SEARCH TREE 0 , 0 4 3 0 , 3 4 , 0 0 , 0 3 , 04 , 3 1 , 3 4 , 30 , 0 0 , 3 4 , 0 0 , 0 4 , 0 0 , 3 3 , 3 0 , 3 4 , 3 1 , 0 3 , 04 , 24 , 30 , 3 0 , 14 , 00 , 0 1 , 3 4 , 03 , 3 4 , 30 , 2 0 , 0 0 , 34 , 1 1 , 0 0 , 34 , 2 0 , 0 2 , 0 2 , 30 , 1 4 , 3 4 , 0
  • 11. BLIND SEARCH – BREADTH FIRST 0 , 0 4 3 0 , 3 4 , 0 3 , 04 , 3 1 , 3 3 , 3 1 , 0 4 , 2 0 , 1 0 , 2 4 , 1 2 , 0
  • 12. THE WATER JUGS PROBLEM – SEARCH TREE 0 , 0 4 3 0 , 3 4 , 0 0 , 0 3 , 04 , 3 1 , 3 4 , 30 , 0 0 , 3 4 , 0 0 , 0 4 , 0 0 , 3 3 , 3 0 , 3 4 , 3 1 , 0 3 , 04 , 24 , 30 , 3 0 , 14 , 00 , 0 1 , 3 4 , 03 , 3 4 , 30 , 2 0 , 0 0 , 34 , 1 1 , 0 0 , 34 , 2 0 , 0 2 , 0 2 , 30 , 1 4 , 3 4 , 0
  • 13. BLIND SEARCH – DEPTH FIRST 0 , 0 4 3 0 , 3 3 , 04 , 3 3 , 3 4 , 2 0 , 2 2 , 0
  • 14. EXAMPLE (2): WATER JUG PROBLEM  You are given three jugs, a 10-gallon one, 7-gallon one, and 3-gallon one.  Neither have any measuring markers on it.  There is a pump that can used to fill the jugs with water.  Use Breadth First and Depth First search to get exactly 5-gallons of water into 7-gallon jug.  The start state is (0,0,0) The goal state is (n,5,n)
  • 15. EXAMPLE (3): TRAVERSING A MAZE  The wall follower, the best-known rule for traversing mazes, is also known as either the left-hand rule or the right-hand rule.
  • 16. TRAVERSING A MAZE PROBLEM – SEARCH TREE A CB D FE HG I KJ NML
  • 17. TRAVERSING A MAZE PROBLEM – BREADTH FIRST A B D I K M
  • 18. TRAVERSING A MAZE PROBLEM – SEARCH TREE A CB D FE HG I KJ NML
  • 19. TRAVERSING A MAZE PROBLEM – DEPTH FIRST A B D I K M
  • 21. END