Computing Reviews
Today's Issue Hot Topics Search Browse Recommended My Account Log In
Review Help
Search
A simplified derivation of timing complexity lower bounds for sorting by comparisons
Schellekens M., Agarwal R., Popovici E., Man K. Nordic Journal of Computing13 (4):340-346,2006.Type:Article
Date Reviewed: Feb 28 2008

A comparison-based sorting of n numbers needs a minimum of roughly n log n operations. This paper presents a new derivation for this famous computer science fact. While, for the worst case, a straightforward proof utilizes ubiquitous binary trees, for the average case multivariable calculus is used. Since this topic is no longer a standard part of undergraduate computer science courses, the authors consider it worthwhile to introduce a proof without relying on advanced calculus.

In the spirit of discrete mathematics, the given proof employs Kraft’s inequality for the path lengths in a binary tree. Another tool is the Jensen inequality: the value of a convex function at a weighted linear combination of points is bounded by the same combination of the function values at these points. Highlighting different mathematical techniques, this treatment can definitely supplement academic programs.

Furthermore, it is instructional to expound lower bounds from the information-theoretical standpoint. Consider a reversal of a sorting algorithm, which produces input permutations from the ordered output. Apparently, with X comparisons, the variety of binary answers, 2X , cannot be less than the variety of all possible permutations, n. Using Stirling’s approximation and taking logarithms yields the desired result: X = O(n log n).

Reviewer:  Simon Berkovich Review #: CR135311 (0901-0077)
Bookmark and Share
  Reviewer Selected
 
 
Sorting And Searching (F.2.2 ... )
 
 
Convex Programming (G.1.6 ... )
 
 
Optimization (G.1.6 )
 
Would you recommend this review?
yes
no
Other reviews under "Sorting And Searching": Date
Binary search trees of almost optimal height
Anderson A., Icking C., Klein R., Ottmann T. (ed) Acta Informatica 28(2): 165-178, 1990. Type: Article
May 1 1992
More nearly optimal algorithms for unbounded searching, part II
Reingold E., Shen X. SIAM Journal on Computing 20(1): 184-208, 1991. Type: Article
Apr 1 1992
A simple linear-time algorithm for in situ merging
Mannila H., Ukkonen E. Information Processing Letters 18(4): 203-208, 1984. Type: Article
Feb 1 1985
more...

E-Mail This Printer-Friendly
Send Your Comments
Contact Us
Reproduction in whole or in part without permission is prohibited.   Copyright 1999-2024 ThinkLoud®
Terms of Use
| Privacy Policy