5 Uninformed Search
5 Uninformed Search
Lecture 5:
Uniformed Search
Tauseef Iftikhar
Recap
Uninformed Search
Recap
I Goal-base agents
I Problem Solving
I Goal formulation
I Problem formulation
I Problem formulation
I Initial state
I Actions
I Transition model
I Goal test
I Path cost
I State space vs Search space
I Search space regions
I Explored
I Frontier
I Unexplored
Recap
I Tree Search
I Graph Search
I Search Strategies Evaluation criteria
I Completeness
I Time Complexity
I Space Complexity
I Optimality
Time and space complexity are measured in terms of
I b: maximum branching factor of the search tree (actions per
state)
I d: depth of the solution
I m: maximum depth of the state space (may be ∞)
Two kind of search: uninformed and informed
Uninformed Search
All the nodes are expanded at a given depth in the search tree
before any nodes at the next level are expanded.
Breadth-first search
Breadth-first search
Breadth-first search
Breadth-first search
Evaluation of BFS
I Completeness:
Evaluation of BFS
I Completeness: Yes; if b is finite
Evaluation of BFS
I Completeness: Yes; if b is finite
I Time Complexity:
Evaluation of BFS
I Completeness: Yes; if b is finite
I Time Complexity: 1 + b + b 2 + b 3 + ... + b d = O(b d )
Evaluation of BFS
I Completeness: Yes; if b is finite
I Time Complexity: 1 + b + b 2 + b 3 + ... + b d = O(b d )
I Space Complexity:
Evaluation of BFS
I Completeness: Yes; if b is finite
I Time Complexity: 1 + b + b 2 + b 3 + ... + b d = O(b d )
I Space Complexity: O(b d )
Evaluation of BFS
I Completeness: Yes; if b is finite
I Time Complexity: 1 + b + b 2 + b 3 + ... + b d = O(b d )
I Space Complexity: O(b d )
I Optimality:
Evaluation of BFS
I Completeness: Yes; if b is finite
I Time Complexity: 1 + b + b 2 + b 3 + ... + b d = O(b d )
I Space Complexity: O(b d )
I Optimality:Yes; if the path cost is a nondecreasing function
of the depth of the node.
Evaluation of BFS
I Completeness: Yes; if b is finite
I Time Complexity: 1 + b + b 2 + b 3 + ... + b d = O(b d )
I Space Complexity: O(b d )
I Optimality:Yes; if the path cost is a nondecreasing function
of the depth of the node.
How bad is BFS?
Evaluation of BFS
I Completeness: Yes; if b is finite
I Time Complexity: 1 + b + b 2 + b 3 + ... + b d = O(b d )
I Space Complexity: O(b d )
I Optimality:Yes; if the path cost is a nondecreasing function
of the depth of the node.
How bad is BFS?
I Completeness:
UCS Evaluation
What is the order of the visit of the nodes and the path returned
by BFS, DFS and UCS