Question: Let G = (V,E) be a directed graph where each edge e = (u,v) has weight wt(u,v) > 0 or wt(u,v) < 0 (i.e. no
Let G = (V,E) be a directed graph where each edge e = (u,v) has weight wt(u,v) > 0 or wt(u,v) < 0 (i.e. no edge has a weight of zero). The ZERO CYCLE problem asks whether G has a directed cycle such that the sum of the weights of the edges in the cycle is zero.
(a) Prove that this problem is in NP. (b) Prove that this problem is NP-hard.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
