Thursday, October 11, 2007

Problem 10

Given sequence: r1, r2, ..., rk such that: 0< ri <=1 and sum( ri ) <= n . Group ri's into groups of zize at most 1. How many groups will you use?

2 comments:

Bico said...

k groups.

Thanh-Nhan Nguyen said...

when ri's are very small, let say ri = 0.000001, k = 1000000. Clearly, just 1 group is enough. In this case, using k group is not efficient. :) Good try!