Sketch the pseudo code for Breadth First Search for any graph G and Level Order Traversal for a tree T. Show that both traversals are in O(Vs + Es) time, where
S in (G, T) , VS represents the set of vertices in S, and ES represents the set of edges in S. Can we approximate this time complexity to be O(Ve) for both the cases?
Comment in detail