Finding the median under IOI conditions

  • Authors:
  • Gyula Horváth;Tom Verhoeff

  • Affiliations:
  • University of Szeged, Department of Informatics, H-6701 Szeged, P.O. Box 652, Hungary;Eindhoven University of Technology, Faculty of Mathematics and Computing Science, Den Dolech 2, NL-5612 AZ, Eindhoven, The Netherlands

  • Venue:
  • Informatics in education
  • Year:
  • 2002

Quantified Score

Hi-index 0.00

Visualization

Abstract

We explain the ingredients of the International Olympiad in Informatics (IOI), which is a challenging competition for high-school students focusing on algorithmic problem solving. We treat in detail the MEDIAN task, which the authors created for IOI 2000: Given an odd number of objects, all of distinct strength, develop an efficient algorithm to determine the object of median strength, using as only operation a function that returns the median of three objects. This problem is easy to formulate and understand. It is related to well-studied standard computing problems, but further analysis of this problem leads to interesting algorithms and variations of the heap data structure. We finish by pointing out some open problems related to this task and we invite you to contribute nice competition tasks for future IOIs.