SlideShare a Scribd company logo
Uninformed Search
Technique
Presented By: Kapil Dahal
kapil.dahal@kcc.edu.np
Breadth First Search
• The breadth first search algorithm visits the nodes of the tree along
its breadth, starting from the level with depth 0 to the maximum
depth.
• Here, the nodes in the tree are traversed following their ascending
ordered labels.
Uninformed Search technique
Algorithm
Contd….
How the algorithm works?
• If the current node is not the goal add the offspring of the
current in any order to the rear end of the queue and redefine the front
element of the queue as the current.
• The algorithm terminates, when the goal is found.
Time Complexity
Expanding….
Time and Memory requirement : Example
Uniform Cost
• Breadth first search is optimal when all step costs are equal.
• Uniform Cost search is optimal when step costs varies.
• Uniform-cost search expands the node n with lowest path cost.
Uniform Cost Search:example
Depth First Search
• The depth first search generates nodes and compares them with the
goal along the largest depth of the tree and moves up to the parent of
the last visited node, only when no further node can be generated
below the last visited node.
• After moving up to the parent, the algorithm attempts to generate a
new offspring of the parent node.
• Uses Stack as data structure.
Algorithm
Example tree
Contd…
• In the above algorithm, a starting node is placed in the stack, the top
of which is pointed to by the stack-top. For examining the node, it is
popped out from the stack.
• If it is the goal, the algorithm terminates, else its children are pushed
into the stack in any order.
• The process is continued until the stack is empty.
example:DFS
Properties: Depth first search
Depth Limited Search
• Depth-limited search avoids the pitfalls of depth-first search by
imposing a cutoff on the maximum depth of a path.
• This cutoff can be implemented with a special depth-limited search
algorithm, or by using the general search algorithm with operators
that keep track of the depth.
• To avoid the infinite depth problem of DFS, we can decide to only
search until depth L, i.e. we don’t expand beyond depth L.
Iterative deepening depth-first search
• To avoid the infinite depth problem of DFS, we can decide to only
search until depth L, i.e. we don’t expand beyond depth L
->Depth first search.
• What of solution is deeper than L? -->Increase L iteratively.
->Iterative Deepening Search
Contd…
• When the initial depth cut-off is one, it generates only the root node
and examines it.
• If the root node is not the goal, then depth cut-off is set to two and
the tree up to depth 2 is generated using typical depth first search.
• Similarly, when the depth cut-off is set to m, the tree is constructed
up to depth m by depth first search.
Contd…
• Iterative deepening search is a strategy that sidesteps the issue of
choosing the best depth limit by trying all possible depth limits: first
depth 0, then depth 1, then depth 2, and so on.
Algorithm: IDS
Example : Iterative deepening
Nodes Generated:IDS
• Number of nodes generated in a depth-limited search to depth d with
branching factor b:
• Number of nodes generated in an iterative deepening search to depth
d with branching factor b:
Properties: IDS
Bi-Directional Search
• Alternate searching from the start state toward the goal and from the
goal state toward the start.
• Stop when the frontiers intersect.
• Works well only when there are unique start and goal states.
• Requires the ability to generate “predecessor” states.
•
Bidirectional search: figure
Comparing Search Strategies

More Related Content

What's hot (20)

PPTX
Hill climbing algorithm
Dr. C.V. Suresh Babu
 
PDF
Informed search
Amit Kumar Rathi
 
PPTX
Alpha beta
sabairshad4
 
PPT
Uninformed search
Bablu Shofi
 
PPT
AI Lecture 4 (informed search and exploration)
Tajim Md. Niamat Ullah Akhund
 
PPTX
Alpha-beta pruning (Artificial Intelligence)
Falak Chaudry
 
PPTX
Lecture 17 Iterative Deepening a star algorithm
Hema Kashyap
 
PPTX
Example of iterative deepening search & bidirectional search
Abhijeet Agarwal
 
PPTX
search strategies in artificial intelligence
Hanif Ullah (Gold Medalist)
 
PPTX
Greedy algorithms
sandeep54552
 
PPTX
Uninformed search
Megha Sharma
 
PDF
Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...
RahulSharma4566
 
PPTX
AI search techniques
Omar Isaid
 
PDF
I.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE II. HEURISTIC FUNCTION IN AI III...
vikas dhakane
 
PDF
Hill climbing algorithm in artificial intelligence
sandeep54552
 
PDF
Hill Climbing Algorithm in Artificial Intelligence
Bharat Bhushan
 
PPTX
Min-Max algorithm
Dr. C.V. Suresh Babu
 
PPT
Pattern matching
shravs_188
 
PPTX
Local search algorithm
Megha Sharma
 
PPTX
Problem solving agents
Megha Sharma
 
Hill climbing algorithm
Dr. C.V. Suresh Babu
 
Informed search
Amit Kumar Rathi
 
Alpha beta
sabairshad4
 
Uninformed search
Bablu Shofi
 
AI Lecture 4 (informed search and exploration)
Tajim Md. Niamat Ullah Akhund
 
Alpha-beta pruning (Artificial Intelligence)
Falak Chaudry
 
Lecture 17 Iterative Deepening a star algorithm
Hema Kashyap
 
Example of iterative deepening search & bidirectional search
Abhijeet Agarwal
 
search strategies in artificial intelligence
Hanif Ullah (Gold Medalist)
 
Greedy algorithms
sandeep54552
 
Uninformed search
Megha Sharma
 
Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...
RahulSharma4566
 
AI search techniques
Omar Isaid
 
I.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE II. HEURISTIC FUNCTION IN AI III...
vikas dhakane
 
Hill climbing algorithm in artificial intelligence
sandeep54552
 
Hill Climbing Algorithm in Artificial Intelligence
Bharat Bhushan
 
Min-Max algorithm
Dr. C.V. Suresh Babu
 
Pattern matching
shravs_188
 
Local search algorithm
Megha Sharma
 
Problem solving agents
Megha Sharma
 

Viewers also liked (13)

PDF
08 uninformed search
Tianlu Wang
 
PPTX
Lecture 08 uninformed search techniques
Hema Kashyap
 
PPT
M4 Heuristics
guestd3d0fb
 
PPT
Solving problems by searching Informed (heuristics) Search
matele41
 
PPT
4 informed-search
Mhd Sb
 
PPTX
Control Strategies in AI
Amey Kerkar
 
PPT
Heuristic Search
butest
 
DOC
Chapter 2 (final)
Nateshwar Kamlesh
 
PPT
Solving problems by searching
Luigi Ceccaroni
 
PPT
Heuristic Search Techniques {Artificial Intelligence}
FellowBuddy.com
 
PPTX
AI: AI & Searching
DataminingTools Inc
 
PPT
Chapter3 Search
Khiem Ho
 
PPT
Uniformed tree searching
Ayaelshiwi
 
08 uninformed search
Tianlu Wang
 
Lecture 08 uninformed search techniques
Hema Kashyap
 
M4 Heuristics
guestd3d0fb
 
Solving problems by searching Informed (heuristics) Search
matele41
 
4 informed-search
Mhd Sb
 
Control Strategies in AI
Amey Kerkar
 
Heuristic Search
butest
 
Chapter 2 (final)
Nateshwar Kamlesh
 
Solving problems by searching
Luigi Ceccaroni
 
Heuristic Search Techniques {Artificial Intelligence}
FellowBuddy.com
 
AI: AI & Searching
DataminingTools Inc
 
Chapter3 Search
Khiem Ho
 
Uniformed tree searching
Ayaelshiwi
 
Ad

Similar to Uninformed Search technique (20)

PPTX
Uninformed Search Strategies techni.pptx
DeepaT40
 
PPTX
4.Module_2_Chaptjvyfgcgfxfdxhgfxchtfer_3.pptx
gkavitha5225
 
PPTX
Artificial intelligence(05)
Nazir Ahmed
 
PPTX
NEW-II.pptx
jpradha86
 
PDF
Presentation on the artificial intelligenc
PriyadharshiniG41
 
PDF
Week 7.pdf
ZamshedForman1
 
PDF
Ai unit-4
Tribhuvan University
 
PPTX
2.uninformed search
KONGU ENGINEERING COLLEGE
 
PPTX
uninformed search part 2.pptx
MUZAMILALI48
 
PPTX
UNIT II ARTIFICIQL INTELLIGENCE SEARCH STRATEGIES OSMANIA UNIVERSITY
PriyankaSeelaboyina
 
PPTX
AI-05 Search Algorithms.pptx
Pankaj Debbarma
 
PPTX
Unit-III-AI Search Techniques and solution's
Harsha Patil
 
PPT
Uninformed Search basics - Artificial Intelligence - Anna University
theophilusindia
 
PPTX
NEW-II.pptx
jpradha86
 
PPT
Unit 2 Topic 2 Uniformed search strategies.ppt
ssuser470a6d1
 
PPTX
Lecture 3 Problem Solving, DFS, BFS, IDF.pptx
Bcsf19m502MUJAHIDALI
 
PPTX
Lecture 10 Uninformed Search Techniques conti..
Hema Kashyap
 
PPTX
BFS,DFS,Depth bound,Beam search,Iterative.pptx
PriyadharshiniG41
 
PPTX
AI Unit-2 (Chapter-3-4) Solving Problems by Searching.pptx
pandyaga
 
PPTX
Aritificial Intelligence Search Techniques Unit 1
lavanyachinta5
 
Uninformed Search Strategies techni.pptx
DeepaT40
 
4.Module_2_Chaptjvyfgcgfxfdxhgfxchtfer_3.pptx
gkavitha5225
 
Artificial intelligence(05)
Nazir Ahmed
 
NEW-II.pptx
jpradha86
 
Presentation on the artificial intelligenc
PriyadharshiniG41
 
Week 7.pdf
ZamshedForman1
 
2.uninformed search
KONGU ENGINEERING COLLEGE
 
uninformed search part 2.pptx
MUZAMILALI48
 
UNIT II ARTIFICIQL INTELLIGENCE SEARCH STRATEGIES OSMANIA UNIVERSITY
PriyankaSeelaboyina
 
AI-05 Search Algorithms.pptx
Pankaj Debbarma
 
Unit-III-AI Search Techniques and solution's
Harsha Patil
 
Uninformed Search basics - Artificial Intelligence - Anna University
theophilusindia
 
NEW-II.pptx
jpradha86
 
Unit 2 Topic 2 Uniformed search strategies.ppt
ssuser470a6d1
 
Lecture 3 Problem Solving, DFS, BFS, IDF.pptx
Bcsf19m502MUJAHIDALI
 
Lecture 10 Uninformed Search Techniques conti..
Hema Kashyap
 
BFS,DFS,Depth bound,Beam search,Iterative.pptx
PriyadharshiniG41
 
AI Unit-2 (Chapter-3-4) Solving Problems by Searching.pptx
pandyaga
 
Aritificial Intelligence Search Techniques Unit 1
lavanyachinta5
 
Ad

Recently uploaded (20)

PDF
Before tackling these green level readers child Will need to be able to
startshws
 
PPTX
The Future of Artificial Intelligence ii
maniieiish
 
PPTX
isaacnewton-250718125311-e7ewqeqweqwa74d99.pptx
MahmoudHalim13
 
PDF
apidays Munich 2025 - Making Sense of AI-Ready APIs in a Buzzword World, Andr...
apidays
 
PDF
apidays Munich 2025 - Let’s build, debug and test a magic MCP server in Postm...
apidays
 
PPTX
Part 1 - Descriptive Statistics and Actuarial
NhnFrsh
 
PPTX
Solution+Architecture+Review+-+Sample.pptx
manuvratsingh1
 
PPTX
This PowerPoint presentation titled "Data Visualization: Turning Data into In...
HemaDivyaKantamaneni
 
PPTX
Credit Card Fraud Detection Presentation
rasmilalama
 
PDF
Introduction to Data Science_Washington_
StarToon1
 
PDF
Responsibilities of a Certified Data Engineer | IABAC
Seenivasan
 
PPTX
Enterprise Architecture and TOGAF Presn
starksolutionsindia
 
DOCX
Discover the Key Benefits of Implementing Data Mesh Architecture.docx
ajaykumar405166
 
PPTX
apidays Munich 2025 - Agentic AI: A Friend or Foe?, Merja Kajava (Aavista Oy)
apidays
 
PPTX
materials that are required to used.pptx
drkaran1421
 
PPTX
Learning Tendency Analysis of Scratch Programming Course(Entry Class) for Upp...
ryouta039
 
PDF
jadwalllllllllllllllllllllllllllllllllll
FindaAfifah
 
DOCX
Online Delivery Restaurant idea and analyst the data
sejalsengar2323
 
PDF
apidays Munich 2025 - The Double Life of the API Product Manager, Emmanuel Pa...
apidays
 
PPTX
apidays Munich 2025 - Federated API Management and Governance, Vince Baker (D...
apidays
 
Before tackling these green level readers child Will need to be able to
startshws
 
The Future of Artificial Intelligence ii
maniieiish
 
isaacnewton-250718125311-e7ewqeqweqwa74d99.pptx
MahmoudHalim13
 
apidays Munich 2025 - Making Sense of AI-Ready APIs in a Buzzword World, Andr...
apidays
 
apidays Munich 2025 - Let’s build, debug and test a magic MCP server in Postm...
apidays
 
Part 1 - Descriptive Statistics and Actuarial
NhnFrsh
 
Solution+Architecture+Review+-+Sample.pptx
manuvratsingh1
 
This PowerPoint presentation titled "Data Visualization: Turning Data into In...
HemaDivyaKantamaneni
 
Credit Card Fraud Detection Presentation
rasmilalama
 
Introduction to Data Science_Washington_
StarToon1
 
Responsibilities of a Certified Data Engineer | IABAC
Seenivasan
 
Enterprise Architecture and TOGAF Presn
starksolutionsindia
 
Discover the Key Benefits of Implementing Data Mesh Architecture.docx
ajaykumar405166
 
apidays Munich 2025 - Agentic AI: A Friend or Foe?, Merja Kajava (Aavista Oy)
apidays
 
materials that are required to used.pptx
drkaran1421
 
Learning Tendency Analysis of Scratch Programming Course(Entry Class) for Upp...
ryouta039
 
jadwalllllllllllllllllllllllllllllllllll
FindaAfifah
 
Online Delivery Restaurant idea and analyst the data
sejalsengar2323
 
apidays Munich 2025 - The Double Life of the API Product Manager, Emmanuel Pa...
apidays
 
apidays Munich 2025 - Federated API Management and Governance, Vince Baker (D...
apidays
 

Uninformed Search technique

  • 2. Breadth First Search • The breadth first search algorithm visits the nodes of the tree along its breadth, starting from the level with depth 0 to the maximum depth. • Here, the nodes in the tree are traversed following their ascending ordered labels.
  • 6. How the algorithm works? • If the current node is not the goal add the offspring of the current in any order to the rear end of the queue and redefine the front element of the queue as the current. • The algorithm terminates, when the goal is found.
  • 9. Time and Memory requirement : Example
  • 10. Uniform Cost • Breadth first search is optimal when all step costs are equal. • Uniform Cost search is optimal when step costs varies. • Uniform-cost search expands the node n with lowest path cost.
  • 12. Depth First Search • The depth first search generates nodes and compares them with the goal along the largest depth of the tree and moves up to the parent of the last visited node, only when no further node can be generated below the last visited node. • After moving up to the parent, the algorithm attempts to generate a new offspring of the parent node. • Uses Stack as data structure.
  • 15. Contd… • In the above algorithm, a starting node is placed in the stack, the top of which is pointed to by the stack-top. For examining the node, it is popped out from the stack. • If it is the goal, the algorithm terminates, else its children are pushed into the stack in any order. • The process is continued until the stack is empty.
  • 18. Depth Limited Search • Depth-limited search avoids the pitfalls of depth-first search by imposing a cutoff on the maximum depth of a path. • This cutoff can be implemented with a special depth-limited search algorithm, or by using the general search algorithm with operators that keep track of the depth. • To avoid the infinite depth problem of DFS, we can decide to only search until depth L, i.e. we don’t expand beyond depth L.
  • 19. Iterative deepening depth-first search • To avoid the infinite depth problem of DFS, we can decide to only search until depth L, i.e. we don’t expand beyond depth L ->Depth first search. • What of solution is deeper than L? -->Increase L iteratively. ->Iterative Deepening Search
  • 20. Contd… • When the initial depth cut-off is one, it generates only the root node and examines it. • If the root node is not the goal, then depth cut-off is set to two and the tree up to depth 2 is generated using typical depth first search. • Similarly, when the depth cut-off is set to m, the tree is constructed up to depth m by depth first search.
  • 21. Contd… • Iterative deepening search is a strategy that sidesteps the issue of choosing the best depth limit by trying all possible depth limits: first depth 0, then depth 1, then depth 2, and so on.
  • 23. Example : Iterative deepening
  • 24. Nodes Generated:IDS • Number of nodes generated in a depth-limited search to depth d with branching factor b: • Number of nodes generated in an iterative deepening search to depth d with branching factor b:
  • 26. Bi-Directional Search • Alternate searching from the start state toward the goal and from the goal state toward the start. • Stop when the frontiers intersect. • Works well only when there are unique start and goal states. • Requires the ability to generate “predecessor” states. •