4.3 Breadth first search Flashcards

1
Q

What is breadth first search used for

A

Finding the shortest path in an unweighted graph

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

What is the distance between 2 vertices in an unweighted graph

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

What is the idea behind BFS

A

Have different flow levels. Flow like water exploring each level first.

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

What is the Psuedo-code for BFS

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

What is the time complexity for BFS

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

What are the 3 properties of a BFS tree

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