SSSP - BFS Flashcards
1
Q
Time complexity
A
V+E
2
Q
video
A
https://www.youtube.com/watch?v=7GnSrrJP7wc
3
Q
will work with all same weight. Either 1 or same constant for all edges
A
yes
4
Q
Process
A
Initialize with all nodes with INIFINITY. And keep adding weights as we go on in BFS. Take the node’s weight and keep adding