What is the time complexity of performing a DFS or BFS traversal on a graph with V vertices and E edges?
O(E)
O(V + E)
O(V)
O(V^2)

Advanced Data Structures Übungen werden geladen ...