a) O(V+E)
b) O(V)
c) O(E)
d) O(V*E)
What is the space complexity of standard DFS(V: no. of vertices E: no. of edges)?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What is the space complexity of standard DFS(V: no. of vertices E: no. of edges)?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!