02_Search
02_Search
Lecture 02 - Search
• NP-Hard (TSP)
• 2D/3D navigation
Searching – Finding a solution (Tree-Search)
Searching – Expanding Trees
Searching – Expand but ignore loops
Searching – Expanding Trees
Searching – Expanding Trees
A A B A B
C
Uninformed Search – Breadth First Search (BFS)
Breadth First Search
• Iterative Deepening DFS: Gradually increases the search depth, combining the
thoroughness of DFS with BFS's optimality.
• Bidirectional Search: Runs two simultaneous searches (one from the start and
one from the goal) until they meet. This reduces the effective depth to half, with
time complexity 𝑶(𝒃𝒅/𝟐 )
Informed Search
• Combines both cost to reach the node 𝑔(𝑛) and the cost to get from the
node to the goal ℎ 𝑛
𝑓 𝑛 =𝑔 𝑛 +ℎ 𝑛
• Algorithm is identical to uniform cost search but path cost is now f(𝑛)
A* Search – Example
Thank You