Skip to main contentSkip to search
Episciences
Open Access Journals
Sign in(new window)
Discrete Mathematics & Theoretical Computer Science logo
Discrete Mathematics & Theoretical Computer Science
Discrete Mathematics & Theoretical Computer Science logo
Discrete Mathematics & Theoretical Computer Science
Sign in(new window)
Articles & Issues
All articlesAll accepted articlesAll volumesLast volumeSectionsSpecial issuesAuthors
About
The journalIndexing
Boards
Publish
For authorsEthical charter
Submit
Discrete Mathematics & Theoretical Computer Science logo
Contact
|
Credits
eISSN 1365-8050
|
RSS
|
Atom
Episciences
Documentation
|
Acknowledgements
|
Publishing policy
Accessibility: non-compliant
|
Legal mentions
|
Privacy statement
|
Terms of use
  1. Home > Articles & Issues >
  2. Articles >
  3. On strictly output s ...
Article

On strictly output sensitive color frequency reporting

Erwin Glazenburg ORCID (1), Frank Staals (1)
(1) Utrecht University
Download article
Open on arXiv
Submitted on
March 13, 2026
Accepted on
June 25, 2026
Published on
October 5, 2026
Last modified on
October 5, 2026
Special issue 28
vol. 28:4, SOFSEM 2026
Special issues
DOI
10.46298/dmtcs.17715
License
Attribution 4.0 International (CC BY 4.0)
Indicators
163
Views
186
Downloads

On strictly output sensitive color frequency reporting

Erwin Glazenburg ORCID (1), Frank Staals (1)
(1) Utrecht University
Abstract
Given a set of $n$ colored points $P \subset \mathbb{R}^d$ we wish to store $P$ such that, given some query region $Q$, we can efficiently report the colors of the points appearing in the query region, along with their frequencies. This is the \emph{color frequency reporting} problem. We study the case where query regions $Q$ are axis-aligned boxes or dominance ranges. If $Q$ contains $k$ colors, the main goal is to achieve ``strictly output sensitive'' query time $O(f(n) + k)$. Firstly, we show that, for every $s \in \{ 2, \dots, n \}$, there exists a simple $O(ns\log_s n)$ size data structure for points in $\mathbb{R}^2$ that allows frequency reporting queries in $O(\log n + k\log_s n)$ time. Secondly, we give a lower bound for the weighted version of the problem in the arithmetic model of computation, proving that with $O(m)$ space one can not achieve query times better than $Ω\left(ϕ\frac{\log (n / ϕ)}{\log (m / n)}\right)$, where $ϕ$ is the number of possible colors. This means that our data structure is near-optimal. We extend these results to higher dimensions as well. Thirdly, we present a transformation that allows us to reduce the space usage of the aforementioned data structure to $O(n(s ϕ)^\varepsilon \log_s n)$. Finally, we give an $O(n^{1+\varepsilon} + m \log n + K)$-time algorithm that can answer $m$ dominance queries in $\mathbb{R}^2$ with total output complexity $K$, while using only linear working space.
Keywords
  • Computational Geometry
  • 68W40
Preview
Loading PDF preview...
References
  1. P. Afshani and K. Tsakalidis. Optimal deterministic shallow cuttings for 3-d dominance ranges. Algorithmica, 80(11):3192-3206, 2018.

    DOI : 10.1007/s00453-017-0376-3
  2. P. Afshani, P. Cheng, A. B. Roy, and Z. Wei. On range summary queries. In Proceedings of the 50th International Colloquium on Automata, Languages, and Programming (ICALP), volume 261 of LIPIcs, pages 7:1-7:17. Schloss Dagstuhl -Leibniz-Zentrum für Informatik, 2023.

    DOI : 10.4230/LIPICS.ICALP.2023.7
  3. P. Bozanis, N. Kitsios, C. Makris, and A. K. Tsakalidis. New upper bounds for generalised intersection searching problems. In Proceedings of 22nd International Colloquium on Automata, Languages, and Programming (ICALP), volume 944 of Lecture Notes in Computer Science, pages 464-474. Springer, 1995.

    DOI : 10.1007/3-540-60084-1_97
  4. T. M. Chan and M. Pȃtrascu. Counting inversions, offline orthogonal range counting, and related prob- lems. In Proceedings of the 21st Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 161-173. SIAM, 2010.

    DOI : 10.1137/1.9781611973075.15
  5. T. M. Chan, Q. He, and Y. Nekrich. Further results on colored range searching. In Proceedings of the 36th International Symposium on Computational Geometry (SoCG), volume 164 of LIPIcs, pages 28:1- 28:15. Schloss Dagstuhl -Leibniz-Zentrum für Informatik, 2020.

    DOI : 10.4230/LIPICS.SOCG.2020.28
  6. B. Chazelle. Filtering search: A new approach to query-answering. SIAM J. Comput., 15(3):703-724, 1986. doi:10.1137/0215051.

    DOI : 10.1137/0215051
  7. B. Chazelle. Lower bounds for orthogonal range searching II. the arithmetic model. J. ACM, 37(3): 439-463, 1990a. doi:10.1145/79147.79149.

    DOI : 10.1145/79147.79149
  8. B. Chazelle. Lower bounds for orthogonal range searching: I. the reporting case. J. ACM, 37(2):200-212, 1990b. doi:10.1145/77600.77614.

    DOI : 10.1145/77600.77614
  9. B. Chazelle and L. J. Guibas. Fractional cascading: I. A data structuring technique. Algorithmica, 1(2): 133-162, 1986. doi:10.1007/BF01840440.

    DOI : 10.1007/bf01840440
  10. M. de Berg, O. Cheong, M. J. van Kreveld, and M. H. Overmars. Computational geometry: algorithms and applications, 3rd Edition. Springer, 2008. doi:10.1007/978-3-540-77974-2.

  11. A. Ganguly, J. I. Munro, Y. Nekrich, R. Shah, and S. V. Thankachan. Categorical range reporting with frequencies. In Proceedings of the 22nd International Conference on Database Theory (ICDT), volume 127 of LIPIcs, pages 9:1-9:19. Schloss Dagstuhl -Leibniz-Zentrum für Informatik, 2019.

    DOI : 10.4230/LIPICS.ICDT.2019.9
  12. E. Glazenburg and F. Staals. On strictly output-sensitive color frequency reporting. In Proceedings of the 51st International Conference on Current Trends in Theory and Practice of Computer Science (SOFSEM), pages 246-259, Cham, 2026. Springer Nature Switzerland.

    DOI : 10.1007/978-3-032-17801-5_18
  13. P. Gupta, R. Janardan, and M. H. M. Smid. Further results on generalized intersection search- ing problems: Counting, reporting, and dynamization. J. Algorithms, 19(2):282-317, 1995. doi:10.1006/JAGM.1995.1038.

    DOI : 10.1006/jagm.1995.1038
  14. P. Gupta, R. Janardan, and M. H. M. Smid. A technique for adding range restrictions to generalized searching problems. Inf. Process. Lett., 64(5):263-269, 1997. doi:10.1016/S0020-0190(97)00183-X.

    DOI : 10.1016/s0020-0190(97)00183-x
  15. P. Gupta, R. Janardan, and M. H. M. Smid. Computational geometry: Generalized (or colored) inter- section searching. In Handbook of Data Structures and Applications. Chapman and Hall/CRC, 2004. doi:10.1201/9781315119335.

    DOI : 10.1201/9781315119335
  16. R. Janardan and M. A. López. Generalized intersection searching problems. Int. J. Comput. Geom. Appl., 3(1):39-69, 1993. doi:10.1142/S021819599300004X.

    DOI : 10.1142/s021819599300004x
  17. Q. Shi and J. F. JáJá. Optimal and near-optimal algorithms for generalized intersection reporting on pointer machines. Inf. Process. Lett., 95(3):382-388, 2005. doi:10.1016/J.IPL.2005.04.008.

    DOI : 10.1016/j.ipl.2005.04.008