









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










Given k ranges [ l i, ui], 1 <= i <= k. Report all records in collection such that l i <= ki <= ui, 1 <= i <= k.
k-d trees.
Range trees.
a
b
d e
c
f g
a
b
d e
c
f g
P(n,1) = O(n log n). S(n,1) = O(n). Q(n,1) = O(log n + s).
10 12 15 20 24 26 27 29 35 40 50 55
a SA
b c
d e f g
a SA
b c
d e f g
a SA
b c
d e f g
a SA
b c
d e f g
a SA
b c
d e f g
a (^) 2-d
b
d e f g
cc
a (^) 2-d
b c
d e f g
cc
a (^) 2-d
b c
d e f g
cc
O(n log n) time to construct 2-d range trees at each level of the tree from data at preceding level. O(log n) levels.
a (^) 2-d
b c
d e f g
cc