Hopcroft's Problem
   HOME

TheInfoList



OR:

In computational geometry, Hopcroft's problem is the problem of testing, for a given system of points and lines in the
Euclidean plane In mathematics, a Euclidean plane is a Euclidean space of Two-dimensional space, dimension two, denoted \textbf^2 or \mathbb^2. It is a geometric space in which two real numbers are required to determine the position (geometry), position of eac ...
, whether at least one of the points lies on at least one of the lines. More generally, one may ask for the number of point–line incidences. Both versions of the problem can be solved in time O(n^), where n is the total number of points and lines. This time bound matches the bound of O(n^) on the total number of point-line incidences given by the Szemerédi–Trotter theorem. Hopcroft's problem is named after John Hopcroft, who posed it in the early 1980s. Its
computational complexity In computer science, the computational complexity or simply complexity of an algorithm is the amount of resources required to run it. Particular focus is given to computation time (generally measured by the number of needed elementary operations ...
is closely connected to the complexity of several other problems in computational geometry, including that of three-dimensional Euclidean minimum spanning trees.


Algorithms

One way of solving the problem involves a geometric
divide-and-conquer algorithm In computer science, divide and conquer is an algorithm design paradigm. A divide-and-conquer algorithm recursively breaks down a problem into two or more sub-problems of the same or related type, until these become simple enough to be solved dir ...
. For a given system of points and lines, it is possible to use the theory of epsilon-nets to subdivide the plane, for a given parameter r into O(r) triangular subproblems each crossed by a 1/r^2 fraction of the lines and each containing a 1/r fraction of the points. Alternatively, applying the same technique to the
projective dual In projective geometry, duality or plane duality is a formalization of the striking symmetry of the roles played by points and lines in the definitions and theorems of projective planes. There are two approaches to the subject of duality, one t ...
system of dual lines and dual points, one can obtain subproblems each involving a 1/r fraction of the input lines and a 1/r^2 fraction of the points. Doing this once each way, for r=n^, would reduce the problem to subproblems of constant size, which can be solved directly. This idea (with a more careful choice of the parameter r) leads to a time bound of O(n^\log^ n). Here, the extra logarithmic factor comes from the overhead of assigning points and lines to the subproblems that are generated in this way. The same two-step subdivision process, with a choice of r that is smaller by a logarithmic factor, can reduce the given problem to subproblems whose size is a
polylogarithmic function In mathematics, a polylogarithmic function in is a polynomial in the logarithm of , : a_k (\log n)^k + a_ (\log n)^ + \cdots + a_1(\log n) + a_0. The notation is often used as a shorthand for , analogous to for . In computer science, polyl ...
of n, in time O(n^). Repeating this process recursively until the input is reduced to subproblems of constant size, would lead to a time bound of the form n^2^. Here \log^* n denotes the iterated logarithm. In a 2024 paper, Chan and Zheng showed that there exist algebraic decision trees for Hopcroft's problem whose depth is O(n^). These cannot be used directly to solve Hopcroft's problem, because they have exponential size and cannot be constructed efficiently; however they can be used in combination with the divide-and-conquer methods. Following a suggestion credited to
David Eppstein David Arthur Eppstein (born 1963) is an American computer scientist and mathematician. He is a distinguished professor of computer science at the University of California, Irvine. He is known for his work in computational geometry, graph algor ...
by Jiří Matoušek, Chan and Zheng describe an algorithm that performs a constant number of levels of the recursive algorithm, reducing the problem to many subproblems whose size is an iterated logarithm of the original input size. This is small enough for an optimal decision tree to be constructed by a
brute-force search In computer science, brute-force search or exhaustive search, also known as generate and test, is a very general problem-solving technique and algorithmic paradigm that consists of Iteration#Computing, systematically checking all possible candida ...
, and then used to solve each subproblem. The result is an algorithm for Hopcroft's problem with total time O(n^). In a 2024 preprint, Andrejevs, Belovs, and Vihrovs have announced a
quantum algorithm In quantum computing, a quantum algorithm is an algorithm that runs on a realistic model of quantum computation, the most commonly used model being the quantum circuit model of computation. A classical (or non-quantum) algorithm is a finite seq ...
for Hopcroft's problem that runs in time \tilde O(n^), where the \tilde O notation hides logarithmic factors. This is substantially below the best known time bound for a classical algorithm.


Lower bounds

A natural limitation on Hopcroft's algorithm is the number of point–line incidences, which could be \Theta(n^) by the Szemerédi–Trotter theorem. This would also provide a lower bound on algorithms for listing all point–line incidences, but not for detecting whether there is an incidence or counting the incidences. The divide-and-conquer algorithms for Hopcroft's algorithm operate purely by subdividing the plane in which the input points and lines are given and its dual projective plane. Jeff Erickson proved a
lower bound In mathematics, particularly in order theory, an upper bound or majorant of a subset of some preordered set is an element of that is every element of . Dually, a lower bound or minorant of is defined to be an element of that is less th ...
, according to which algorithms that operate in this way must take time \Omega(n^). However, methods based on algebraic decision trees do not fit this model, and Erickson's lower bound does not apply to algebraic decision trees. If there exist algebraic decision trees for the problem with depth o(n^), they could be used in the same way to solve Hopcroft's problem in time o(n^).


References

{{reflist, refs= {{citation , last1 = Andrejevs , first1 = Vladimirs , last2 = Belovs , first2 = Aleksandrs , last3 = Vihrovs , first3 = Jevgēnijs , arxiv = 2405.01160 , title = Quantum algorithms for Hopcroft's problem , year = 2024 {{citation , last1 = Chan , first1 = Timothy M. , author1-link = Timothy M. Chan , last2 = Zheng , first2 = Da Wei , doi = 10.1145/3591357 , issue = 3 , journal =
ACM Transactions on Algorithms ''ACM Transactions on Algorithms'' (''TALG'') is a quarterly peer-reviewed scientific journal covering the field of algorithms. It was established in 2005 and is published by the Association for Computing Machinery. The editor-in-chief is Edith Coh ...
, page = 24 , title = Hopcroft's problem, log* shaving, two-dimensional fractional cascading, and decision trees , volume = 20 , year = 2024
{{citation , last = Chazelle , first = Bernard , author-link = Bernard Chazelle , doi = 10.1007/BF02189314 , issue = 2 , journal =
Discrete & Computational Geometry '' Discrete & Computational Geometry'' is a peer-reviewed mathematics journal published quarterly by Springer. Founded in 1986 by Jacob E. Goodman and Richard M. Pollack, the journal publishes articles on discrete geometry and computational ...
, mr = 1194032 , pages = 145–158 , title = Cutting hyperplanes for divide-and-conquer , volume = 9 , year = 1993
{{citation , last = Erickson , first = J. , doi = 10.1007/BF02712875 , issue = 4 , journal =
Discrete & Computational Geometry '' Discrete & Computational Geometry'' is a peer-reviewed mathematics journal published quarterly by Springer. Founded in 1986 by Jacob E. Goodman and Richard M. Pollack, the journal publishes articles on discrete geometry and computational ...
, mr = 1414963 , pages = 389–418 , title = New lower bounds for Hopcroft's problem , volume = 16 , year = 1996
{{citation , last = Matoušek , first = Jiří , author-link = Jiří Matoušek (mathematician) , doi = 10.1007/BF02573972 , issue = 2 , journal =
Discrete & Computational Geometry '' Discrete & Computational Geometry'' is a peer-reviewed mathematics journal published quarterly by Springer. Founded in 1986 by Jacob E. Goodman and Richard M. Pollack, the journal publishes articles on discrete geometry and computational ...
, mr = 1220545 , pages = 157–182 , title = Range searching with efficient hierarchical cuttings , volume = 10 , year = 1993
{{citation , last1 = Szemerédi , first1 = Endre , author1-link = Endre Szemerédi , last2 = Trotter , first2 = William T. , author2-link = William T. Trotter , doi = 10.1007/BF02579194 , issue = 3–4 , journal =
Combinatorica ''Combinatorica'' is an international journal of mathematics, publishing papers in the fields of combinatorics and computer science Computer science is the study of computation, information, and automation. Computer science spans Theore ...
, mr = 0729791 , pages = 381–392 , title = Extremal problems in discrete geometry , volume = 3 , year = 1983
Computational geometry