|
@ -14,7 +14,7 @@ namespace storm { |
|
|
|
|
|
|
|
|
template<typename ValueType> |
|
|
template<typename ValueType> |
|
|
void BucketPriorityQueue<ValueType>::fix() { |
|
|
void BucketPriorityQueue<ValueType>::fix() { |
|
|
if (currentBucket < buckets.size() && nrUnsortedItems > 0) { |
|
|
|
|
|
|
|
|
if (currentBucket < buckets.size() && nrUnsortedItems > buckets[currentBucket].size() / 10) { |
|
|
// Fix current bucket
|
|
|
// Fix current bucket
|
|
|
std::make_heap(buckets[currentBucket].begin(), buckets[currentBucket].end(), compare); |
|
|
std::make_heap(buckets[currentBucket].begin(), buckets[currentBucket].end(), compare); |
|
|
nrUnsortedItems = 0; |
|
|
nrUnsortedItems = 0; |
|
|