What is the time complexity of performing a depth-first search (DFS) on a graph with V vertices and E edges?
O(V^2)
O(E)
O(V + E)
O(E^2)

Data Structures and Algorithms Übungen werden geladen ...