Diamond deque: A simple data structure for priority deques

From MaRDI portal





A simple pointer-free data structure is proposed to implement priority deques. The two heaps (a min-heap and a max-heap) of a twin-heap are stored in one linear array. The simple parent-child relationship of a traditional heap is retained. The min-heap and the max-heap will jointly grow and shrink at one end of the linear array. The proposed data structure is named a diamond deque because of the diamond shape of its Hasse diagram. Priority deque operations on a diamond deque are as efficient as on a twin-heap, a min-max heap, or a deap. Because a diamong deque is highly symmetrical, its interface relations between min-heap and max-heap are simpler. This makes it easier to implement in practice.





Describes a project that uses

Uses Software






This page was built for publication: Diamond deque: A simple data structure for priority deques

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q685528)