25.11.2014 Views

Algorithms and Data Structures

Algorithms and Data Structures

Algorithms and Data Structures

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

N.Wirth. <strong>Algorithms</strong> <strong>and</strong> <strong>Data</strong> <strong>Structures</strong>. Oberon version 199<br />

the shown procedure to perform all four rebalancing acts (LL, LR, RR, RL) at least once. What is the<br />

shortest such sequence?<br />

4.27. Write a procedure for the deletion of elements in a symmetric binary B-tree. Then find a tree <strong>and</strong> a<br />

short sequence of deletions causing all four rebalancing situations to occur at least once.<br />

4.28. Formulate a data structure <strong>and</strong> procedures for the insertion <strong>and</strong> deletion of an element in a priority<br />

search tree. The procedures must maintain the specified invariants. Compare their performance with that of<br />

the radix priority search tree.<br />

4.29. Design a module with the following procedures operating on radix priority search trees:<br />

— insert a point with coordinates x, y.<br />

— enumerate all points within a specified rectangle.<br />

— find the point with the least x-coordinate in a specified rectangle.<br />

— find the point with the largest y-coordinate within a specified rectangle.<br />

— enumerate all points lying within two (intersecting) rectangles.<br />

References<br />

[4.1] G.M. Adelson-Velskii <strong>and</strong> E.M. L<strong>and</strong>is. Doklady Akademia Nauk SSSR, 146, (1962), 263-66;<br />

English translation in Soviet Math, 3, 1259-63.<br />

[4.2] R. Bayer <strong>and</strong> E.M. McCreight. Organization <strong>and</strong> Maintenance of Large Ordered Indexes. Acta<br />

Informatica, 1, No. 3 (1972), 173-89.<br />

[4.3] R. Bayer <strong>and</strong> E.M. McCreight. Binary B-trees for Virtual memory. Proc. 1971 ACM SIGFIDET<br />

Workshop, San Diego, Nov. 1971, pp. 219-35.<br />

[4.4] R. Bayer <strong>and</strong> E.M. McCreight. Symmetric Binary B-trees: <strong>Data</strong> Structure <strong>and</strong> Maintenance<br />

<strong>Algorithms</strong>. Acta Informatica, 1, No. 4 (1972), 290-306.<br />

[4.5] T.C. Hu <strong>and</strong> A.C. Tucker. SIAM J. Applied Math, 21, No. 4 (1971) 514-32.<br />

[4.6] D. E. Knuth. Optimum Binary Search Trees. Acta Informatica, 1, No. 1 (1971), 14-25.<br />

[4.7] W.A. Walker <strong>and</strong> C.C. Gotlieb. A Top-down Algorithm for Constructing Nearly Optimal<br />

Lexicographic Trees, in: Graph Theory <strong>and</strong> Computing (New York: Academic Press, 1972), pp.<br />

303-23.<br />

[4.8] D. Comer. The ubiquitous B-tree. ACM Comp. Surveys, 11, 2 (June 1979), 121-137.<br />

[4.9] J. Vuillemin. A unifying look at data structures. Comm. ACM, 23, 4 (April 1980), 229-239.<br />

[4.10] E.M. McCreight. Priority search trees. SIAM J. of Comp. (May 1985)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!