reopened by
4,443 views
5 votes
5 votes

Which of the following algorithms solves the all pair shortest path problem?

  1. Prim's algorithm
  2. Dijkstra's algorithm
  3. Bellman ford algorithm
  4. Floyd warshalls algorithm
reopened by

3 Answers

Best answer
8 votes
8 votes
Option D will be correct...

Floyd warshalls algorithm is based on dynamic paradigm approach which is used to solve All pair shortest path problem..
selected by
5 votes
5 votes
  1. Prim's algorithm-------> spanning Tree
  2. Dijkstra's algorithm------> single source shortest path
  3. Bellman ford algorithm-------> single source shortest path
  4. Floyd warshalls algorithm----->all pair shortest path

so ans: D

Answer:

Related questions

10 votes
10 votes
8 answers
1
Arjun asked May 9, 2017
13,228 views
Which of the following data structure is useful in traversing a given graph by breadth first search?StackQueueListNone of the above
14 votes
14 votes
3 answers
2
sh!va asked May 7, 2017
4,269 views
The time complexity of computing the transitive closure of a binary relation on a set of $n$ elements is known to bea. $O(n\log n)$b. $O\left( n^{3/2}\right)$c. $O( n^3 )...
9 votes
9 votes
5 answers
3
sh!va asked May 7, 2017
8,030 views
The number of swappings needed to sort the numbers $8 , 22, 7, 9, 31, 5, 13$ in ascending order using bubble sort is$11$$12$$13$$10$
10 votes
10 votes
5 answers
4
sh!va asked May 7, 2017
4,928 views
Which one of the following in-place sorting algorithms needs the minimum number of swaps?Insertion SortQuick SortHeap SortSelection Sort