Skip to main content

Efficient algorithm to sort linear combinations of arrays

  • Conference paper
  • First Online:
Foundations of Software Technology and Theoretical Computer Science (FSTTCS 1993)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 761))

  • 124 Accesses

Abstract

There have been many sorting algorithms that sort a given array of n numbers. In Computational Geometry it is often required to sort different arrays which are essentially the linear combinations of a fixed set of arrays. In this paper we claim that one can presort an array of ordered pairs for all possible combinations of the elements in each pair. Thus it is not necessary to employ any of the existing sorting algorithm for each of the linear combinations separately. On the other hand, the information can be globally compiled for the given pair of arrays in advance and actual sorting can be accomplished by employing a binary search. Thus any array resulting from the linear combination of an array of ordered pairs can be sorted in O(log n). The presorting is done by well known angle sweep paradigm and we prove certain results, which are otherwise trivially accepted regarding this paradigm. As a result we show here that angle-sweep technique can be implemented more efficiently. Moreover, since this process generates \(\frac{{n\left( {n - 1} \right)}}{2}\) permutations out of all n! permutations, whether a given arrangement of points is possible can be determined in O(n 2) time. We show that these observations can lead to very simple techniques to solve certain well-known problem regarding arrangements of planar points.

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

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Bhattacharya, B.K.: Usefulness of angle-sweep over line-sweep. In S Biswas and K V Nori (Eds.), Foundations of Software Technology and Theoretical Computer Science 391–413. Berlin: Springer-Verlag (1991).

    Google Scholar 

  2. Edelsbruner,H. Algorithms in Combinatorial Geometry. Berlin: Springer-Verlag, 1987.

    Google Scholar 

  3. Sharir, M., and Overmars, M.H.: A simple output sensitive algorithm for hidden surface removal. ACM Tr. on Graphics 11 (1992) 1–11.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Rudrapatna K. Shyamasundar

Rights and permissions

Reprints and permissions

Copyright information

© 1993 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Pujari, A.K. (1993). Efficient algorithm to sort linear combinations of arrays. In: Shyamasundar, R.K. (eds) Foundations of Software Technology and Theoretical Computer Science. FSTTCS 1993. Lecture Notes in Computer Science, vol 761. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-57529-4_73

Download citation

  • DOI: https://doi.org/10.1007/3-540-57529-4_73

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-57529-0

  • Online ISBN: 978-3-540-48211-6

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics