grumpygirl0720
grumpygirl0720
17.04.2020 • 
Mathematics

4. A sequence of n real numbers, where n is even, is given. Develop an algorithm to partition the sequence into n/2 pairs in the following way. We compute the sum of two numbers of each pair giving n/2 sums, and then find the maximum sum. The algorithm should minimize this maximum sum. What is the complexity of the algorithm?

Solved
Show answers

Ask an AI advisor a question