logo

Crowdly

Let G=(V,E) be a directed graph with weighted edges (weights can be negative, b...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Let G=(V,E) be a directed graph

with weighted edges (weights can be negative, but no negative-weight cycles).

You are given an algorithm that computes the shortest path distances between

all

pairs of vertices

by progressively considering each vertex as an

intermediate point.

At each step k, the algorithm

updates the distance matrix D

(k) using the formula:

D(k)[i][j]=min(D(k−1)[i][j],D(k−1)[i][k]+D(k−1)[k][j])

Assuming D(0)

[i][j] is

initialized as:

1.0 if i=j

2.weight of edge (i,j) if it

exists

3. ∞ otherwise

Which of the following is TRUE?

100%
0%
0%
0%
More questions like this

Want instant access to all verified answers on moodle.spit.ac.in?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!