Contraction versus Relaxation: A Comparison of Two Approaches for the Negative Cost Cycle Detection Problem

In this paper, we develop a greedy algorithm for the negative cost cycle detection problem and empirically contrast its performance with the "standard" Bellman-Ford (BF) algorithm for the same problem. Our experiments indicate that the greedy approach is superior to the dynamic programming approach of BF, on a wide variety of inputs.