UNINFORMED SEARCHING IN AI Flashcards

1
Q

What’s the time complexity of BFS & DFS

A

It’s b^d, where

b –> Branching factor: Max number of children that a node has.

d –> Depth of the node.

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

What’s the space Complexity of BFS & DFS

A

BFS –> b^(d+1)
DFS –> b*d

b –> Branching factor: Max number of children that a node has.

d –> Depth of the node.

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

Explain Depth Limit Search(DLS)

A

This is similar to DFS, it introduces a predetermined limit for the depth. This is done to overcome the disadvantage of DFS, which is blind alley.
DLS is not complete because solution may lie beyond the cut-off depth.
It takes O(b^l) time and O(bl) space, where l is the depth limit.

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

Explain DFS Iterative Deepening

A

DFS-ID calls DFS for different depths starting from an initial value. In every call, DFS is restricted from going beyond given depth.
DFS-ID is complete and gives optimal result.

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

What’s the time and space complexity of Uniform Cost Search(UCS)

A

Time complexity –> (b^c)/m
Space complexity –> b^(d+1), where

b –> Branching factor.
c –> Cost of optimal path.
d –> Depth of the node.
m –> minimum edge length.

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