Experiences with the Design and Implementation of Space-Efficient Deques

  • Authors:
  • Jyrki Katajainen;Bjarke Buur Mortensen

  • Affiliations:
  • -;-

  • Venue:
  • WAE '01 Proceedings of the 5th International Workshop on Algorithm Engineering
  • Year:
  • 2001

Quantified Score

Hi-index 0.00

Visualization

Abstract

A new realization of a space-efficient deque is presented. The data structure is constructed from three singly resizable arrays, each of which is a blockwise-allocated pile (a heap without the order property). The data structure is easily explainable provided that one knows the classical heap concept. All core deque operations are performed in O(1) worst-case time. Also, general modifying operations are provided which run in O(√n) time if the structure contains n elements. Experiences with an implementation of the data structure show that, compared to an existing library implementation, the constants for some of the operations are unfavourably high, whereas others show improved running times.