Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
47 views2 pages

1D1 Difference Problem

1D1 Difference Problem1D1 Difference Problem1D1 Difference Problem1D1 Difference Problem1D1 Difference Problem1D1 Difference Problem

Uploaded by

quycoctu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views2 pages

1D1 Difference Problem

1D1 Difference Problem1D1 Difference Problem1D1 Difference Problem1D1 Difference Problem1D1 Difference Problem1D1 Difference Problem

Uploaded by

quycoctu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

An optimization problem

 Given a collection of numbers, partition them into


two groups such that the difference in the sums
is as small as possible.

 Example: 7, 10, 13, 17, 20, 22


These numbers sum to 89

I can split them into {7, 10, 13, 17} sum is 47


{20, 22} sum is 42
Difference = 5.
7 10
Can we do better?
17 13
20 22
1
44 45
2

You might also like