首页 | 本学科首页   官方微博 | 高级检索  
     


A priority queue in which initialization and queue operations takeO(loglogD) time
Authors:Donald B Johnson
Affiliation:(1) Department of Computer Science, The Pennsylvania State University, University Park, Pennsylvania, USA
Abstract:Many computer algorithms have embedded in them a subalgorithm called a priority queue which produces on demand an element of extreme priority among elements in the queue. Queues on unrestricted priority domains have a running time of THgr(nlogn) for sequences ofn queue operations. We describe a simple priority queue over the priority domain {1,ctdot,N} in which initialization, insertion, and deletion takeO(loglogD) time, whereD is the difference between the next lowest and next highest priority elements in the queue. In the case of initialization,D=THgr(N). Finding a least element, greatest element, and the neighbor in priority order of some specified element take constant time. We also consider dynamic space allocation for the data structures used. Space can be allocated in blocks of size THgr(N 1/p ), for small integerp. This research was supported by the National Science Foundation under grants MCS 77-21092 and MCS 80-002684.
Keywords:
本文献已被 SpringerLink 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号