Uninformed Search(Week 3) Flashcards

1
Q

Uninformed Search Algorithm?

A

-Blind Search: It doesnot have any additional information about state or search space. It only knows how to traverse through
- No cost consideration
- It might take up more time

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

types of uninformed search algorithms?

A
  • Breadth first Search
  • Depth first Search
  • Uniform Cost Search
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What properties of search algorithm are considered?

A
  • Optimal: Provides least cost path
  • Complete: if it provides any solution path
  • Time Complexity: Maximum amount of time needed to traverse through.
  • Space Complexity: Least amount of space needed to traverse
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Depth first search properties

A
  • Expands the deepest node first
  • Starts from leftmost deepest node
  • Time taken: O(b^m) where m is maximum depth and is finite
  • Space taken: O(bm)
  • Can give complete solution
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Is DFS complete or optimal? How?

A

Its complete if m (i.e. maximum depth) is finite.
It may not be optimal because it always finds the left-most solution,regardless of depth or cost.

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

What are Breadth first search properties?

A
  • Expands the shallowest node first
  • Explores all nodes above shallowest node
  • Time taken is O(b^s) where s is depth of shallowest solution
  • Space is also O(b^s)
  • Can be complete or optimal
  • It finds the shortest path in terms of number of actions, it might jot always be the least-cost path
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Is BFS complete or optimal?

A

It can be both. Its complete because s (i.e. number of solutions) is finite and its optimal if costs are all 1.

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

Difference between DFS & BFS

A

DFS
- Expands deepest node first
- Better in space complexity (b*m)
- For deepest goal
BFS
- Expands tier by tier
- Exponential space complexity (b^m)
- For shallowest goal.

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

What is Space Complexity & Time Complexity?

A

Space Complexity: Least amount of space needed by search algorithm to traverse through

Time Complexity: Maximum amount of time needed to traverse

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

What fringe strategies/ Priority Queues are used for each search algorithm ?

A

Priority queue is dependent on environment and what is required more
For DFS: LIFO i.e. Last In First Out
For BFS: FIFO i.e. First In First Out (Shallowest)
For UCS: Cost

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

What are Uniform Cost Search properties?

A
  • Expands cheapest node first
  • Space & time complexity stays the same because solution depends on cost
  • It provides both optimal and complete solution
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Issues of UCS?

A
  • Explores options in every direction
  • No information about goal location
  • Time complexity is higher
How well did you know this?
1
Not at all
2
3
4
5
Perfectly