The Gateway to Computer Science Excellence
+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)$
in Others by Veteran (105k points)
retagged by | 652 views

1 Answer

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

C is answer
by Veteran (63k points)
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,737 questions
57,279 answers
104,839 users