DATA-STRUCTURAL BOOTSTRAPPING, LINEAR PATH COMPRESSION, AND CATENABLE HEAP-ORDERED DOUBLE-ENDED QUEUES

被引:8
作者
BUCHSBAUM, AL
SUNDAR, R
TARJAN, RE
机构
[1] INDIAN INST SCI,DEPT COMP SCI & AUTOMAT,BANGALORE 560012,KARNATAKA,INDIA
[2] PRINCETON UNIV,DEPT COMP SCI,PRINCETON,NJ 08544
[3] NEC RES INST,PRINCETON,NJ 08540
关键词
PATH COMPRESSION; LISTS; QUEUES; DEQUES; CATENATION; HEAP ORDER; PRIORITY QUEUES; DATA-STRUCTURAL BOOTSTRAPPING;
D O I
10.1137/S0097539792242144
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
A deque with heap order is a linear list of elements with real-valued keys that allows insertions and deletions of elements at both ends of the list. It also allows the findmin (alternatively findmax) operation, which returns the element of least (greatest) key, bur it does not allow a general deletemin (deletemax) operation. Such a data structure is also called a mindeque (maxdeque). Whereas implementing heap-ordered deques in constant time per operation is a solved problem, catenating heap-ordered deques in sublogarithmic time has remained open until now. This paper provides an efficient implementation of catenable heap-ordered deques, yielding constant amortized time per operation. The important algorithmic technique employed is an idea that we call data-structural bootstrapping: we abstract heap-ordered deques by representing them by their minimum elements, thereby reducing catenation to simple insertion. The efficiency of the resulting data structure depends upon the complexity elf a special case of path compression that we prove takes linear time.
引用
收藏
页码:1190 / 1206
页数:17
相关论文
共 29 条
[1]   COMPUTING EXTERNAL FARTHEST NEIGHBORS FOR A SIMPLE POLYGON [J].
AGARWAL, PK ;
AGGARWAL, A ;
ARONOV, B ;
KOSARAJU, SR ;
SCHIEBER, B ;
SURI, S .
DISCRETE APPLIED MATHEMATICS, 1991, 31 (02) :97-111
[2]  
ARAGON CR, 1989, 30TH P ANN IEEE S F, P540
[3]   A LINEAR ALGORITHM FOR ANALYSIS OF MINIMUM SPANNING AND SHORTEST-PATH TREES OF PLANAR GRAPHS [J].
BOOTH, H ;
WESTBROOK, J .
ALGORITHMICA, 1994, 11 (04) :341-352
[4]  
BUCHSBAUM AL, 1992, 33RD P IEEE S F COMP, P40
[5]  
BUCHSBAUM AL, 1993, 4TH P ACM SIAM S DIS, P155
[6]  
BUCHSBAUM AL, 1993, IN PRESS J ALGORITHM
[7]  
Cole R., 1984, 25th Annual Symposium on Foundations of Computer Science (Cat. No. 84CH2085-9), P65, DOI 10.1109/SFCS.1984.715902
[8]   OPTIMAL PAGINATION OF B-TREES WITH VARIABLE-LENGTH ITEMS [J].
DIEHR, G ;
FAALAND, B .
COMMUNICATIONS OF THE ACM, 1984, 27 (03) :241-247
[9]   FULLY PERSISTENT LISTS WITH CATENATION [J].
DRISCOLL, JR ;
SLEATOR, DDK ;
TARJAN, RE .
JOURNAL OF THE ACM, 1994, 41 (05) :943-959
[10]  
DRISCOLL JR, 1991, 2ND P ACM SIAM S DIS, P89