Kinetic heap explained

A Kinetic Heap is a kinetic data structure, obtained by the kinetization of a heap. It is designed to store elements (keys associated with priorities) where the priority is changing as a continuous function of time. As a type of kinetic priority queue, it maintains the maximum priority element stored in it. The kinetic heap data structure works by storing the elements as a tree that satisfies the following heap property if is a child node of, then the priority of the element in must be higher than the priority of the element in . This heap property is enforced using certificates along every edge so, like other kinetic data structures, a kinetic heap also contains a priority queue (the event queue) to maintain certificate failure times.

Implementation and operations

A regular heap can be kinetized by augmenting with a certificate [{{math|<var>A</var>><var>B</var>}}] for every pair of nodes, such that is a child node of . If the value stored at a node is a function of time, then this certificate is only valid while . Thus, the failure of this certificate must be scheduled in the event queue at a time such that .

All certificate failures are scheduled on the "event queue", which is assumed to be an efficient priority queue whose operations take time.

Dealing with certificate failures

When a certificate [{{math|<var>A</var>><var>B</var>}}] fails, the data structure must swap and in the heap, and update the certificates that each of them was present in.

For example, if (with child nodes and) was a child node of (with child nodes and and parent node), and the certificate [{{math|<var>A</var>><var>B</var>}}] fails, then the data structure must swap and, then replace the old certificates (and the corresponding scheduled events) [{{math|<var>A</var>><var>B</var>}}], [{{math|<var>A</var><<var>X</var>}}], [{{math|<var>A</var>><var>C</var>}}], [{{math|<var>B</var>><var>Y</var>}}], [{{math|<var>B</var>><var>Z</var>}}] with new certificates [{{math|<var>B</var>><var>A</var>}}], [{{math|<var>B</var><<var>X</var>}}], [{{math|<var>B</var>><var>C</var>}}], [{{math|<var>A</var>><var>Y</var>}}] and [{{math|<var>A</var>><var>Z</var>}}].

Thus, assuming non-degeneracy of the events (no two events happen at the same time), only a constant number of events need to be de-scheduled and rescheduled even in the worst case.

Operations

A kinetic heap supports the following operations:

Performance

Kinetic heaps perform well according to the four metrics (responsiveness, locality, compactness and efficiency) of kinetic data structure quality defined by Basch et al. The analysis of the first three qualities is straightforward:

Analysis of efficiency

The efficiency of a kinetic heap in the general case is largely unknown. However, in the special case of affine motion of the priorities, kinetic heaps are known to be very efficient.

Affine motion, no insertions or deletions

In this special case, the maximum number of events processed by a kinetic heap can be shown to be exactly the number of edges in the transitive closure of the tree structure of the heap, which is for a tree of height .

Affine motion, with insertions and deletions

If insertions and deletions are made on a kinetic heap that starts empty, the maximum number of events processed is

O(n\sqrt{nlogn}).

However, this bound is not believed to be tight, and the only known lower bound is

\Omega(nlogn)

.

Variants

This article deals with "simple" kinetic heaps as described above, but other variants have been developed for specialized applications, such as:

Other heap-like kinetic priority queues are:

References

Web site: Kinetic Data Structures - Handbook. https://wayback.archive-it.org/all/20070418010021/http://graphics.stanford.edu/projects/lgl/papers/g-KDS_DS-Handbook-04/g-KDS_DS-Handbook-04.pdf. dead. 2007-04-18. May 17, 2012. Guibas, Leonidas.