Question: S = x1y1 + x2y2 + + xnyn, where x1, x2, . . . , xn and y1, y2, . . . ,
a) Show that S takes its maximum value over all orderings of the two sequences when both sequences are sorted (so that the elements in each sequence are in nondecreasing order).
b) Show that S takes its minimum value over all orderings of the two sequences when one sequence is sorted into nondecreasing order and the other is sorted into nonincreasing order.
Step by Step Solution
3.38 Rating (167 Votes )
There are 3 Steps involved in it
a Without loss of generality we may assume that the x sequence is already sorted into nondecreasing ... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
923-M-C-M-S (1381).docx
120 KBs Word File
