Module 1 Flashcards

1
Q

Time complexity of BFS?

A

O(b^d)

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

Is BFS optimal?

A

Yes (if cost = 1 per step); not optimal in general

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

Space complexity of BFS?

A

O(b^d)

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

What are uninformed search strategies?

A

Uninformed search strategies are algorithms that do not use domain-specific knowledge to guide the search but instead explore the search space systematically.

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

List the main types of uninformed search strategies

A

Breadth-first search
Uniform-cost search
Depth-first search
Depth-limited search
Iterative deepening search

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

What are the four evaluation criteria for search strategies?

A
  • Completeness (guarantees finding a solution if one exists).
  • Time complexity (time to find a solution).
  • Space complexity (memory usage).
  • Optimality (whether it finds the best solution).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is breadth-first search?

A

Breadth-first search expands nodes at the shallowest depth first, using a FIFO queue.

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

What are the advantages of breadth-first search?

A

It is complete and finds the least-cost solution if the cost is uniform across nodes.

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

What is a major drawback of breadth-first search?

A

It has high space complexity due to the number of nodes stored in memory.

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

DFS space complexity?

A

O(bd)

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

Why use a uniform-cost search?

A

Because we can manage trees where the cost is not uniform. If applied to BFS, it guarantees completeness.

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

What is limited DFS?

A

It’s a variant to DFS with an hyperparameter for the maximum depth. This can truncate the tree to avoid infinite branches and avoid loops.

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

Is DFS complete?

A

No, because there can be infinite branches or loops where the DFS keeps searching, since it explorates the deepest nodes first

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

Which data structure use DFS?

A

LIFO queue

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

Which data structure use BFS?

A

FIFO queue

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

What is a fringe?

A

A list of explored nodes, but not yet expanded

17
Q

DFS time complexity?

A

O(b^d)

18
Q

What is iterative deepening search?

A

It repeatedly applies depth-limited search, increasing the depth limit at each iteration

19
Q

Why is iterative deepening search preferred in large search spaces?

A

It combines the benefits of breadth-first (completeness) and depth-first search (low memory usage)

20
Q

Is iterative deepening complete?

A

Yes

21
Q

Iterative deepening spacial complexity?

A

O(bd)

22
Q

Iterative deepening time complexity?

A

O(b^d)

23
Q

Is iterative deepening optimal?

A

Yes (if cost = 1 per step)