Two-way rounding
Donald E. Knuth
Abstract
Given n real numbers 0≤ x1,...,xn<1 and a permutation~σ of \1,...,n\, we can always find 1,...,n∈\0,1\ so that the partial sums 1+... +k and σ1+... +σk differ from the unrounded values x1+... + xk and xσ1+... +xσ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.
Create a lesson
Related papers
A Network Simplex Framework For Discrete Unbalanced Optimal Transport
Gaetano Agazzotti, Antonin Chambolle, Clément W. Royer
Warm-IP: A Path-Following ADMM Warm Start for Interior-Point Quadratic Programming
Babak Aslani, Mojtaba Tefagh, Gourav Jhanwar et al.
Adaptive Variance Reduction without Knowing Oracle Smoothness
Wei Jiang, Yibo Wang, Zechao Li
Optimal Algorithms for Nonsmooth Nonconvex Stochastic Optimization with Constraints
Gon Buzaglo, Guy Kornowski
Geometry-Aware Multi-Objective Optimization: Norm-Constrained Oracles with Entropic Weight Updates
El Mahdi Chayti, Alireza Mirrokni, Martin Jaggi
Estimation, Sensitivity Analysis, and Optimization of Distortion Risk Measures via Simulation
Hao Cao, Jian-Qiang Hu, Jiaqiao Hu