Jump to content

Hopcroft's problem

From Wikipedia, the free encyclopedia

In computational geometry, Hopcroft's problem is the problem of testing, for a given system of points and lines in the Euclidean plane, 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 , where is the total number of points and lines.[1] This time bound matches the bound of on the total number of point-line incidences given by the Szemerédi–Trotter theorem.[2] Hopcroft's problem is named after John Hopcroft, who posed it in the early 1980s.[3] Its computational complexity is closely connected to the complexity of several other problems in computational geometry, including that of three-dimensional Euclidean minimum spanning trees.[1]

Algorithms

[edit]

One way of solving the problem involves a geometric divide-and-conquer algorithm. 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 into triangular subproblems each crossed by a fraction of the lines and each containing a fraction of the points. Alternatively, applying the same technique to the projective dual system of dual lines and dual points, one can obtain subproblems each involving a fraction of the input lines and a fraction of the points. Doing this once each way, for , would reduce the problem to subproblems of constant size, which can be solved directly. This idea (with a more careful choice of the parameter ) leads to a time bound of . Here, the extra logarithmic factor comes from the overhead of assigning points and lines to the subproblems that are generated in this way.[4]

The same two-step subdivision process, with a choice of that is smaller by a logarithmic factor, can reduce the given problem to subproblems whose size is a polylogarithmic function of , in time . Repeating this process recursively until the input is reduced to subproblems of constant size, would lead to a time bound of the form . Here denotes the iterated logarithm.[5]

In a 2024 paper, Chan and Zheng showed that there exist algebraic decision trees for Hopcroft's problem whose depth is .[1] 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 by Jiří Matoušek,[5] 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, and then used to solve each subproblem. The result is an algorithm for Hopcroft's problem with total time .[1]

In a 2024 preprint, Andrejevs, Belovs, and Vihrovs have announced a quantum algorithm for Hopcroft's problem that runs in time , where the notation hides logarithmic factors. This is substantially below the best known time bound for a classical algorithm.[6]

Lower bounds

[edit]

A natural limitation on Hopcroft's algorithm is the number of point–line incidences, which could be by the Szemerédi–Trotter theorem.[2] 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, according to which algorithms that operate in this way must take time .[3] 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 , they could be used in the same way to solve Hopcroft's problem in time .[1]

References

[edit]
  1. ^ a b c d e Chan, Timothy M.; Zheng, Da Wei (2024), "Hopcroft's problem, log* shaving, two-dimensional fractional cascading, and decision trees", ACM Transactions on Algorithms, 20 (3): 24, doi:10.1145/3591357
  2. ^ a b Szemerédi, Endre; Trotter, William T. (1983), "Extremal problems in discrete geometry", Combinatorica, 3 (3–4): 381–392, doi:10.1007/BF02579194, MR 0729791
  3. ^ a b Erickson, J. (1996), "New lower bounds for Hopcroft's problem", Discrete & Computational Geometry, 16 (4): 389–418, doi:10.1007/BF02712875, MR 1414963
  4. ^ Chazelle, Bernard (1993), "Cutting hyperplanes for divide-and-conquer", Discrete & Computational Geometry, 9 (2): 145–158, doi:10.1007/BF02189314, MR 1194032
  5. ^ a b Matoušek, Jiří (1993), "Range searching with efficient hierarchical cuttings", Discrete & Computational Geometry, 10 (2): 157–182, doi:10.1007/BF02573972, MR 1220545
  6. ^ Andrejevs, Vladimirs; Belovs, Aleksandrs; Vihrovs, Jevgēnijs (2024), Quantum algorithms for Hopcroft's problem, arXiv:2405.01160