Skip to main content

Lower bounds for sorting of sums

  • Algorithms And Complexity
  • Conference paper
  • First Online:
Automata, Languages and Programming (ICALP 1987)

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

Included in the following conference series:

  • 156 Accesses

Abstract

This paper addresses the following question: How much can sorting (by comparisons) be speeded up if some information about the possible ordertypes the input sequence (x1,...,xn) might have is given in advance? We extend a lower bound due to Fredman [3] concerning sorting of sums of the form (yi+zj | 1≤i, j≤m) to the problem of sorting all sums of up to d out of m numbers:

Let d ≥ 2, n=Σ0≤s≤d( ms . Then every decision tree for inputs from Rn that sorts all sums of up to d out of m numbers w1,...,wm, i. e., that determines the ordertype of sequences of the form \((\mathop \Sigma \limits_{r \in S} w_r |S \subset \{ 1,...m\} , |S| \leqslant d)\), for \(\overline w \in R^m\), has depth Θ(md)=Θ(n).

This is an optimal lower bound. Furthermore, the case of sorting all subset sums of a vector is considered:

Let n=2m. Then every decision tree for inputs from Rn that determines the ordertype of sequences of the form \((\mathop \Sigma \limits_{r \in S} w_r |S \subset \{ 1,...m\} ),\overline w \in R^m\), has depth ≥2⌊m/3⌋=Θ(n1/3).

This lower bound is exponentially larger than those previously known for this problem. It may be viewed as another step in an attempt to analyze how hard the Rn-version of the NP-complete Knapsack problem is on structured computational models like the linear decision tree.

Written under partial support by NSF-grant DCR-8504247.

This work is based on a part of the author's Ph.D.-thesis at the University of Illinois at Chicago.

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. M. Dietzfelbinger and W. Maass, Two lower bound arguments with "inaccessible" numbers, in "Structure in Complexity Theory", Proceedings, A. Selman (ed.), pp. 161–183, Lecture Notes in Computer Science 223, Springer-Verlag, Berlin, 1986.

    Google Scholar 

  2. D. P. Dobkin and R. J. Lipton, On the complexity of computations under varying sets of primitives, J. Comput. System Sci. 18 (1979), 86–91.

    Article  Google Scholar 

  3. M. L. Fredman, How good is the information theory bound in sorting? Theor. Comp. Sci. 1 (1976), 355–361.

    Google Scholar 

  4. L. H. Harper, T. H. Payne, J. E. Savage, and E. Strauss, Sorting X+Y, Comm. Assoc. Comput. Mach. 18 (1975), 347–349.

    Google Scholar 

  5. J. Kahn and M. Saks, Balancing poset extensions, Order 1 (1984), 113–126.

    Google Scholar 

  6. F. Meyer auf der Heide, A polynomial linear search algorithm for the n-dimensional knapsack problem, J. Assoc. Comput. Mach. 31 (1984), 668–676.

    Google Scholar 

  7. J. Stoer and C. Witzgall, "Convexity and Optimization in Finite Dimensions I", Springer-Verlag, New York, 1970.

    Google Scholar 

  8. E. Ukkonen, Exponential lower bounds for some NP-complete problems in a restricted linear decision tree model, BIT 23 (1983), 181–192.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Thomas Ottmann

Rights and permissions

Reprints and permissions

Copyright information

© 1987 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Dietzfelbinger, M. (1987). Lower bounds for sorting of sums. In: Ottmann, T. (eds) Automata, Languages and Programming. ICALP 1987. Lecture Notes in Computer Science, vol 267. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-18088-5_39

Download citation

  • DOI: https://doi.org/10.1007/3-540-18088-5_39

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-18088-3

  • Online ISBN: 978-3-540-47747-1

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics