AI: Uninformed Search Complexities

0.0(0)
studied byStudied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/16

flashcard set

Earn XP

Description and Tags

Last updated 4:32 AM on 6/22/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

17 Terms

1
New cards

BFS Time Complexity

O(bd) where b is the maximum branching factor and d is the depth of the least-cost solution

2
New cards

BFS Space Complexity

O(bd) as every node is stored

3
New cards

DFS Time Complexity

O(bm) where b is the maximum branching factor and m is the maximum depth

4
New cards

DFS Space Complexity

O(bm)

5
New cards

Entirely Non-Optimal searches

DFS, Depth-Limited search

6
New cards

Optimal if cost = 1 per step

BFS (not optimal in general), Iterative Deepening Search

7
New cards

Uniform-Cost Search Optimal?

Yes

8
New cards

Bi-directional search optimal?

Yes, if used with the correct strategy, eg. BFS

9
New cards

Entirely complete searches?

IDS, and Bidirectional Search

10
New cards

DFS complete?

No.

Fails in infinite-depth spaces, spaces with loops. 

Can modify to avoid repeated states along path = complete in finite space

11
New cards

Depth-limited search complete?

Not necessarily, the goal must be within depth ‘l’

12
New cards

Uniform-cost search complete?

Yes if step cost >= ∊

  • ∊ (epsilon) typically refers to the smallest positive step cost that ensures the algorithm remains optimal.

13
New cards

BFS complete?

Yes (if b is finite)

14
New cards

IDS time complexity

O(b^d), like bfs. D is the depth of the least-cost solution

15
New cards

IDS space complexity

O(bd). similar to DFS O(bm).

  • d = depth of least-cost solution

  • m = maximum depth of state space

16
New cards

Bidirectional search time and space complexity

O(bd/2)

17
New cards

Uniform-cost search time and space complexity

# of nodes with g <= cost of optimal solution