Uninformed search Flashcards

1
Q

Another name of uninformed search

A

Blind search algorithms

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Uninformed search

A

No additional information about states beyond that provided in the problem definition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

On what basis, search strategies distinguished

A

All search strategies are distinguished by the order in which nodes are expanded

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Types of uninformed search algo

A
  1. Breadth first search (BFS)
  2. Depth first search (DFS)
  3. Depth limited search (DLS)
  4. Iterative deepening depth-first search (DFS-ID)
  5. Uninformed cost search (UCS)
  6. Bidirectional search
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

DS used in BFS

A

Queue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

DS used in DFS

A

Stack

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

DS used in UCS

A

Priority Queue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

DFS
* DS
* Completeness
* Optimaility
* Time complexity
* Space complexity
* Action cost
* Idea
* Example

A

Depth First Search
* DS: Stack
* Completeness:
Finite search space - complete,
Infinite seach space - Incomplete
* Optimality: Not optimal
* Time complexity: O(bᴰ) [Here b:Branching factor, D is depth of the actions] or O(V+E)
* Space complexity: O(D) or O(bd)
* Action cost i.e. cost(s,a) = 0
* Idea : Backtracking search + stop when finding the goal
* Example: (Exhaustively search) game playing (15 puzzle, maze)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

BFS
* DS
* Completeness
* Optimaility
* Time complexity
* Space complexity
* Action cost
* Idea
* Example

A

Breadth First Seacrh
* DS : Queue
* Completeness:
Finite search space - complete,
Infinite seach space - Complete if solution exist
* Optimaility: Yes
* Time complexity : O(bᵈ)
* Space complexity : O(bᵈ)
* Action cost i.e. cost(s,a) =c some c>=0
* Example: Valuable for shortest path or ptimal solution. (In path finding algorithms for ex: robotics or GPS navigation)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

compare memory efficiency of BFS and DFS

A

BFS consume more memory than DFS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Compare time efficiency of BFS and DFS

A

both same
(for small d, DFS better)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

DLS
* Definition
* Variation
* Key feature
* Completeness
* Optimality
* Time Complexity
* Space Complexity

A
  • Definition: DLS (Depth Limited Search) is a variation of DFS (Depth First Search) that imposes a predefined limit on the depth of the tree.
  • Key feature : Depth limit: The algo explores nodes only upto specified depth, called cutoff limit
  • Completeness: If l>d: completeness but not optimal solution
    If l<d: not complete. (not get any solution. algo will terminate) [here d: depth of goal state]
  • Optimality : Not optimal since it does not guarantee finding the shortest path to the goal
  • Time Complexity: O(bˡ)
  • Space Complexity: O(bl)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

IDS
* Keyword
* All names and shortforms
* Definition
* Completeness
* Otimality
* Time Complexity
* Sapce Complexity
* When preffered
* When worst
* Action Cost

A
  • IDS: Iterative Deepening Search
  • DFS-ID: Depth First Search with Iterative Deepening
  • IDDFS: Iterative Deepening Depth First Search
  • Keyword: Like dog with leash, Combine the benefits of DFS and BFS
  • Definition: IDS starts with depth limit 0 and gradually increase the linit until goal is found or search is exhausted
  • Completness:
    Finite search space - complete,
    Infinite seach space - Incomplete
  • Optimality:
    For Uniform Cost per Step: If all actions have the same cost, IDS is optimal because it finds the shallowest goal node, ensuring the least number of steps to the goal.
    For Non-Uniform Costs: IDS is not optimal if the costs of actions vary, as it does not account for the cumulative path cost. In such cases, algorithms like Uniform Cost Search (UCS) are preferred for optimality.
  • Time Complexity: O(bᵈ) same as BFS
  • Space Complexity: O(d) (saved)
  • IDS is preferred for large search spaces when the depth of solution is unknown
  • When worst : If we found a solution at end then DFS-ID is worst than DFS and BFS.
  • Action cost i.e. cost(s,a) = for some c>=0
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

UCS
* Another name
* DS
* Definition (Advantage)
* Evaluation Function
* Completeness
* Optimality
* Action cost
* Remeber in appraoch
* Disadvantage
* Time Complexity
* Space Complexity
* Use

A

UCS (Uniform Cost Search)
* Another name: Branch and Bound
* DS: Priority Queue
* Definition: UCS is a graph search algorithm that finds the least cost path from starting s to a goal state.
* Evaluation Function: f(n) = g(n), ignoring h(n) [Here g(n): cumulative cost (path cost)]
Cumulative cost: Cumulative cost means total cost incurred to to travel from the start node to current node along a specific path.
* Completeness and Optimality: UCS is optimal and complete, making it a fundamental algorithm for path finding and AI problems.
* Action Cost: Assumption all action costs are non-negative (There is exception which causes disadvantage)
* Unexplored list should be empty in the last
* Diadvantage: If graph has zero-cost actions, it will stuck in infinite loop.
* Use for both acyclic and cyclic graphs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Exlplored, Frontier, Unexplored

A

Explored: Visted and processed, Closed List
Frontier: Discovered not fully explored or expanded (waiting to be expanded in future), Open List
Unexplored:Not discovered yet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q
A