5 research outputs found

    An O(Nm) Time Algorithm for Finding the Min Length Directed Cycle in a Graph

    No full text
    In this paper, we introduce an O(nm) time algorithm to determine the minimum length directed cycle (also called the "minimum weight directed cycle") in a directed network with n nodes and m arcs and with no negative length directed cycles. This result improves upon the previous best time bound of O(nm + n虏 og log n). Our algorithm first determines the cycle with minimum mean length 位* in O(nm) time. Subsequently, it chooses node potentials so that all reduced costs are 位* or greater. It then solves the all pairs shortest path problem, but restricts attention to paths of length at most n位*. We speed up the shortest path calculations to O(m) per source node, leading to an O(nm) running time in total. We also carry out computational experiments comparing the performance of the proposed methods and other state-of-the-art methods. Experiments confirmed that it is advantageous to solve the minimum mean cycle problem prior to solving shortest path problems. Analysis of our experiments suggest that the running time to solve the minimum length directed cycle problem was much faster than O(n虏 on average.United States. Office of Naval Research (Grant N000141410073

    35th Symposium on Theoretical Aspects of Computer Science: STACS 2018, February 28-March 3, 2018, Caen, France

    Get PDF
    corecore