SlideShare a Scribd company logo
1 of 15
22IT401- ARTIFICIAL INTELLIGENCE
MODULE 1 - Introduction
Session Topic
1.1 Introduction to AI
1.2 Agents and Environments
1.3 Good Behavior: The Concepts of Rationality
1.4 The Nature of Environments
1.5 The Structure of Agents
1.6 Problem Solving by Search: Introduction
1.7 Uninformed Search
1.8 Searching with Costs
1.9 Informed State Space Search
1.10 Heuristic Search: Greedy
1.11 A* Search
1.12 Problem Reduction Search
1.13 Game Search
1.14 Constraint Satisfaction Problems
1.15 Search Techniques for Real Time Problems - Case Study
1.1 Introduction to AI
CO1 Understand the search techniques
[U]
Upon completion of the session, students shall have ability
to
SEARCH TECHNIQUES
Searching for solutions
• Finding out a solution is done by
– searching through the state space
• All problems are transformed
– as a search tree
– generated by the initial state and successor
function
Search tree
• Initial state
– The root of the search tree is a search node
• Expanding
– applying successor function to the current state
– thereby generating a new set of states
• leaf nodes
– the states having no successors
Fringe : Set of search nodes that have not been
expanded yet.
• Refer to next figure
Tree search example
Tree search example
Search tree
• The essence of searching
– in case the first choice is not correct
– choosing one option and keep others for later
inspection
• Hence we have the search strategy
– which determines the choice of which state to
expand
– good choice  fewer work  faster
• Important:
– state space ≠ search tree
Search tree
• State space
– has unique states {A, B}
– while a search tree may have cyclic paths: A-B-A-B-A-B- …
• A good search strategy should avoid such paths
Search tree
• A node is having five components:
– STATE: which state it is in the state space
– PARENT-NODE: from which node it is generated
– ACTION: which action applied to its parent-node to
generate it
– PATH-COST: the cost, g(n), from initial state to the
node n itself
– DEPTH: number of steps along the path from the
initial state
Measuring problem-solving
performance
• The evaluation of a search strategy
– Completeness:
• is the strategy guaranteed to find a solution when there
is one?
– Optimality:
• does the strategy find the highest-quality solution when
there are several different solutions?
– Time complexity:
• how long does it take to find a solution?
– Space complexity:
• how much memory is needed to perform the search?
Measuring problem-solving
performance
• In AI, complexity is expressed in
– b, branching factor, maximum number of
successors of any node
– d, the depth of the shallowest goal node.
(depth of the least-cost solution)
– m, the maximum length of any path in the state
space
• Time and Space is measured in
– number of nodes generated during the search
– maximum number of nodes stored in memory
Measuring problem-solving
performance
• For effectiveness of a search algorithm
– we can just consider the total cost
– The total cost = path cost (g) of the solution
found + search cost
• search cost = time necessary to find the solution
• Tradeoff:
– (long time, optimal solution with least g)
– vs. (shorter time, solution with slightly larger
path cost g)

More Related Content

Similar to Session 6 Search Introduction in Internet of things

4-200626030058kpnu9avdbvionipnmvdadzvdavavd
4-200626030058kpnu9avdbvionipnmvdadzvdavavd4-200626030058kpnu9avdbvionipnmvdadzvdavavd
4-200626030058kpnu9avdbvionipnmvdadzvdavavd
mmpnair0
 
Problem solving in Artificial Intelligence.pptx
Problem solving in Artificial Intelligence.pptxProblem solving in Artificial Intelligence.pptx
Problem solving in Artificial Intelligence.pptx
kitsenthilkumarcse
 
(Radhika) presentation on chapter 2 ai
(Radhika) presentation on chapter 2 ai(Radhika) presentation on chapter 2 ai
(Radhika) presentation on chapter 2 ai
Radhika Srinivasan
 
Jarrar.lecture notes.aai.2011s.ch3.uniformedsearch
Jarrar.lecture notes.aai.2011s.ch3.uniformedsearchJarrar.lecture notes.aai.2011s.ch3.uniformedsearch
Jarrar.lecture notes.aai.2011s.ch3.uniformedsearch
PalGov
 
08 uninformed search
08 uninformed search08 uninformed search
08 uninformed search
Tianlu Wang
 

Similar to Session 6 Search Introduction in Internet of things (20)

PPT ON INTRODUCTION TO AI- UNIT-1-PART-2.pptx
PPT ON INTRODUCTION TO AI- UNIT-1-PART-2.pptxPPT ON INTRODUCTION TO AI- UNIT-1-PART-2.pptx
PPT ON INTRODUCTION TO AI- UNIT-1-PART-2.pptx
 
turning test, how it works and winners.ppt
turning test, how it works and winners.pptturning test, how it works and winners.ppt
turning test, how it works and winners.ppt
 
State space search and Problem Solving techniques
State space search and Problem Solving techniquesState space search and Problem Solving techniques
State space search and Problem Solving techniques
 
Chapter 3.pptx
Chapter 3.pptxChapter 3.pptx
Chapter 3.pptx
 
AI(Module1).pptx
AI(Module1).pptxAI(Module1).pptx
AI(Module1).pptx
 
Search 1
Search 1Search 1
Search 1
 
Unit1: Introduction to AI
Unit1: Introduction to AIUnit1: Introduction to AI
Unit1: Introduction to AI
 
Searching
SearchingSearching
Searching
 
Jarrar: Un-informed Search
Jarrar: Un-informed SearchJarrar: Un-informed Search
Jarrar: Un-informed Search
 
Unit3:Informed and Uninformed search
Unit3:Informed and Uninformed searchUnit3:Informed and Uninformed search
Unit3:Informed and Uninformed search
 
4-200626030058kpnu9avdbvionipnmvdadzvdavavd
4-200626030058kpnu9avdbvionipnmvdadzvdavavd4-200626030058kpnu9avdbvionipnmvdadzvdavavd
4-200626030058kpnu9avdbvionipnmvdadzvdavavd
 
AI_03_Solving Problems by Searching.pptx
AI_03_Solving Problems by Searching.pptxAI_03_Solving Problems by Searching.pptx
AI_03_Solving Problems by Searching.pptx
 
l2.pptx
l2.pptxl2.pptx
l2.pptx
 
Problem solving in Artificial Intelligence.pptx
Problem solving in Artificial Intelligence.pptxProblem solving in Artificial Intelligence.pptx
Problem solving in Artificial Intelligence.pptx
 
l2.pptx
l2.pptxl2.pptx
l2.pptx
 
Lecture 3 problem solving
Lecture 3   problem solvingLecture 3   problem solving
Lecture 3 problem solving
 
(Radhika) presentation on chapter 2 ai
(Radhika) presentation on chapter 2 ai(Radhika) presentation on chapter 2 ai
(Radhika) presentation on chapter 2 ai
 
Jarrar.lecture notes.aai.2011s.ch3.uniformedsearch
Jarrar.lecture notes.aai.2011s.ch3.uniformedsearchJarrar.lecture notes.aai.2011s.ch3.uniformedsearch
Jarrar.lecture notes.aai.2011s.ch3.uniformedsearch
 
problem solve and resolving in ai domain , probloms
problem solve and resolving in ai domain , problomsproblem solve and resolving in ai domain , probloms
problem solve and resolving in ai domain , probloms
 
08 uninformed search
08 uninformed search08 uninformed search
08 uninformed search
 

Recently uploaded

Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
jaanualu31
 

Recently uploaded (20)

Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planes
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Bridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptxBridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptx
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 

Session 6 Search Introduction in Internet of things

  • 2. MODULE 1 - Introduction Session Topic 1.1 Introduction to AI 1.2 Agents and Environments 1.3 Good Behavior: The Concepts of Rationality 1.4 The Nature of Environments 1.5 The Structure of Agents 1.6 Problem Solving by Search: Introduction 1.7 Uninformed Search 1.8 Searching with Costs 1.9 Informed State Space Search 1.10 Heuristic Search: Greedy 1.11 A* Search 1.12 Problem Reduction Search 1.13 Game Search 1.14 Constraint Satisfaction Problems 1.15 Search Techniques for Real Time Problems - Case Study
  • 3. 1.1 Introduction to AI CO1 Understand the search techniques [U] Upon completion of the session, students shall have ability to
  • 5. Searching for solutions • Finding out a solution is done by – searching through the state space • All problems are transformed – as a search tree – generated by the initial state and successor function
  • 6. Search tree • Initial state – The root of the search tree is a search node • Expanding – applying successor function to the current state – thereby generating a new set of states • leaf nodes – the states having no successors Fringe : Set of search nodes that have not been expanded yet. • Refer to next figure
  • 9. Search tree • The essence of searching – in case the first choice is not correct – choosing one option and keep others for later inspection • Hence we have the search strategy – which determines the choice of which state to expand – good choice  fewer work  faster • Important: – state space ≠ search tree
  • 10. Search tree • State space – has unique states {A, B} – while a search tree may have cyclic paths: A-B-A-B-A-B- … • A good search strategy should avoid such paths
  • 11. Search tree • A node is having five components: – STATE: which state it is in the state space – PARENT-NODE: from which node it is generated – ACTION: which action applied to its parent-node to generate it – PATH-COST: the cost, g(n), from initial state to the node n itself – DEPTH: number of steps along the path from the initial state
  • 12.
  • 13. Measuring problem-solving performance • The evaluation of a search strategy – Completeness: • is the strategy guaranteed to find a solution when there is one? – Optimality: • does the strategy find the highest-quality solution when there are several different solutions? – Time complexity: • how long does it take to find a solution? – Space complexity: • how much memory is needed to perform the search?
  • 14. Measuring problem-solving performance • In AI, complexity is expressed in – b, branching factor, maximum number of successors of any node – d, the depth of the shallowest goal node. (depth of the least-cost solution) – m, the maximum length of any path in the state space • Time and Space is measured in – number of nodes generated during the search – maximum number of nodes stored in memory
  • 15. Measuring problem-solving performance • For effectiveness of a search algorithm – we can just consider the total cost – The total cost = path cost (g) of the solution found + search cost • search cost = time necessary to find the solution • Tradeoff: – (long time, optimal solution with least g) – vs. (shorter time, solution with slightly larger path cost g)