Where’s the Winner? Max-Finding and Sorting with Metric Costs

  • Anupam Gupta
  • Amit Kumar
Conference paper

DOI: 10.1007/11538462_7

Part of the Lecture Notes in Computer Science book series (LNCS, volume 3624)
Cite this paper as:
Gupta A., Kumar A. (2005) Where’s the Winner? Max-Finding and Sorting with Metric Costs. In: Chekuri C., Jansen K., Rolim J.D.P., Trevisan L. (eds) Approximation, Randomization and Combinatorial Optimization. Algorithms and Techniques. Lecture Notes in Computer Science, vol 3624. Springer, Berlin, Heidelberg


Traditionally, a fundamental assumption in evaluating the performance of algorithms for sorting and selection has been that comparing any two elements costs one unit (of time, work, etc.); the goal of an algorithm is to minimize the total cost incurred. However, a body of recent work has attempted to find ways to weaken this assumption – in particular, new algorithms have been given for these basic problems of searching, sorting and selection, when comparisons between different pairs of elements have different associated costs.

In this paper, we further these investigations, and address the questions of max-finding and sorting when the comparison costs form a metric; i.e., the comparison costs cuv respect the triangle inequality cuv + cvwcuw for all input elements u,v and w. We give the first results for these problems – specifically, we present

  • An O(log n)-competitive algorithm for max-finding on general metrics, and we improve on this result to obtain an O(1)-competitive algorithm for the max-finding problem in constant dimensional spaces.

  • An O(log2n)-competitive algorithm for sorting in general metric spaces.

Our main technique for max-finding is to run two copies of a simple natural online algorithm (that costs too much when run by itself) in parallel. By judiciously exchanging information between the two copies, we can bound the cost incurred by the algorithm; we believe that this technique may have other applications to online algorithms.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer-Verlag Berlin Heidelberg 2005

Authors and Affiliations

  • Anupam Gupta
    • 1
  • Amit Kumar
    • 2
  1. 1.Dept. of Computer ScienceCarnegie Mellon UniversityPittsburghUSA
  2. 2.Dept. of Computer Science & EngineeringIndian Institute of TechnologyHauz Khas, New DelhiIndia

Personalised recommendations