User:Ringwith/Kinetic Tournament
{{Userspace draft|source=ArticleWizard|date=May 2012}}
A Kinetic Tournament is a kinetic data structure, obtained by the kinetization of a heap. It maintains a set of (continuously) moving points as a tree that satisfies the following heap property - if is a child node of , then - at all times , where refers to the value stored in node at time . A kinetic heap data structure is a type of kinetic priority queue and is typically used to maintain the upper envelope of a collection of functions in a plane (i.e. the largest value in the heap at any given time).
Implementation and operations
A regular heap can be kinetized by augmenting with a certificate 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 .
= Dealing with certificate failures =
When a certificate fails, the data structure must swap and , and update the other certificates that each of them was present in.
For example, if (call its child nodes ) was a child node of (call its child nodes and its parent node ), and the certificate
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 re-scheduled even in the worst case.
= Operations =
A kinetic heap supports the following operations:
create-heap(h) - create an empty kinetic heaph find-max(h, t) (orfind-min ) - return themax (ormin for amin-heap ) value stored in the heaph at the current virtual timet insert(X,f_X,t) - insert a keyX into the kinetic heap at the current virtual timet , whose value changes as a continuous functionf_X(t) of timet delete(X,t) - delete a keyX at the current virtual timet
Variants
This article deals primarily with "simple" kinetic heaps as described above, but other variants have been developed for specialized applications, such as:
Other kinetic priority queues which require linear space and achieve similar performance bounds are:
Performance
Kinetic heaps perform well according to the four metrics (responsiveness, locality, efficiency and compactness) of kinetic data structure quality defined in Basch etc.
= Responsiveness =
A kinetic heap is responsive, since each certificate failure causes the concerned keys to be swapped and leads to only five certificates being replaced in the worst case.
= Locality =
Each node is present in one certificate each along with its parent node and two child nodes (if present), meaning that each node can be involved in a total of three scheduled events in the worst case, thus kinetic heaps are local.
= Compactness =
Each edge in the heap corresponds to exactly one scheduled event, therefore the number of scheduled events is exactly
= Efficiency =
The efficiency of a kinetic heap in the general case is largely unknown. However, in the special case of affine motion (
== 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
== Affine motion, with insertions and deletions ==
If
Applications
Kinetic heaps have been used as part of many algorithms such as dynamic planar convex hull, clustering moving points and continuous nearest neighbor queries, as well as for applications such as broadcast scheduling.
References
{{Reflist}}
http://graphics.stanford.edu/projects/lgl/papers/g-KDS_DS-Handbook-04/g-KDS_DS-Handbook-04.pdf
http://www.uniriotec.br/~fonseca/kh.pdf
http://www.uniriotec.br/~fonseca/hanger.pdf
http://dl.acm.org/citation.cfm?id=314435
http://dl.acm.org/citation.cfm?id=263089
http://citeseer.ist.psu.edu/viewdoc/download?doi=10.1.1.41.2301&rep=rep1&type=pdf