Skip to main content
Log in

Algorithms for projecting points to give the most uniform distribution with applications to hashing

  • Published:
Algorithmica Aims and scope Submit manuscript

Abstract

This paper presents several algorithms for projecting points so as to give the most uniform distribution. Givenn points in the plane and an integerb, the problem is to find an optimal angleθ ofb equally spaced parallel lines such that points are distributed most uniformly over buckets (regions bounded by two consecutive lines). An algorithm is known only in thetight case in which the two extreme lines are the supporting lines of the point set. The algorithm requiresO(bn2 logn) time and On2+bn) space to find an optimal solution. In this paper we improve the algorithm both in time and space, based on duality transformation. Two linear-space algorithms are presented. One runs in On2+K log n+bn) time, whereK is the number of intersections in the transformed plane.K is shown to beO(@#@ n2+bn@#@) based on a new counting scheme. The other algorithm is advantageous ifb < √n. It performs a simplex range search in each slab to enumerate all the lines that intersectbucket lines, and runs in O(b0.610n1.695+K logn) time. It is also shown that the problem can be solved in polynomial time even in therelaxed case. Its one-dimensional analogue is especially related to the design of an optimal hash function for a static set of keys.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. A. V. Aho, J. E. Hopcroft, and J. D. Ullman: Problem 2.12,The Design and Analysis of Computer Algorithms, Addison-Wesley, Reading, MA, 1974.

    Google Scholar 

  2. T. Asano, L. J. Guibas, and T. Tokuyama: Walking on an Arrangement Topologically,Proc. 7th ACM Symposium on Computational Geometry, pp. 297–306, 1991.

  3. J. L. Bentley and T. Ottman: Algorithms for Reporting and Counting Geometric Intersections,IEEE Trans. Comput., vol. 28, pp. 643–647, Sept. 1979.

    Google Scholar 

  4. B. Chazelle, L. J. Guibas, and D. T. Lee: The Power of Geometric Duality,Proc. 24th Symposium on Foundations of Computer Science, pp. 217–225, 1983.

  5. D. Comer and M. J. O'Donnell: Geometric Problems with Applications to Hashing,SIAM J. Comput., vol. 11, no. 2, pp. 217–26, 1982.

    Google Scholar 

  6. H. Edelsbrunner:Algorithms in Combinatorial Geometry, EATCS Monographs in Theoretical Computer Science, vol. 10, Springer-Verlag, Berlin, 1987.

    Google Scholar 

  7. H. Edelsbrunner and L. J. Guibas: Topologically Sweeping an Arrangement, Research Report 9, Digital Systems Research Center, 1986.

  8. H. Edelsbrunner and E. Welzl: Half Planar Range Search in Linear Space andO(n 0.695) Query Time,Inform. Process. Lett., vol. 23, pp. 289–193, 1986.

    Google Scholar 

  9. K. Mehlhorn:Data Structures and Algorithms, 1: Sorting and Searching, EATCS Monographs on Theoretical Computer Science, Springer-Verlag, Berlin, 1984.

    Google Scholar 

  10. F. P. Preparata and M. I. Shamos:Computational Geometry—An Introduction, second edition, Springer-Verlag, New York, 1985.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Additional information

Communicated by Takao, Asano

This work was supported in part by a Grant in Aid for Scientific Research of the Ministry of Education, Science, and Cultures of Japan.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Asano, T., Tokuyama, T. Algorithms for projecting points to give the most uniform distribution with applications to hashing. Algorithmica 9, 572–590 (1993). https://doi.org/10.1007/BF01190156

Download citation

  • Received:

  • Revised:

  • Issue Date:

  • DOI: https://doi.org/10.1007/BF01190156

Key words

Navigation