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

PPT
Informed search (heuristics)
PPT
AI Lecture 4 (informed search and exploration)
PPT
Hill climbing
PPTX
State space search and Problem Solving techniques
PPTX
Informed and Uninformed search Strategies
PPTX
Uninformed search /Blind search in AI
PPTX
AI-03 Problems State Space.pptx
PPT
Ch2 3-informed (heuristic) search
Informed search (heuristics)
AI Lecture 4 (informed search and exploration)
Hill climbing
State space search and Problem Solving techniques
Informed and Uninformed search Strategies
Uninformed search /Blind search in AI
AI-03 Problems State Space.pptx
Ch2 3-informed (heuristic) search

What's hot (20)

PPTX
Artificial Intelligence Searching Techniques
PDF
I.BEST FIRST SEARCH IN AI
PPTX
Unit-III-AI Search Techniques and solution's
PDF
A* Search Algorithm
PPTX
search strategies in artificial intelligence
PDF
I.ITERATIVE DEEPENING DEPTH FIRST SEARCH(ID-DFS) II.INFORMED SEARCH IN ARTIFI...
PPTX
AI search techniques
PPTX
AI_Session 7 Greedy Best first search algorithm.pptx
PDF
I. Hill climbing algorithm II. Steepest hill climbing algorithm
PPTX
Problem solving agents
PPTX
State space search
PPTX
uninformed search part 1.pptx
PDF
Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...
PPTX
Certinity Factor and Dempster-shafer theory .pptx
PPT
Artificial Intelligence -- Search Algorithms
PDF
Problem Solving
PPT
Heuristic Search Techniques {Artificial Intelligence}
PPTX
Problem reduction AND OR GRAPH & AO* algorithm.ppt
PPT
Solving problems by searching
PDF
I.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE II. HEURISTIC FUNCTION IN AI III...
Artificial Intelligence Searching Techniques
I.BEST FIRST SEARCH IN AI
Unit-III-AI Search Techniques and solution's
A* Search Algorithm
search strategies in artificial intelligence
I.ITERATIVE DEEPENING DEPTH FIRST SEARCH(ID-DFS) II.INFORMED SEARCH IN ARTIFI...
AI search techniques
AI_Session 7 Greedy Best first search algorithm.pptx
I. Hill climbing algorithm II. Steepest hill climbing algorithm
Problem solving agents
State space search
uninformed search part 1.pptx
Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...
Certinity Factor and Dempster-shafer theory .pptx
Artificial Intelligence -- Search Algorithms
Problem Solving
Heuristic Search Techniques {Artificial Intelligence}
Problem reduction AND OR GRAPH & AO* algorithm.ppt
Solving problems by searching
I.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE II. HEURISTIC FUNCTION IN AI III...
Ad

Viewers also liked (11)

PDF
08 uninformed search
PPTX
Lecture 08 uninformed search techniques
PPT
M4 Heuristics
PPT
Solving problems by searching Informed (heuristics) Search
PPT
4 informed-search
PPTX
Control Strategies in AI
PPT
Heuristic Search
DOC
Chapter 2 (final)
PPTX
AI: AI & Searching
PPT
Chapter3 Search
PPT
Uniformed tree searching
08 uninformed search
Lecture 08 uninformed search techniques
M4 Heuristics
Solving problems by searching Informed (heuristics) Search
4 informed-search
Control Strategies in AI
Heuristic Search
Chapter 2 (final)
AI: AI & Searching
Chapter3 Search
Uniformed tree searching
Ad

Similar to Uninformed Search technique (20)

PPTX
Uninformed Search Strategies techni.pptx
PPTX
4.Module_2_Chaptjvyfgcgfxfdxhgfxchtfer_3.pptx
PPTX
Artificial intelligence(05)
PPTX
NEW-II.pptx
PDF
Presentation on the artificial intelligenc
PDF
Week 7.pdf
PDF
PPTX
2.uninformed search
PPTX
uninformed search part 2.pptx
PPTX
UNIT II ARTIFICIQL INTELLIGENCE SEARCH STRATEGIES OSMANIA UNIVERSITY
PPTX
AI-05 Search Algorithms.pptx
PPT
Uninformed Search basics - Artificial Intelligence - Anna University
PPTX
NEW-II.pptx
PPT
Unit 2 Topic 2 Uniformed search strategies.ppt
PPTX
Lecture 3 Problem Solving, DFS, BFS, IDF.pptx
PPTX
Lecture 10 Uninformed Search Techniques conti..
PPTX
BFS,DFS,Depth bound,Beam search,Iterative.pptx
PPTX
AI Unit-2 (Chapter-3-4) Solving Problems by Searching.pptx
PPTX
Aritificial Intelligence Search Techniques Unit 1
PPT
AI-search-metodsandeverythingelsenot.ppt
Uninformed Search Strategies techni.pptx
4.Module_2_Chaptjvyfgcgfxfdxhgfxchtfer_3.pptx
Artificial intelligence(05)
NEW-II.pptx
Presentation on the artificial intelligenc
Week 7.pdf
2.uninformed search
uninformed search part 2.pptx
UNIT II ARTIFICIQL INTELLIGENCE SEARCH STRATEGIES OSMANIA UNIVERSITY
AI-05 Search Algorithms.pptx
Uninformed Search basics - Artificial Intelligence - Anna University
NEW-II.pptx
Unit 2 Topic 2 Uniformed search strategies.ppt
Lecture 3 Problem Solving, DFS, BFS, IDF.pptx
Lecture 10 Uninformed Search Techniques conti..
BFS,DFS,Depth bound,Beam search,Iterative.pptx
AI Unit-2 (Chapter-3-4) Solving Problems by Searching.pptx
Aritificial Intelligence Search Techniques Unit 1
AI-search-metodsandeverythingelsenot.ppt

Recently uploaded (20)

PPTX
STUDY DESIGN details- Lt Col Maksud (21).pptx
PPTX
Supervised vs unsupervised machine learning algorithms
PPTX
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
PPTX
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
PPTX
climate analysis of Dhaka ,Banglades.pptx
PDF
TRAFFIC-MANAGEMENT-AND-ACCIDENT-INVESTIGATION-WITH-DRIVING-PDF-FILE.pdf
PDF
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
PDF
Galatica Smart Energy Infrastructure Startup Pitch Deck
PPTX
IB Computer Science - Internal Assessment.pptx
PPT
ISS -ESG Data flows What is ESG and HowHow
PDF
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
PPTX
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
PPTX
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
PDF
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
PPTX
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
PDF
Lecture1 pattern recognition............
PPTX
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
PDF
Foundation of Data Science unit number two notes
PPTX
Business Acumen Training GuidePresentation.pptx
PDF
.pdf is not working space design for the following data for the following dat...
STUDY DESIGN details- Lt Col Maksud (21).pptx
Supervised vs unsupervised machine learning algorithms
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
climate analysis of Dhaka ,Banglades.pptx
TRAFFIC-MANAGEMENT-AND-ACCIDENT-INVESTIGATION-WITH-DRIVING-PDF-FILE.pdf
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
Galatica Smart Energy Infrastructure Startup Pitch Deck
IB Computer Science - Internal Assessment.pptx
ISS -ESG Data flows What is ESG and HowHow
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
Lecture1 pattern recognition............
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
Foundation of Data Science unit number two notes
Business Acumen Training GuidePresentation.pptx
.pdf is not working space design for the following data for the following dat...

Uninformed Search technique

  • 1. Uninformed Search Technique Presented By: Kapil Dahal kapil.dahal@kcc.edu.np
  • 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. •