Q12b
NATMarks unknownConsider the following problem. Given positive integers it is required to partition them in to two parts and such that, is minimised Consider a greedy algorithm for solving this problem. The numbers are ordered so that and at step, is placed in that part whose sum in smaller at that step. Give an example with for which the solution produced by the greedy algorithm is not optimal.
Sign in to save attempts.
Loading…