Article ID | Journal | Published Year | Pages | File Type |
---|---|---|---|---|
10330147 | Future Generation Computer Systems | 2005 | 17 Pages |
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).
Keywords
Related Topics
Physical Sciences and Engineering
Computer Science
Computational Theory and Mathematics
Authors
K. Subramani, L. Kovalchick,