SlideShare una empresa de Scribd logo
1 de 68
14 Jan 2004 CSE-IUT 1
Solving problems by
searching
Chapter 3
14 Jan 2004 CS 3243 - Blind Search 2
Outline
 Introduction to state space search
 Problem types
 Problem formulation
 Example problems
 Basic search algorithms
Objective: State space search
 State space representation
 How problems are formulated as state space
search problems
 How implicit state spaces can be unfolded
during search.
14 Jan 2004 CS 3243 - Blind Search 3
Goal directed agent
14 Jan 2004 CS 3243 - Blind Search 4
14 Jan 2004 CS 3243 - Blind Search 5
14 Jan 2004 CS 3243 - Blind Search 6
 Problem formulation: it means choosing a
relevant set of states to consider and a
feasible set of operators for moving from one
state to another.
 Search is the process of imagining
sequences of operators applied to the initial
state and checking which sequence reaches
a goal state.
14 Jan 2004 CSE-IUT 7
Search problem
14 Jan 2004 CSE-IUT 8
Search problem
14 Jan 2004 CS 3243 - Blind Search 9
Searching process
14 Jan 2004 CS 3243 - Blind Search 10
8 queens problem
14 Jan 2004 CS 3243 - Blind Search 11
8 queens solution
14 Jan 2004 CS 3243 - Blind Search 12
8 Queens non solution
14 Jan 2004 CS 3243 - Blind Search 13
8 queens problem formulation 1
14 Jan 2004 CS 3243 - Blind Search 14
8 queens problem formulation 2
14 Jan 2004 CS 3243 - Blind Search 15
14 Jan 2004 CS 3243 - Blind Search 16
8 queens problem formulation 3
14 Jan 2004 CS 3243 - Blind Search 17
14 Jan 2004 CS 3243 - Blind Search 18
Search through a state space
14 Jan 2004 CS 3243 - Blind Search 19
14 Jan 2004 CS 3243 - Blind Search 20
Example: The 8-puzzle
 states?
 actions?
 goal test?
 path cost?
14 Jan 2004 CS 3243 - Blind Search 21
Example: The 8-puzzle
 states? locations of tiles
 actions? move blank left, right, up, down
 goal test? = goal state (given)
 path cost? 1 per move
[Note: optimal solution of n-Puzzle family is NP-hard]

14 Jan 2004 CS 3243 - Blind Search 22
Problem types
 Deterministic, fully observable  single-state problem
 Agent knows exactly which state it will be in; solution is a sequence
 Non-observable  sensorless problem (conformant
problem)
 Agent may have no idea where it is; solution is a sequence
 Each action might therefore lead to one of several possible
successor states.
 it could be one of several possible initial
states

 Nondeterministic and/or partially observable  contingency
problem
 The actions are uncertain
 Agent’s percepts provide new information after each action
 Unknown state space  exploration problem
 When the states and actions of the environment are unknown, the
agent must act to discover them.
14 Jan 2004 CS 3243 - Blind Search 23
Search tree
14 Jan 2004 CS 3243 - Blind Search 24
Search tree- terminology
14 Jan 2004 CS 3243 - Blind Search 25
14 Jan 2004 CS 3243 - Blind Search 26
Search strategies
 A search strategy is defined by picking the order of node
expansion
 Strategies are evaluated along the following dimensions:
 completeness: does it always find a solution if one exists?
 time complexity: number of nodes generated
 space complexity: maximum number of nodes in memory
 optimality: does it always find a least-cost solution?
 Time and space complexity are measured in terms of
 b: maximum branching factor of the search tree
 d: depth of the least-cost solution
 m: maximum depth of the state space (may be ∞)


14 Jan 2004 CS 3243 - Blind Search 27
Uninformed search strategies
 Uninformed search strategies use only the
information available in the problem
definition
 Breadth-first search
 Uniform-cost search
 Depth-first search
 Depth-limited search
 Iterative deepening search

Breadth first search
14 Jan 2004 CS 3243 - Blind Search 28
14 Jan 2004 CS 3243 - Blind Search 29
14 Jan 2004 CS 3243 - Blind Search 30
14 Jan 2004 CS 3243 - Blind Search 31
14 Jan 2004 CS 3243 - Blind Search 32
Breadth first search
14 Jan 2004 CS 3243 - Blind Search 33
Breadth first search
14 Jan 2004 CS 3243 - Blind Search 34
Depth first search
14 Jan 2004 CS 3243 - Blind Search 35
14 Jan 2004 CS 3243 - Blind Search 36
Depth-first search
 Expand deepest unexpanded node
 Implementation:
 fringe = LIFO queue, i.e., put successors at front


14 Jan 2004 CS 3243 - Blind Search 37
Depth-first search
 Expand deepest unexpanded node
 Implementation:
 fringe = LIFO queue, i.e., put successors at front


14 Jan 2004 CS 3243 - Blind Search 38
Depth-first search
 Expand deepest unexpanded node
 Implementation:
 fringe = LIFO queue, i.e., put successors at front


14 Jan 2004 CS 3243 - Blind Search 39
Depth-first search
 Expand deepest unexpanded node
 Implementation:
 fringe = LIFO queue, i.e., put successors at front


14 Jan 2004 CS 3243 - Blind Search 40
Depth-first search
 Expand deepest unexpanded node
 Implementation:
 fringe = LIFO queue, i.e., put successors at front


14 Jan 2004 CS 3243 - Blind Search 41
Depth-first search
 Expand deepest unexpanded node
 Implementation:
 fringe = LIFO queue, i.e., put successors at front


14 Jan 2004 CS 3243 - Blind Search 42
Depth-first search
 Expand deepest unexpanded node
 Implementation:
 fringe = LIFO queue, i.e., put successors at front


14 Jan 2004 CS 3243 - Blind Search 43
Depth-first search
 Expand deepest unexpanded node
 Implementation:
 fringe = LIFO queue, i.e., put successors at front


14 Jan 2004 CS 3243 - Blind Search 44
Depth-first search
 Expand deepest unexpanded node
 Implementation:
 fringe = LIFO queue, i.e., put successors at front


14 Jan 2004 CS 3243 - Blind Search 45
Depth-first search
 Expand deepest unexpanded node
 Implementation:
 fringe = LIFO queue, i.e., put successors at front


14 Jan 2004 CS 3243 - Blind Search 46
Depth-first search
 Expand deepest unexpanded node
 Implementation:
 fringe = LIFO queue, i.e., put successors at front


14 Jan 2004 CS 3243 - Blind Search 47
Depth-first search
 Expand deepest unexpanded node
 Implementation:
 fringe = LIFO queue, i.e., put successors at front


Drawbacks of DFS
 It can make wrong choice and get stuck
going down a very long(even infinite) path
when a different choice would lead to a
solution near the root of a search tree.
 DFS is not optimal
14 Jan 2004 CS 3243 - Blind Search 48
14 Jan 2004 CS 3243 - Blind Search 49
Properties of depth-first search
 Complete? No: fails in infinite-depth spaces,
spaces with loops
 Modify to avoid repeated states along path
 complete in finite spaces
 Time? O(bm
): terrible if m is much larger than d
 but if solutions are dense, may be much faster than
breadth-first
 Space? O(bm), i.e., linear space!
 Optimal? No


Depth limited search
14 Jan 2004 CS 3243 - Blind Search 50
Iterative deepening depth-first search
14 Jan 2004 CS 3243 - Blind Search 51
14 Jan 2004 CS 3243 - Blind Search 52
Iterative deepening search l =0
14 Jan 2004 CS 3243 - Blind Search 53
Iterative deepening search l =1
14 Jan 2004 CS 3243 - Blind Search 54
Iterative deepening search l =2
14 Jan 2004 CS 3243 - Blind Search 55
Iterative deepening search l =3
14 Jan 2004 CS 3243 - Blind Search 56
14 Jan 2004 CS 3243 - Blind Search 57
14 Jan 2004 CS 3243 - Blind Search 58
Iterative deepening search
 Number of nodes generated in a depth-limited search to
depth d with branching factor b:
NBFS = b0
+ b1
+ b2
+ … + bd-2
+ bd-1
+ bd
 Number of nodes generated in an iterative deepening
search to depth d with branching factor b:
NIDS = d b^1
+ (d-1)b^2
+ … + 3bd-2
+2bd-1
+ 1bd
 For b = 10, d = 5,
 NBFS= 10 + 100 + 1,000 + 10,000 +100,000+ 999990 = 1,111,100
 NIDS = 6 + 50 + 400 + 3,000 + 20,000 + 100,000 = 123,456


14 Jan 2004 CS 3243 - Blind Search 59
Properties of iterative
deepening search
 Complete? Yes
 Time? (d+1)b0
+ d b1
+ (d-1)b2
+ … + bd
=
O(bd
)
 Space? O(bd)
 Optimal? Yes, if step cost = 1



Comparing search strategies
14 Jan 2004 CS 3243 - Blind Search 60
14 Jan 2004 CS 3243 - Blind Search 61
Repeated states
 Failure to detect repeated states can turn a
linear problem into an exponential one!

Avoiding repeated states
14 Jan 2004 CS 3243 - Blind Search 62
Uniform Cost search
14 Jan 2004 CS 3243 - Blind Search 63
Uniform Cost search (UCS)
14 Jan 2004 CS 3243 - Blind Search 64
Initial Graph
Solution Tree After
Applying UCS
Uniform Cost search
Initialization: { [ S , 0 ] }
Iteration1: { [ S->A , 1 ] , [ S->G , 12 ] }
Iteration2: { [ S->A->C , 2 ] , [ S->A->B , 4 ] , [ S->G , 12] }
Iteration3: { [ S->A->C->D , 3 ] , [ S->A->B , 4 ] , [ S->A->C->G , 4 ] , [ S->G , 12 ] }
Iteration4: { [ S->A->B , 4 ] , [ S->A->C->G , 4 ] , [ S->A->C->D->G , 6 ] , [ S->G , 12 ] }
Iteration5: { [ S->A->C->G , 4 ] , [ S->A->C->D->G , 6 ] , [ S->A->B->D , 7 ] , [ S->G , 12 ] }
Iteration6: gives the final output as S->A->C->G
14 Jan 2004 CS 3243 - Blind Search 65
Uniform Cost search (Algorithm)
Insert the root into the queue
While the queue is not empty
      Dequeue the maximum priority element from the queue
      If priorities are same, alphabetically smaller path is
chosen
      If the path is ending in the goal state, print the path and
exit
      Else
         Insert all the children of the dequeued element, with
the cumulative costs as priority
14 Jan 2004 CS 3243 - Blind Search 66
Uniform Cost search
 Full Details: https://algorithmicthoughts.wordpress.com/2012/12/15/artificial-
intelligence-uniform-cost-searchucs/
14 Jan 2004 CS 3243 - Blind Search 67
Suggestion for good exam
 Read books, internet tutorial and video
tutorials available on Youtube for clear
understanding and better performance in
exam.
14 Jan 2004 CS 3243 - Blind Search 68

Más contenido relacionado

La actualidad más candente

Artificial Intelligence Searching Techniques
Artificial Intelligence Searching TechniquesArtificial Intelligence Searching Techniques
Artificial Intelligence Searching TechniquesDr. C.V. Suresh Babu
 
Lecture 11 Informed Search
Lecture 11 Informed SearchLecture 11 Informed Search
Lecture 11 Informed SearchHema Kashyap
 
Depth first search and breadth first searching
Depth first search and breadth first searchingDepth first search and breadth first searching
Depth first search and breadth first searchingKawsar Hamid Sumon
 
Lecture 17 Iterative Deepening a star algorithm
Lecture 17 Iterative Deepening a star algorithmLecture 17 Iterative Deepening a star algorithm
Lecture 17 Iterative Deepening a star algorithmHema Kashyap
 
AI_Session 7 Greedy Best first search algorithm.pptx
AI_Session 7 Greedy Best first search algorithm.pptxAI_Session 7 Greedy Best first search algorithm.pptx
AI_Session 7 Greedy Best first search algorithm.pptxAsst.prof M.Gokilavani
 
Unit3:Informed and Uninformed search
Unit3:Informed and Uninformed searchUnit3:Informed and Uninformed search
Unit3:Informed and Uninformed searchTekendra Nath Yogi
 
AI Greedy & A* Informed Search Strategies by Example
AI Greedy & A* Informed Search Strategies by ExampleAI Greedy & A* Informed Search Strategies by Example
AI Greedy & A* Informed Search Strategies by ExampleAhmed Gad
 
AI-06 Search Techniques - Informed.pptx
AI-06 Search Techniques - Informed.pptxAI-06 Search Techniques - Informed.pptx
AI-06 Search Techniques - Informed.pptxPankaj Debbarma
 
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 techniquesKirti Verma
 
Solving problems by searching
Solving problems by searchingSolving problems by searching
Solving problems by searchingLuigi Ceccaroni
 
Breadth First Search & Depth First Search
Breadth First Search & Depth First SearchBreadth First Search & Depth First Search
Breadth First Search & Depth First SearchKevin Jadiya
 
Uninformed search /Blind search in AI
Uninformed search /Blind search in AIUninformed search /Blind search in AI
Uninformed search /Blind search in AIKirti Verma
 
Search problems in Artificial Intelligence
Search problems in Artificial IntelligenceSearch problems in Artificial Intelligence
Search problems in Artificial Intelligenceananth
 

La actualidad más candente (20)

Artificial Intelligence Searching Techniques
Artificial Intelligence Searching TechniquesArtificial Intelligence Searching Techniques
Artificial Intelligence Searching Techniques
 
Lecture 11 Informed Search
Lecture 11 Informed SearchLecture 11 Informed Search
Lecture 11 Informed Search
 
Depth first search and breadth first searching
Depth first search and breadth first searchingDepth first search and breadth first searching
Depth first search and breadth first searching
 
A* Algorithm
A* AlgorithmA* Algorithm
A* Algorithm
 
Lecture 17 Iterative Deepening a star algorithm
Lecture 17 Iterative Deepening a star algorithmLecture 17 Iterative Deepening a star algorithm
Lecture 17 Iterative Deepening a star algorithm
 
AI_Session 7 Greedy Best first search algorithm.pptx
AI_Session 7 Greedy Best first search algorithm.pptxAI_Session 7 Greedy Best first search algorithm.pptx
AI_Session 7 Greedy Best first search algorithm.pptx
 
Unit3:Informed and Uninformed search
Unit3:Informed and Uninformed searchUnit3:Informed and Uninformed search
Unit3:Informed and Uninformed search
 
AI Greedy & A* Informed Search Strategies by Example
AI Greedy & A* Informed Search Strategies by ExampleAI Greedy & A* Informed Search Strategies by Example
AI Greedy & A* Informed Search Strategies by Example
 
AI-06 Search Techniques - Informed.pptx
AI-06 Search Techniques - Informed.pptxAI-06 Search Techniques - Informed.pptx
AI-06 Search Techniques - Informed.pptx
 
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
 
Solving problems by searching
Solving problems by searchingSolving problems by searching
Solving problems by searching
 
Problem Solving
Problem Solving Problem Solving
Problem Solving
 
Uninformed search
Uninformed searchUninformed search
Uninformed search
 
Breadth First Search & Depth First Search
Breadth First Search & Depth First SearchBreadth First Search & Depth First Search
Breadth First Search & Depth First Search
 
Heuristic search
Heuristic searchHeuristic search
Heuristic search
 
Game playing in AI
Game playing in AIGame playing in AI
Game playing in AI
 
Uninformed search /Blind search in AI
Uninformed search /Blind search in AIUninformed search /Blind search in AI
Uninformed search /Blind search in AI
 
AI: AI & Problem Solving
AI: AI & Problem SolvingAI: AI & Problem Solving
AI: AI & Problem Solving
 
Search problems in Artificial Intelligence
Search problems in Artificial IntelligenceSearch problems in Artificial Intelligence
Search problems in Artificial Intelligence
 
Uninformed search
Uninformed searchUninformed search
Uninformed search
 

Similar a Uninformed search

artificial intelligence
artificial intelligence artificial intelligence
artificial intelligence ilias ahmed
 
Artificial intelligence topic for the btech studentCT II.pptx
Artificial intelligence topic for the btech studentCT II.pptxArtificial intelligence topic for the btech studentCT II.pptx
Artificial intelligence topic for the btech studentCT II.pptxbharatipatel22
 
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 , problomsSlimAmiri
 
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.uniformedsearchPalGov
 
(Radhika) presentation on chapter 2 ai
(Radhika) presentation on chapter 2 ai(Radhika) presentation on chapter 2 ai
(Radhika) presentation on chapter 2 aiRadhika Srinivasan
 
PowerPoint - K-State Laboratory for Knowledge Discovery in ...
PowerPoint - K-State Laboratory for Knowledge Discovery in ...PowerPoint - K-State Laboratory for Knowledge Discovery in ...
PowerPoint - K-State Laboratory for Knowledge Discovery in ...butest
 
Private and secure secret shared map reduce
Private and secure secret shared map reducePrivate and secure secret shared map reduce
Private and secure secret shared map reduceShantanu Sharma
 
unit 2.pptx
unit 2.pptxunit 2.pptx
unit 2.pptxGavy11
 
AI 03 Solving Problems By Searching
AI 03 Solving Problems By SearchingAI 03 Solving Problems By Searching
AI 03 Solving Problems By SearchingJustin Knight
 
Jarrar: Un-informed Search
Jarrar: Un-informed SearchJarrar: Un-informed Search
Jarrar: Un-informed SearchMustafa Jarrar
 
AI_Session 11: searching with Non-Deterministic Actions and partial observati...
AI_Session 11: searching with Non-Deterministic Actions and partial observati...AI_Session 11: searching with Non-Deterministic Actions and partial observati...
AI_Session 11: searching with Non-Deterministic Actions and partial observati...Asst.prof M.Gokilavani
 
An optimal and progressive algorithm for skyline queries slide
An optimal and progressive algorithm for skyline queries slideAn optimal and progressive algorithm for skyline queries slide
An optimal and progressive algorithm for skyline queries slideWooSung Choi
 
RPT_AI_03_PartB_UNINFORMED_FINAL.pptx
RPT_AI_03_PartB_UNINFORMED_FINAL.pptxRPT_AI_03_PartB_UNINFORMED_FINAL.pptx
RPT_AI_03_PartB_UNINFORMED_FINAL.pptxRahulkumarTivarekar1
 
Graph theory basics
Graph theory basicsGraph theory basics
Graph theory basicsAlexey Tokar
 

Similar a Uninformed search (17)

M3 search
M3 searchM3 search
M3 search
 
artificial intelligence
artificial intelligence artificial intelligence
artificial intelligence
 
Artificial intelligence topic for the btech studentCT II.pptx
Artificial intelligence topic for the btech studentCT II.pptxArtificial intelligence topic for the btech studentCT II.pptx
Artificial intelligence topic for the btech studentCT II.pptx
 
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
 
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
 
(Radhika) presentation on chapter 2 ai
(Radhika) presentation on chapter 2 ai(Radhika) presentation on chapter 2 ai
(Radhika) presentation on chapter 2 ai
 
PowerPoint - K-State Laboratory for Knowledge Discovery in ...
PowerPoint - K-State Laboratory for Knowledge Discovery in ...PowerPoint - K-State Laboratory for Knowledge Discovery in ...
PowerPoint - K-State Laboratory for Knowledge Discovery in ...
 
3-uninformed-search.ppt
3-uninformed-search.ppt3-uninformed-search.ppt
3-uninformed-search.ppt
 
Private and secure secret shared map reduce
Private and secure secret shared map reducePrivate and secure secret shared map reduce
Private and secure secret shared map reduce
 
unit 2.pptx
unit 2.pptxunit 2.pptx
unit 2.pptx
 
AI 03 Solving Problems By Searching
AI 03 Solving Problems By SearchingAI 03 Solving Problems By Searching
AI 03 Solving Problems By Searching
 
Jarrar: Un-informed Search
Jarrar: Un-informed SearchJarrar: Un-informed Search
Jarrar: Un-informed Search
 
AI_Session 11: searching with Non-Deterministic Actions and partial observati...
AI_Session 11: searching with Non-Deterministic Actions and partial observati...AI_Session 11: searching with Non-Deterministic Actions and partial observati...
AI_Session 11: searching with Non-Deterministic Actions and partial observati...
 
An optimal and progressive algorithm for skyline queries slide
An optimal and progressive algorithm for skyline queries slideAn optimal and progressive algorithm for skyline queries slide
An optimal and progressive algorithm for skyline queries slide
 
RPT_AI_03_PartB_UNINFORMED_FINAL.pptx
RPT_AI_03_PartB_UNINFORMED_FINAL.pptxRPT_AI_03_PartB_UNINFORMED_FINAL.pptx
RPT_AI_03_PartB_UNINFORMED_FINAL.pptx
 
Search 1
Search 1Search 1
Search 1
 
Graph theory basics
Graph theory basicsGraph theory basics
Graph theory basics
 

Más de Bablu Shofi

Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithmBablu Shofi
 
Informed search (heuristics)
Informed search (heuristics)Informed search (heuristics)
Informed search (heuristics)Bablu Shofi
 
Data linkcontrol
Data linkcontrolData linkcontrol
Data linkcontrolBablu Shofi
 
Inventory Management
Inventory ManagementInventory Management
Inventory ManagementBablu Shofi
 

Más de Bablu Shofi (7)

Cyber security
Cyber securityCyber security
Cyber security
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
 
Informed search (heuristics)
Informed search (heuristics)Informed search (heuristics)
Informed search (heuristics)
 
computer-memory
computer-memorycomputer-memory
computer-memory
 
Data linkcontrol
Data linkcontrolData linkcontrol
Data linkcontrol
 
ERP
ERPERP
ERP
 
Inventory Management
Inventory ManagementInventory Management
Inventory Management
 

Último

(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 

Último (20)

(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 

Uninformed search

  • 1. 14 Jan 2004 CSE-IUT 1 Solving problems by searching Chapter 3
  • 2. 14 Jan 2004 CS 3243 - Blind Search 2 Outline  Introduction to state space search  Problem types  Problem formulation  Example problems  Basic search algorithms
  • 3. Objective: State space search  State space representation  How problems are formulated as state space search problems  How implicit state spaces can be unfolded during search. 14 Jan 2004 CS 3243 - Blind Search 3
  • 4. Goal directed agent 14 Jan 2004 CS 3243 - Blind Search 4
  • 5. 14 Jan 2004 CS 3243 - Blind Search 5
  • 6. 14 Jan 2004 CS 3243 - Blind Search 6
  • 7.  Problem formulation: it means choosing a relevant set of states to consider and a feasible set of operators for moving from one state to another.  Search is the process of imagining sequences of operators applied to the initial state and checking which sequence reaches a goal state. 14 Jan 2004 CSE-IUT 7
  • 8. Search problem 14 Jan 2004 CSE-IUT 8
  • 9. Search problem 14 Jan 2004 CS 3243 - Blind Search 9
  • 10. Searching process 14 Jan 2004 CS 3243 - Blind Search 10
  • 11. 8 queens problem 14 Jan 2004 CS 3243 - Blind Search 11
  • 12. 8 queens solution 14 Jan 2004 CS 3243 - Blind Search 12
  • 13. 8 Queens non solution 14 Jan 2004 CS 3243 - Blind Search 13
  • 14. 8 queens problem formulation 1 14 Jan 2004 CS 3243 - Blind Search 14
  • 15. 8 queens problem formulation 2 14 Jan 2004 CS 3243 - Blind Search 15
  • 16. 14 Jan 2004 CS 3243 - Blind Search 16
  • 17. 8 queens problem formulation 3 14 Jan 2004 CS 3243 - Blind Search 17
  • 18. 14 Jan 2004 CS 3243 - Blind Search 18
  • 19. Search through a state space 14 Jan 2004 CS 3243 - Blind Search 19
  • 20. 14 Jan 2004 CS 3243 - Blind Search 20 Example: The 8-puzzle  states?  actions?  goal test?  path cost?
  • 21. 14 Jan 2004 CS 3243 - Blind Search 21 Example: The 8-puzzle  states? locations of tiles  actions? move blank left, right, up, down  goal test? = goal state (given)  path cost? 1 per move [Note: optimal solution of n-Puzzle family is NP-hard] 
  • 22. 14 Jan 2004 CS 3243 - Blind Search 22 Problem types  Deterministic, fully observable  single-state problem  Agent knows exactly which state it will be in; solution is a sequence  Non-observable  sensorless problem (conformant problem)  Agent may have no idea where it is; solution is a sequence  Each action might therefore lead to one of several possible successor states.  it could be one of several possible initial states 
  • 23.  Nondeterministic and/or partially observable  contingency problem  The actions are uncertain  Agent’s percepts provide new information after each action  Unknown state space  exploration problem  When the states and actions of the environment are unknown, the agent must act to discover them. 14 Jan 2004 CS 3243 - Blind Search 23
  • 24. Search tree 14 Jan 2004 CS 3243 - Blind Search 24
  • 25. Search tree- terminology 14 Jan 2004 CS 3243 - Blind Search 25
  • 26. 14 Jan 2004 CS 3243 - Blind Search 26 Search strategies  A search strategy is defined by picking the order of node expansion  Strategies are evaluated along the following dimensions:  completeness: does it always find a solution if one exists?  time complexity: number of nodes generated  space complexity: maximum number of nodes in memory  optimality: does it always find a least-cost solution?  Time and space complexity are measured in terms of  b: maximum branching factor of the search tree  d: depth of the least-cost solution  m: maximum depth of the state space (may be ∞)  
  • 27. 14 Jan 2004 CS 3243 - Blind Search 27 Uninformed search strategies  Uninformed search strategies use only the information available in the problem definition  Breadth-first search  Uniform-cost search  Depth-first search  Depth-limited search  Iterative deepening search 
  • 28. Breadth first search 14 Jan 2004 CS 3243 - Blind Search 28
  • 29. 14 Jan 2004 CS 3243 - Blind Search 29
  • 30. 14 Jan 2004 CS 3243 - Blind Search 30
  • 31. 14 Jan 2004 CS 3243 - Blind Search 31
  • 32. 14 Jan 2004 CS 3243 - Blind Search 32
  • 33. Breadth first search 14 Jan 2004 CS 3243 - Blind Search 33
  • 34. Breadth first search 14 Jan 2004 CS 3243 - Blind Search 34
  • 35. Depth first search 14 Jan 2004 CS 3243 - Blind Search 35
  • 36. 14 Jan 2004 CS 3243 - Blind Search 36 Depth-first search  Expand deepest unexpanded node  Implementation:  fringe = LIFO queue, i.e., put successors at front  
  • 37. 14 Jan 2004 CS 3243 - Blind Search 37 Depth-first search  Expand deepest unexpanded node  Implementation:  fringe = LIFO queue, i.e., put successors at front  
  • 38. 14 Jan 2004 CS 3243 - Blind Search 38 Depth-first search  Expand deepest unexpanded node  Implementation:  fringe = LIFO queue, i.e., put successors at front  
  • 39. 14 Jan 2004 CS 3243 - Blind Search 39 Depth-first search  Expand deepest unexpanded node  Implementation:  fringe = LIFO queue, i.e., put successors at front  
  • 40. 14 Jan 2004 CS 3243 - Blind Search 40 Depth-first search  Expand deepest unexpanded node  Implementation:  fringe = LIFO queue, i.e., put successors at front  
  • 41. 14 Jan 2004 CS 3243 - Blind Search 41 Depth-first search  Expand deepest unexpanded node  Implementation:  fringe = LIFO queue, i.e., put successors at front  
  • 42. 14 Jan 2004 CS 3243 - Blind Search 42 Depth-first search  Expand deepest unexpanded node  Implementation:  fringe = LIFO queue, i.e., put successors at front  
  • 43. 14 Jan 2004 CS 3243 - Blind Search 43 Depth-first search  Expand deepest unexpanded node  Implementation:  fringe = LIFO queue, i.e., put successors at front  
  • 44. 14 Jan 2004 CS 3243 - Blind Search 44 Depth-first search  Expand deepest unexpanded node  Implementation:  fringe = LIFO queue, i.e., put successors at front  
  • 45. 14 Jan 2004 CS 3243 - Blind Search 45 Depth-first search  Expand deepest unexpanded node  Implementation:  fringe = LIFO queue, i.e., put successors at front  
  • 46. 14 Jan 2004 CS 3243 - Blind Search 46 Depth-first search  Expand deepest unexpanded node  Implementation:  fringe = LIFO queue, i.e., put successors at front  
  • 47. 14 Jan 2004 CS 3243 - Blind Search 47 Depth-first search  Expand deepest unexpanded node  Implementation:  fringe = LIFO queue, i.e., put successors at front  
  • 48. Drawbacks of DFS  It can make wrong choice and get stuck going down a very long(even infinite) path when a different choice would lead to a solution near the root of a search tree.  DFS is not optimal 14 Jan 2004 CS 3243 - Blind Search 48
  • 49. 14 Jan 2004 CS 3243 - Blind Search 49 Properties of depth-first search  Complete? No: fails in infinite-depth spaces, spaces with loops  Modify to avoid repeated states along path  complete in finite spaces  Time? O(bm ): terrible if m is much larger than d  but if solutions are dense, may be much faster than breadth-first  Space? O(bm), i.e., linear space!  Optimal? No  
  • 50. Depth limited search 14 Jan 2004 CS 3243 - Blind Search 50
  • 51. Iterative deepening depth-first search 14 Jan 2004 CS 3243 - Blind Search 51
  • 52. 14 Jan 2004 CS 3243 - Blind Search 52 Iterative deepening search l =0
  • 53. 14 Jan 2004 CS 3243 - Blind Search 53 Iterative deepening search l =1
  • 54. 14 Jan 2004 CS 3243 - Blind Search 54 Iterative deepening search l =2
  • 55. 14 Jan 2004 CS 3243 - Blind Search 55 Iterative deepening search l =3
  • 56. 14 Jan 2004 CS 3243 - Blind Search 56
  • 57. 14 Jan 2004 CS 3243 - Blind Search 57
  • 58. 14 Jan 2004 CS 3243 - Blind Search 58 Iterative deepening search  Number of nodes generated in a depth-limited search to depth d with branching factor b: NBFS = b0 + b1 + b2 + … + bd-2 + bd-1 + bd  Number of nodes generated in an iterative deepening search to depth d with branching factor b: NIDS = d b^1 + (d-1)b^2 + … + 3bd-2 +2bd-1 + 1bd  For b = 10, d = 5,  NBFS= 10 + 100 + 1,000 + 10,000 +100,000+ 999990 = 1,111,100  NIDS = 6 + 50 + 400 + 3,000 + 20,000 + 100,000 = 123,456  
  • 59. 14 Jan 2004 CS 3243 - Blind Search 59 Properties of iterative deepening search  Complete? Yes  Time? (d+1)b0 + d b1 + (d-1)b2 + … + bd = O(bd )  Space? O(bd)  Optimal? Yes, if step cost = 1   
  • 60. Comparing search strategies 14 Jan 2004 CS 3243 - Blind Search 60
  • 61. 14 Jan 2004 CS 3243 - Blind Search 61 Repeated states  Failure to detect repeated states can turn a linear problem into an exponential one! 
  • 62. Avoiding repeated states 14 Jan 2004 CS 3243 - Blind Search 62
  • 63. Uniform Cost search 14 Jan 2004 CS 3243 - Blind Search 63
  • 64. Uniform Cost search (UCS) 14 Jan 2004 CS 3243 - Blind Search 64 Initial Graph Solution Tree After Applying UCS
  • 65. Uniform Cost search Initialization: { [ S , 0 ] } Iteration1: { [ S->A , 1 ] , [ S->G , 12 ] } Iteration2: { [ S->A->C , 2 ] , [ S->A->B , 4 ] , [ S->G , 12] } Iteration3: { [ S->A->C->D , 3 ] , [ S->A->B , 4 ] , [ S->A->C->G , 4 ] , [ S->G , 12 ] } Iteration4: { [ S->A->B , 4 ] , [ S->A->C->G , 4 ] , [ S->A->C->D->G , 6 ] , [ S->G , 12 ] } Iteration5: { [ S->A->C->G , 4 ] , [ S->A->C->D->G , 6 ] , [ S->A->B->D , 7 ] , [ S->G , 12 ] } Iteration6: gives the final output as S->A->C->G 14 Jan 2004 CS 3243 - Blind Search 65
  • 66. Uniform Cost search (Algorithm) Insert the root into the queue While the queue is not empty       Dequeue the maximum priority element from the queue       If priorities are same, alphabetically smaller path is chosen       If the path is ending in the goal state, print the path and exit       Else          Insert all the children of the dequeued element, with the cumulative costs as priority 14 Jan 2004 CS 3243 - Blind Search 66
  • 67. Uniform Cost search  Full Details: https://algorithmicthoughts.wordpress.com/2012/12/15/artificial- intelligence-uniform-cost-searchucs/ 14 Jan 2004 CS 3243 - Blind Search 67
  • 68. Suggestion for good exam  Read books, internet tutorial and video tutorials available on Youtube for clear understanding and better performance in exam. 14 Jan 2004 CS 3243 - Blind Search 68