Q70
MCQ2 marks, −0.5Let be a directed graph with vertices. A path from to in is a sequence of vertices () such that for all in through . A simple path is a path in which no vertex appears more than once. Let be an array initialized as follows:
Consider the following algorithm: for i=1 to n for j=1 to n for k=1 to n A[j,k] = max(A[j,k], A[j,i] + A[i,k]); Which of the following statements is necessarily true for all and after termination of the above algorithm?
Sign in to save attempts.
Loading…