Two-way rounding
Cite this paper
×
@misc{knuth1995twoway,
title = {Two-way rounding},
author = {Donald E. Knuth},
year = {1995},
eprint = {math/9504228},
archivePrefix = {arXiv},
primaryClass = {math.OC},
url = {https://arxiv.org/abs/math/9504228}
}
Knuth, D. E. (1995). Two-way rounding [Preprint]. arXiv. https://doi.org/10.48550/arXiv.math/9504228
KNUTH DE. Two-way rounding[EB/OL]. (1995-04-01)[2026-11-30]. https://arxiv.org/abs/math/9504228.
Abstract
Given n real numbers 0<= x_1,...,x_n<1 and a permutation sigma of {1,...,n}, we can always find xbar_1,...,xbar_nin{0,1} so that the partial sums xbar_1+... +xbar_k and xbar_sigma 1+... +xbar_sigma k differ from the unrounded values x_1+... + x_k and x_sigma 1+... +x_sigma k by at most n/(n+1), for 1<= k<= 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.
Post #1 · the paper