Improving Space Efficiency for a Family of Operations
暂无分享,去创建一个
In this paper, we show that O(1) space and O(log n) time suffice for merging and splitting of red-black trees in a standard representation in which only two pointers to the two children are given for each node. We also show that the nodes of any binary search tree (in the same representation) whose keys are in a given range can be enumerated in O(1) space using a time-optimal algorithm. Our time-and-space-optimal algorithms for merging and splitting red-black trees are the first that have ever been designed, and they will have lasting value.
[1] Ellis Horowitz,et al. Fundamentals of Data Structures in Pascal , 1984 .
[2] G. H. Gonnet,et al. Handbook of algorithms and data structures: in Pascal and C (2nd ed.) , 1991 .
[3] Lin Chen,et al. Optimal Operations on Red-Black Trees , 1996, Int. J. Found. Comput. Sci..
[4] Donald E. Knuth,et al. The Art of Computer Programming, Vol. 3: Sorting and Searching , 1974 .
[5] Lin Chen,et al. O(1) Space Complexity Deletion for AVL Trees , 1986, Inf. Process. Lett..