Back to the 2023 paper

Module 4: Graph and Tree Algorithms

20232m

BFS on a graph G=(V,E)G=(V,E) has running time:

  • (i) O(V+E)O(|V|+|E|)
  • (ii) O(V)O(|V|)
  • (iii) O(E)O(|E|)
  • (iv) None of the above

Similar questions