adplus-dvertising
frame-decoration

Question

Time Complexity of Breadth First Search is? (V – number of vertices, E – number of edges)

a.

O(V + E)

b.

O(V)

c.

O(E)

d.

None of the mentioned

Answer: (a).O(V + E)

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Time Complexity of Breadth First Search is? (V – number of vertices, E – number of edges)