logo

Crowdly

Browser

Додати до Chrome

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

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

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?

0%
100%
0%
0%
Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на moodle.spit.ac.in?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!

Browser

Додати до Chrome