
802 R Runs
between the query point q and any bounding box is
smaller than the distance between q and its true nearest
neighbor.
When the window query Q shrinks to a point, that
is, the query asks for all hypercubes in S that con-
tain the query point, the problem is often referred
to as stabbing queries or point enclosure queries.The
lower bound of Theorem 1 does not hold for this spe-
cial case; while a lower bound of ˝(log
2
N + T/B)was
proved in [5], which holds in the strong indexability
model. It is intriguing to find out the true complex-
ity for stabbing queries using R-trees, which is between
˝(log
2
N + T/B)andO((N/B)
11/d
+ T/B).
Experimental Results
Nearly all studies on R-trees include experimental evalu-
ations, mostly in two dimensions. Reportedly the Hilbert
R-tree [10,11] has been shown to have good query perfor-
mance while being easy to construct. The R*-tree’s inser-
tion algorithm [6] has often been used for updating the R-
tree. Please refer to the book by Manolopoulos et al. [14]
for more discussions on the practical performance of R-
trees.
Data Sets
Besides some synthetic data sets, the TIGER/Line
data (http://www.census.gov/geo/www/tiger/)fromthe
US Census Bureau has been frequently used as real-
world data to test R-trees. The R-tree portal (http://www.
rtreeportal.org/) also contains many interesting data sets.
URL to Code
Code for many R-tree variants is available at the R-tree
portal (http://www.rtreeportal.org/).Thecodeforthepri-
ority R-tree is available at http://www.cse.ust.hk/~yike/
prtree/.
Cross References
B-trees
External Sorting and Permuting
I/O-model
Recommended Reading
1. Agarwal, P.K., de Berg, M., Gudmundsson, J., Hammar, M.,
Haverkort, H.J.: Box-trees and R-trees with near-optimal query
time. Discret. Comput. Geom. 28, 291–312 (2002)
2. Aggarwal, A., Vitter, J.S.: The input/output complexity of sort-
ing and related problems. In: Communications of the ACM,
vol. 31, pp. 1116–1127 (1988)
3. Arge, L., de Berg, M., Haverkort, H.J., Yi, K.: The priority R-tree:
A practically efficient and worst-case optimal R-tree. In: Proc.
SIGMOD International Conference on Management of Data,
2004, pp. 347–358
4. Arge, L., Samoladas, V., Vitter, J.S.: On two-dimensional index-
ability and optimal range search indexing. In: Proc. ACM Sym-
posium on Principles of Database Systems, 1999, pp. 346–357
5. Arge, L., Samoladas, V., Yi, K.: Optimal external memory planar
point enclosure. In: Proc. European Symposium on Algorithms,
2004
6. Beckmann, N., Kriegel, H.-P., Schneider, R., Seeger, B.: The R*-
tree: An efficient and robust access method for points and rect-
angles. In: Proc. SIGMOD International Conference on Manage-
ment of Data, 1990, pp. 322–331
7. DeWitt, D.J., Kabra, N., Luo, J., Patel, J.M., Yu, J.-B.: Client-server
paradise. In: Proc. International Conference on Very Large
Databases, 1994, pp. 558–569
8. García, Y.J., López, M.A., Leutenegger, S.T.: A greedy algorithm
for bulk loading R-trees. In: Proc. 6th ACM Symposium on Ad-
vances in GIS, 1998, pp. 163–164
9. Guttman, A.: R-trees: A dynamic index structure for spatial
searching. In: Proc. SIGMOD International Conference on Man-
agement of Data, 1984, pp. 47–57
10. Kamel, I., Faloutsos, C.: On packing R-trees. In: Proc. Interna-
tional Conference on Information and Knowledge Manage-
ment, 1993, pp. 490–499
11. Kamel, I., Faloutsos, C.: Hilbert R-tree: An improved R-tree us-
ing fractals. In: Proc. International Conference on Very Large
Databases, 1994, pp. 500–509
12. Kanth, K.V.R., Singh, A.K.: Optimal dynamic range searching in
non-replicatingindex structures. In: Proc. International Confer-
ence on Database Theory. LNCS, vol. 1540, pp. 257–276 (1999)
13. Leutenegger, S.T., Lopez, M.A., Edington, J.: STR: A simple and
efficient algorithm for R-tree packing. In: Proc. 13th IEEE Inter-
national Conference on Data Engineering, 1997, pp. 497–506
14. Manolopoulos, Y., Nanopoulos, A., Papadopoulos, A.N.,
Theodoridis, Y.: R-trees: Theory and Applications. Springer,
London (2005)
15. Sellis, T., Roussopoulos, N., Faloutsos, C.: The R
+
-tree: A dy-
namic index for multi-dimensional objects. In: Proc. Interna-
tional Conference on Very Large Databases, 1987, pp. 507–518
Runs
Squares and Repetitions