An O(nloglogn) On-line Algorithm for the Insert-Exact Min Problem
MetadataShow full item record
Boas, P. van Emde
Integers within the range 1,...,n are inserted in a set, and on several occasions the minimal element is extracted from the set. We present an algorithm to executee a sequence of O(n) of these instrucitions on-line in time O(nloglogn) on a Random Access Machine. The instruction repertoire can be extended by instructions like allmin(i) (delete all elements not greater than i), extract max, or predecessor (i) (find the largest element less than i), without disturbing the O(loglogn) processing time per item. Whereas the off-line insert-extract min problem is known to be reducible to the on-line union-find problem, we prove that the off-line insert-allmin problem is equivalent to the off-line union-find problem, hence the off-line problems have faster algorithms. As an application we show that our algorithm can be used to process a sequence of O(n) instructions of the types: "split an interval", "unite two adjacent intervals", and "find the interval currently containing element j", on-line in time O(nloglogn). Keywords: set-manipulation, Analysis of Algorithms, binary tree.
computer science; technical report
Previously Published As