1.

What procedure is being followed in Floyd Warshall Algorithm?(a) Top down(b) Bottom up(c) Big bang(d) SandwichI had been asked this question in a job interview.This interesting question is from Shortest Path in section Shortest Path of Data Structures & Algorithms II

Answer»

Right answer is (B) Bottom up

Best explanation: Bottom up procedure is being used to compute the values of the matrix elements dij(k). The INPUT is an N X n matrix. The procedure returns the matrix D(n) of the SHORTEST path weights.



Discussion

No Comment Found

Related InterviewSolutions