2-WAY ROUNDING

Authors
Citation
De. Knuth, 2-WAY ROUNDING, SIAM journal on discrete mathematics, 8(2), 1995, pp. 281-290
Citations number
11
Categorie Soggetti
Mathematics,Mathematics
ISSN journal
08954801
Volume
8
Issue
2
Year of publication
1995
Pages
281 - 290
Database
ISI
SICI code
0895-4801(1995)8:2<281:2R>2.0.ZU;2-H
Abstract
Given n real numbers 0 less than or equal to x(1),...,x(n) < 1 and a p ermutation sigma of {1,...,n}, we can always find ($) over bar x(1),.. .,($) over bar x(n) is an element of {0,1} so that the partial sums ($ ) over bar x(1) +...+ ($) over bar x(k) and ($) over bar x(sigma 1) +. ..+ x(sigma k) by at most n/(n+1), for 1 less than or equal to k less than or equal to n. The latter bound is best possible. The proof uses an elementary argument about flows in a certain network, and leads to a simple algorithm that finds an optimum way to round.