COIN-OR::LEMON - Graph Library

Changeset 2038:33db14058543 in lemon-0.x


Ignore:
Timestamp:
04/04/06 19:45:35 (18 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2677
Message:

LinearHeap? is renamed to BucketHeap? which is more conform
and widely used name for this data structure

Files:
1 added
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • demo/coloring.cc

    r1959 r2038  
    3131
    3232#include <lemon/smart_graph.h>
    33 #include <lemon/linear_heap.h>
     33#include <lemon/bucket_heap.h>
    3434#include <lemon/graph_reader.h>
    3535#include <lemon/graph_to_eps.h>
     
    6464 
    6565  Graph::NodeMap<int> heapMap(graph, -1);
    66   LinearHeap<Node, Graph::NodeMap<int> > heap(heapMap);
     66  BucketHeap<Node, Graph::NodeMap<int> > heap(heapMap);
    6767 
    6868  for (NodeIt it(graph); it != INVALID; ++it) {
  • lemon/Makefile.am

    r2035 r2038  
    5454        johnson.h \
    5555        kruskal.h \
    56         linear_heap.h \
     56        bucket_heap.h \
    5757        list_graph.h \
    5858        lp.h \
  • lemon/min_cut.h

    r2037 r2038  
    2525#include <lemon/list_graph.h>
    2626#include <lemon/bin_heap.h>
    27 #include <lemon/linear_heap.h>
     27#include <lemon/bucket_heap.h>
    2828
    2929#include <lemon/bits/invalid.h>
     
    4949      template <typename Key, typename Value, typename Ref>
    5050      struct Selector {
    51         typedef LinearHeap<Key, Ref, false > Heap;
     51        typedef BucketHeap<Key, Ref, false > Heap;
    5252      };
    5353    };
     
    9595    /// the \ref BinHeap, but it is specialized when the
    9696    /// CapacityMap is ConstMap<Graph::Node, Const<int, 1> >
    97     /// to LinearHeap.
     97    /// to BucketHeap.
    9898    ///
    9999    /// \sa MaxCardinalitySearch
     
    842842  /// The complexity of the algorithm is O(n*e*log(n)) but with Fibonacci
    843843  /// heap it can be decreased to O(n*e+n^2*log(n)). When the neutral capacity
    844   /// map is used then it uses LinearHeap which results O(n*e) time complexity.
     844  /// map is used then it uses BucketHeap which results O(n*e) time complexity.
    845845#ifdef DOXYGEN
    846846  template <typename _Graph, typename _CapacityMap, typename _Traits>
  • lemon/topology.h

    r1979 r2038  
    3131
    3232#include <lemon/bin_heap.h>
    33 #include <lemon/linear_heap.h>
     33#include <lemon/bucket_heap.h>
    3434
    3535#include <stack>
  • test/heap_test.cc

    r1956 r2038  
    3232#include <lemon/fib_heap.h>
    3333#include <lemon/radix_heap.h>
    34 #include <lemon/linear_heap.h>
     34#include <lemon/bucket_heap.h>
    3535
    3636#include "test_tools.h"
     
    121121
    122122  {
    123     std::cerr << "Checking Linear Heap" << std::endl;
     123    std::cerr << "Checking Bucket Heap" << std::endl;
    124124
    125     typedef LinearHeap<Item, ItemIntMap> IntHeap;
     125    typedef BucketHeap<Item, ItemIntMap> IntHeap;
    126126    checkConcept<Heap<Item, Prio, ItemIntMap>, IntHeap>();
    127127    heapSortTest<IntHeap>(100);
    128128    heapIncreaseTest<IntHeap>(100);
    129129
    130     typedef LinearHeap<Node, Graph::NodeMap<int> > NodeHeap;
     130    typedef BucketHeap<Node, Graph::NodeMap<int> > NodeHeap;
    131131    checkConcept<Heap<Node, Prio, Graph::NodeMap<int> >, NodeHeap>();
    132132    Timer timer;
Note: See TracChangeset for help on using the changeset viewer.