COIN-OR::LEMON - Graph Library

Changeset 2522:616c019215c4 in lemon-0.x for lemon/preflow.h


Ignore:
Timestamp:
11/27/07 16:41:43 (16 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3398
Message:

Performance bug in Preflow
The initial relabeling moved each node to the lowest level
Doc bug fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/preflow.h

    r2518 r2522  
    7373    /// \sa Elevator
    7474    /// \sa LinkedElevator
    75     typedef LinkedElevator<Graph, typename Graph::Node> Elevator;
     75    typedef Elevator<Graph, typename Graph::Node> Elevator;
    7676   
    7777    /// \brief Instantiates an Elevator.
     
    101101  /// flow algorithms. The current implementation use a mixture of the
    102102  /// \e "highest label" and the \e "bound decrease" heuristics.
    103   /// The worst case time complexity of the algorithm is \f$O(n^3)\f$.
     103  /// The worst case time complexity of the algorithm is \f$O(n^2\sqrt{e})\f$.
    104104  ///
    105105  /// The algorithm consists from two phases. After the first phase
     
    408408      reached.set(_target, true);
    409409      while (!queue.empty()) {
     410        _level->initNewLevel();
    410411        std::vector<Node> nqueue;
    411412        for (int i = 0; i < int(queue.size()); ++i) {
     
    864865
    865866    /// \name Query Functions
    866     /// The result of the %Dijkstra algorithm can be obtained using these
     867    /// The result of the %Preflow algorithm can be obtained using these
    867868    /// functions.\n
    868869    /// Before the use of these functions,
Note: See TracChangeset for help on using the changeset viewer.