×

Untangled monotonic chains and adaptive range search. (English) Zbl 1221.68069

Summary: We present the first adaptive data structure for two-dimensional orthogonal range search. Our data structure is adaptive in the sense that it gives improved search performance for data that is better than the worst case; in this case, data with more inherent sortedness.
Given \(n\) points on the plane, the linear space data structure can answer range queries in \(O(\log n+k+m)\) time, where \(m\) is the number of points in the output and \(k\) is the minimum number of monotonic chains into which the point set can be decomposed, which is \(O(\sqrt n)\) in the worst case. Our result matches the worst-case performance of other optimal-time linear space data structures, or surpasses them when \(k = o(\sqrt n)\). Our data structure can be made implicit, requiring no extra space beyond that of the data points themselves, in which case the query time becomes \(O(k \log n+m)\). We also present a novel algorithm of independent interest to decompose a point set into a minimum number of untangled, similarly directed monotonic chains in \(O(k^{2}n+n \log n)\) time.

MSC:

68P05 Data structures
68P10 Searching and sorting
68U05 Computer graphics; computational geometry (digital and algorithmic aspects)
Full Text: DOI

References:

[1] Arge, L.; de Berg, M.; Haverkort, H. J.; Yi, K., The priority R-tree: a practically efficient and worst-case optimal R-tree, ACM Transactions on Algorithms, 4, 9:1-9:30 (2008) · Zbl 1445.68060
[2] Arroyuelo, D.; Claude, F.; Dorrigiv, R.; Durocher, S.; He, M.; López-Ortiz, A.; Munro, J. I.; Nicholson, P. K.; Salinger, A.; Skala, M., Untangled monotonic chains and adaptive range search, (Dong, Y.; Du, D. Z.; Ibarra, O., 20th International Symposium on Algorithms and Computation. 20th International Symposium on Algorithms and Computation, ISAAC 2009. 20th International Symposium on Algorithms and Computation. 20th International Symposium on Algorithms and Computation, ISAAC 2009, LNCS, vol. 5878 (2009), Springer), 203-212 · Zbl 1272.68112
[3] Bar-Yehuda, R.; Fogel, S., Partitioning a sequence into few monotone subsequences, Acta Informatica, 35, 421-440 (1998) · Zbl 0904.68078
[4] Bentley, J. L., Multidimensional binary search trees used for associative searching, Communications of the ACM, 18, 509-517 (1975) · Zbl 0306.68061
[5] Bloniarz, P. A.; Ravi, S. S., An \(\Omega(n \log n)\) lower bound for decomposing a set of points into chains, Information Processing Letters, 31, 319-322 (1989) · Zbl 0678.68029
[6] Chazelle, B.; Guibas, L. J., Fractional cascading: I. a data structuring technique, Algorithmica, 1, 133-162 (1986) · Zbl 0639.68056
[7] Claude, F.; Munro, J. I.; Nicholson, P. K., Range queries over untangled chains, (Chávez, E.; Lonardi, S., Proceedings of the 17th Symposium on String Processing and Information Retrieval. Proceedings of the 17th Symposium on String Processing and Information Retrieval, SPIRE 2010. Proceedings of the 17th Symposium on String Processing and Information Retrieval. Proceedings of the 17th Symposium on String Processing and Information Retrieval, SPIRE 2010, LNCS, vol. 6393 (2010), Springer), 82-93
[8] Demaine, E. D.; López-Ortiz, A.; Munro, J. I., Adaptive set intersections, unions, and differences, (Proceedings of the Eleventh Annual ACM-SIAM Symposium on Discrete Algorithms. Proceedings of the Eleventh Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2010 (2000), ACM Press: ACM Press New York), 743-752 · Zbl 0957.68124
[9] Di Stefano, G.; Krause, S.; Lübbecke, M. E.; Zimmermann, U. T., On minimum k-modal partitions of permutations, Journal of Discrete Algorithms, 6, 381-392 (2008) · Zbl 1173.90482
[10] Fomin, F. V.; Kratsch, D.; Novelli, J. C., Approximating minimum cocolorings, Information Processing Letters, 84, 285-290 (2002) · Zbl 1042.68091
[11] Guttman, A., \(R\)-trees: a dynamic index structure for spatial searching, SIGMOD Record (ACM Special Interest Group on Management of Data), 14, 47-57 (1984)
[12] Kanth, K. V.R.; Singh, A., Optimal dynamic range searching in non-replicating index structures, (7th International Conference on Database Theory, ICDT’99, Proceedings. 7th International Conference on Database Theory, ICDT’99, Proceedings, LNCS, vol. 1540 (1999), Springer), 257-276
[13] van Leeuwen, J.; Schoone, A. A., Untangling a traveling salesman tour in the plane, (Proceedings of the 7th Conference on Graphtheoretic Concepts in Computer Science. Proceedings of the 7th Conference on Graphtheoretic Concepts in Computer Science, WG 81 (1981), Hanser Verlag: Hanser Verlag München, Germany), 87-98 · Zbl 0553.90103
[14] Lueker, G. S., A data structure for orthogonal range queries, (19th Annual Symposium on Foundations of Computer Science. 19th Annual Symposium on Foundations of Computer Science, FOCS’78 (1978), IEEE Computer Society Press: IEEE Computer Society Press Long Beach, Ca., USA), 28-34
[15] J.I. Munro, A multikey search problem, in: Proceedings of the 17th Allerton Conference on Communication, Control and Computing, University of Illinois, pp. 241-244.; J.I. Munro, A multikey search problem, in: Proceedings of the 17th Allerton Conference on Communication, Control and Computing, University of Illinois, pp. 241-244.
[16] Munro, J. I.; Suwanda, H., Implicit data structures for fast search and update, Journal of Computer Systems Sciences, 21, 236-250 (1980) · Zbl 0446.68045
[17] Nekrich, Y., Orthogonal range searching in linear and almost-linear space, Computational Geometry, 42, 342-351 (2009) · Zbl 1170.68012
[18] Supowit, K. J., Decomposing a set of points into chains, with applications to permutation and circle graphs, Information Processing Letters, 21, 249-252 (1985) · Zbl 0586.68034
[19] Yang, B.; Chen, J.; Lu, E.; Zheng, S. Q., A comparative study of efficient algorithms for partitioning a sequence into monotone subsequences, (yi Cai, J.; Cooper, S. B.; Zhu, H., Theory and Applications of Models of Computation, 4th International Conference, TAMC 2007, Proceedings. Theory and Applications of Models of Computation, 4th International Conference, TAMC 2007, Proceedings, LNCS, vol. 4484 (2007), Springer), 46-57 · Zbl 1198.68302
This reference list is based on information provided by the publisher or from digital mathematics libraries. Its items are heuristically matched to zbMATH identifiers and may contain data conversion errors. In some cases that data have been complemented/enhanced by data from zbMATH Open. This attempts to reflect the references listed in the original paper as accurately as possible without claiming completeness or a perfect matching.