Problem Definition

  • Given distinct real numbers
  • Want to partition there numbers into pairs (of two numbers each) which minimises the maximum sum of two numbers in a pair

Greedy Algorithm

  • Sort the numbers in increasing order, say
  • Then our desired ordering is one which pairs with for each

Proof

  • We claim that can be paired with
  • Suppose is paired with and is paired with
  • Note that and
  • Hence,
  • Swap and : so the pairs are now and
    • because
    • because