English

Quantum Algorithm for Searching for the Longest Segment and the Largest Empty Rectangle

Quantum Physics 2025-12-04 v1 Data Structures and Algorithms

Abstract

In the paper, we consider the problem of searching for the Largest empty rectangle in a 2D map, and the one-dimensional version of the problem is the problem of searching for the largest empty segment. We present a quantum algorithm for the Largest Empty Square problem and the Largest Empty Rectangle of a fixed width dd for n×nn\times n-rectangular map. Query complexity of the algorithm is O~(n1.5)\tilde{O}(n^{1.5}) for the square case, and O~(nd)\tilde{O}(n\sqrt{d}) for the rectangle with a fixed width dd case, respectively. At the same time, the lower bounds for the classical case are Ω(n2)\Omega(n^2), and Ω(nd)\Omega(nd), respectively. The Quantum algorithm for the one-dimensional version of the problem has O(nlognloglogn)O(\sqrt{n}\log n\log\log n) query complexity. The quantum lower bound for the problem is Ω(n)\Omega(\sqrt{n}) which is almost equal to the upper bound up to a log factor. The classical lower bound is Ω(n)\Omega(n). So, we obtain the quadratic speed-up for the problem.

Keywords

Cite

@article{arxiv.2512.03788,
  title  = {Quantum Algorithm for Searching for the Longest Segment and the Largest Empty Rectangle},
  author = {Kamil Khadiev and Vladislav Remidovskii and Timur Bikmullin and Aliya Khadieva},
  journal= {arXiv preprint arXiv:2512.03788},
  year   = {2025}
}

Comments

accepted in SOFSEM2026 conference, In Proceedings LNCS vol.16448

R2 v1 2026-07-01T08:07:42.697Z