recategorized
1,994 views
3 votes
3 votes

Floyd-Warshall algorithm utilizes _____ to solve the all-pairs shortest paths problem on a directed graph in ____ time

  1. Greedy algorithm, $\theta(V^3)$
  2. Greedy algorithm, $\theta(V^2 lgn)$
  3. Dynamic programming, $\theta(V^3)$
  4. Dynamic programming, $\theta(V^2 lgn)$
recategorized

1 Answer

3 votes
3 votes
Floyd-Warshall algorithm dynamic approch takes Θ(n^3) time.

C is answer
Answer:

Related questions

2 votes
2 votes
2 answers
2
2 votes
2 votes
1 answer
3
go_editor asked Aug 9, 2016
4,327 views
If there are n integers to sort, each integer had d digits and each digit is in the set $\{1, 2, \dots, k\}$, radix sort can sort the numbers in$O(d \: n \: k)$$O(d n^k)$...