Let G = (V, E) be a directed graph with weight function w : E R,

Question:

Let G = (V, E) be a directed graph with weight function w : E ⇾ R, and let n = |V|. We define the mean weight of a cycle c = 〈e1, e2, . . . , ek〉 of edges in E to be

image

Let μ* = minc μ(c), where c ranges over all directed cycles in G. We call a cycle c for which μ (c) = μ* a minimum mean-weight cycle. This problem investigates an efficient algorithm for computing μ*.

Assume without loss of generality that every vertex v ∈ V is reachable from a source vertex s ∈ V. Let δ (s, v) be the weight of a shortest path from s to v, and letδ(s, v) be the weight of a shortest path from s to v consisting of exactly k edges. If there is no path from s to v with exactly k edges, then δ(s, v) = ∞.

a. Show that if μ* = 0, then G contains no negative-weight cycles and δ (s, v) = min0 ≤ k  n - 1 δ (s, v) for all vertices v ∈ V.

b. Show that if μ*= 0, then

image

for all vertices v ∈ V.

c. Let c be a 0-weight cycle, and let u and v be any two vertices on c. Suppose that μ* = 0 and that the weight of the simple path from u to v along the cycle is x. Prove that δ (s, ?) = δ (s, u) + x. The weight of the simple path from u to v along the cycle is −x.

d. Show that if μ* = 0, then on each minimum mean-weight cycle there exists a vertex v such that

image

Show how to extend a shortest path to any vertex on a minimum mean weight cycle along the cycle to make a shortest path to the next vertex on the cycle.

e. Show that if μ* = 0, then

image

f. Show that if we add a constant t to the weight of each edge of G, then μ* increases by t. Use this fact to show that

image

g. Give an O(VE)-time algorithm to compute μ*.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  answer-question

Introduction to Algorithms

ISBN: 978-0262033848

3rd edition

Authors: Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest

Question Posted: