What is the worst-case time complecity of BFS algorithm running
on a graph with N vertices and M edges?
Group of answer choices
O(M2N)
O(M)*O(N)
Not shown in the answer list
O(MN2)
Question 20 5 pts What is the worst-case time complecity of DFS algorithm running on a graph with N vertices and M edges? O O(MLogN) O O(M)+O(N) O O(M)*O(N) O Not shown in the answer list O O(NLogM) < Previous
What is the worst-case time complecity of BFS algorithm running on a graph with N vertices and M edges? Group of answer
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am