A greedy strategy for detecting negative cost cycles in networks

  • Authors:
  • K. Subramani;L. Kovalchick

  • Affiliations:
  • LDCSEE, West Virginia University, Morgantown, WV;LDCSEE, West Virginia University, Morgantown, WV

  • Venue:
  • Future Generation Computer Systems - Special issue: High-speed networks and services for data-intensive grids: The DataTAG project
  • Year:
  • 2005

Quantified Score

Hi-index 0.00

Visualization

Abstract

In this paper, we develop a greedy strategy for the problem of checking whether a network (directed graph) with positive and negative costs on its edges has a negative cost cycle. We call our approach the Vertex Contraction algorithm; it is the first known greedy strategy for this problem. As per the literature, all known approaches to the problem of detecting negative cost cycles are based on dynamic programming or scaling. It is well known that the negative cost cycle detection problem is equivalent to the problem of checking whether a system of linear difference constraints is feasible. Our algorithm exploits this equivalence and uses polyhedral projection on the polyhedron of linear difference constraints, corresponding to the input network, to detect the presence of negative cost cycles. We use a variant of the Fourier-Motzkin elimination procedure to effect polyhedral projection and contrast the performance of our algorithm with the "standard" Bellman-Ford algorithm for the same problem. We observed that the Vertex Contraction algorithm performed an order of magnitude better than the Bellman-Ford algorithm on a range of randomly generated inputs, thereby conclusively demonstrating the superiority of our approach. From the perspective of asymptotic analysis, the Bellman-Ford algorithm is superior to our algorithm, in that it runs in time O(mċn) in the worst case, on a network with m edges and n vertices, whereas the worst-case complexity of our algorithm is O(n3).