Policy-based benchmarking of weak heaps and their relatives,

  • Authors:
  • Asger Bruun;Stefan Edelkamp;Jyrki Katajainen;Jens Rasmussen

  • Affiliations:
  • Department of Computer Science, University of Copenhagen, Copenhagen East, Denmark;TZI, Universität Bremen, Bremen, Germany;Department of Computer Science, University of Copenhagen, Copenhagen East, Denmark;Department of Computer Science, University of Copenhagen, Copenhagen East, Denmark

  • Venue:
  • SEA'10 Proceedings of the 9th international conference on Experimental Algorithms
  • Year:
  • 2010

Quantified Score

Hi-index 0.00

Visualization

Abstract

In this paper we describe an experimental study where we evaluated the practical efficiency of three worst-case efficient priority queues: 1) a weak heap that is a binary tree fulfilling half-heap ordering, 2) a weak queue that is a forest of perfect weak heaps, and 3) a run-relaxed weak queue that extends a weak queue by allowing some nodes to violate half-heap ordering. All these structures support Delete and Delete-min in logarithmic worst-case time. A weak heap supports Insert and Decrease in logarithmic worst-case time, whereas a weak queue reduces the worst-case running time of Insert to O(1), and a run-relaxed weak queue that of both Insert and Decrease to O(1). As competitors to these structures, we considered a binary heap, a Fibonacci heap, and a pairing heap. Generic programming techniques were heavily used in the code development. For benchmarking purposes we developed several component frameworks that could be instantiated with different policies.