Papers
Topics
Authors
Recent
Search
2000 character limit reached

Deterministic Optimal Rounding

Updated 29 May 2026
  • Deterministic optimal rounding is a process that converts real values to integers while minimizing Lp error and strictly satisfying global sum constraints.
  • It employs a greedy selection approach, as in the ORIC algorithm, by rounding up the K largest fractional parts to achieve the optimal solution.
  • This method is pivotal in applications such as integer programming, apportionment, and distributed algorithms, delivering efficient, non-randomized precision.

Deterministic optimal rounding refers to the process of converting a set of real values, typically subject to global constraints (such as integer-sum or feasibility in an integer program), into integers in a manner that minimizes a well-specified objective—most often an error norm—while abiding by the constraints. Unlike traditional threshold or stochastic approaches, deterministic optimal rounding guarantees both constraint satisfaction and minimization of overall rounding error via an efficiently computable, non-random procedure, and occupies a central role in numerical optimization, combinatorial optimization, and the theory of pseudodeterministic algorithms.

1. Problem Definition: Optimal Rounding under Integer Constraints

Let y=(y1,,yN)RNy = (y_1, \dots, y_N) \in \mathbb{R}^N satisfy a global integer constraint i=1Nyi=SZ\sum_{i=1}^N y_i = S \in \mathbb{Z}. For any p>1p > 1, the deterministic optimal rounding problem seeks

x=argminxZN,ixi=Si=1Nxiyipx^* = \arg\min_{x \in \mathbb{Z}^N,\, \sum_i x_i = S} \sum_{i=1}^N |x_i - y_i|^p

That is, find integer vectors xx with ixi=S\sum_i x_i = S minimizing the LpL^p-norm error to yy. The constrained LpL^p-error is denoted

Vp(y)=minxZN,xi=Si=1NxiyipV_p(y) = \min_{x\in\mathbb{Z}^N,\, \sum x_i=S} \sum_{i=1}^N |x_i-y_i|^p

A key structural result is that each i=1Nyi=SZ\sum_{i=1}^N y_i = S \in \mathbb{Z}0, reducing the solution space to subsets of size i=1Nyi=SZ\sum_{i=1}^N y_i = S \in \mathbb{Z}1 (the integer shortfall) (Cont et al., 2014). The problem is thus combinatorial but amenable to efficient solution.

2. Structural Insights and the ORIC Algorithm

The main insight (Proposition 1 in (Cont et al., 2014)) is that in any minimizer, each coordinate is rounded either up or down. With i=1Nyi=SZ\sum_{i=1}^N y_i = S \in \mathbb{Z}2, let i=1Nyi=SZ\sum_{i=1}^N y_i = S \in \mathbb{Z}3, and set i=1Nyi=SZ\sum_{i=1}^N y_i = S \in \mathbb{Z}4. The optimal integer vector rounds i=1Nyi=SZ\sum_{i=1}^N y_i = S \in \mathbb{Z}5 coordinates up to i=1Nyi=SZ\sum_{i=1}^N y_i = S \in \mathbb{Z}6 and the rest down. To minimize the i=1Nyi=SZ\sum_{i=1}^N y_i = S \in \mathbb{Z}7 error, select the i=1Nyi=SZ\sum_{i=1}^N y_i = S \in \mathbb{Z}8 largest i=1Nyi=SZ\sum_{i=1}^N y_i = S \in \mathbb{Z}9 to round up.

This yields the Optimal Rounding under Integer Constraints (ORIC) algorithm:

  1. Compute p>1p > 10, p>1p > 11
  2. Compute p>1p > 12
  3. Sort the p>1p > 13 in descending order (break ties by p>1p > 14 descending for a canonical minimizer)
  4. Assign p>1p > 15 for the top p>1p > 16 indices and p>1p > 17 for the rest
  5. Output p>1p > 18 with p>1p > 19, guaranteeing minimum x=argminxZN,ixi=Si=1Nxiyipx^* = \arg\min_{x \in \mathbb{Z}^N,\, \sum_i x_i = S} \sum_{i=1}^N |x_i - y_i|^p0 error

The entire procedure runs in x=argminxZN,ixi=Si=1Nxiyipx^* = \arg\min_{x \in \mathbb{Z}^N,\, \sum_i x_i = S} \sum_{i=1}^N |x_i - y_i|^p1 time due to the sort step. The algorithm is exact, deterministic, and its solution is unique minimizing the x=argminxZN,ixi=Si=1Nxiyipx^* = \arg\min_{x \in \mathbb{Z}^N,\, \sum_i x_i = S} \sum_{i=1}^N |x_i - y_i|^p2 error among all feasible integer vectors (Cont et al., 2014).

3. Comparison to Stochastic and Heuristic Rounding

  • Classical threshold rounding might round x=argminxZN,ixi=Si=1Nxiyipx^* = \arg\min_{x \in \mathbb{Z}^N,\, \sum_i x_i = S} \sum_{i=1}^N |x_i - y_i|^p3 up if x=argminxZN,ixi=Si=1Nxiyipx^* = \arg\min_{x \in \mathbb{Z}^N,\, \sum_i x_i = S} \sum_{i=1}^N |x_i - y_i|^p4 for some fixed x=argminxZN,ixi=Si=1Nxiyipx^* = \arg\min_{x \in \mathbb{Z}^N,\, \sum_i x_i = S} \sum_{i=1}^N |x_i - y_i|^p5, but in general this fails to achieve the sum constraint for arbitrary x=argminxZN,ixi=Si=1Nxiyipx^* = \arg\min_{x \in \mathbb{Z}^N,\, \sum_i x_i = S} \sum_{i=1}^N |x_i - y_i|^p6.
  • Randomized rounding independently rounds x=argminxZN,ixi=Si=1Nxiyipx^* = \arg\min_{x \in \mathbb{Z}^N,\, \sum_i x_i = S} \sum_{i=1}^N |x_i - y_i|^p7 up with probability x=argminxZN,ixi=Si=1Nxiyipx^* = \arg\min_{x \in \mathbb{Z}^N,\, \sum_i x_i = S} \sum_{i=1}^N |x_i - y_i|^p8, ensuring expectation but yielding only a probabilistic match to the sum and typically yielding biased estimators of the optimal x=argminxZN,ixi=Si=1Nxiyipx^* = \arg\min_{x \in \mathbb{Z}^N,\, \sum_i x_i = S} \sum_{i=1}^N |x_i - y_i|^p9.
  • In contrast, deterministic optimal rounding produces the unique unbiased minimizer of total xx0 error and always satisfies the sum constraint (Cont et al., 2014).

The following table captures key distinctions:

Scheme Sum-Constraint Satisfied Minimizes xx1 error Bias Complexity
Threshold No (in general) No Yes (to xx2) xx3
Randomized In expectation No Yes (in mean) xx4
Deterministic Optimal (ORIC) Always Yes No (to xx5), but unbiased among minimizers xx6

4. Relationship to High-Dimensional and Geometric Rounding

Deterministic rounding admits a geometric interpretation: For xx7, rounding can be viewed as a partitioning of xx8 (“secluded partitions”) such that no small xx9-ball intersects too many cells. A ixi=S\sum_i x_i = S0-secluded partition associates every ixi=S\sum_i x_i = S1 to a cell (rounded value), so any ball of radius ixi=S\sum_i x_i = S2 hits at most ixi=S\sum_i x_i = S3 values. Explicit, efficiently computable ixi=S\sum_i x_i = S4-secluded partitions exist and are optimal up to constants (Woude et al., 2023, Woude et al., 2022). The design of deterministic rounding schemes in high dimension is therefore closely tied to geometric bounds on partitions.

Lower bounds show any deterministic, bounded-diameter rounding scheme with ixi=S\sum_i x_i = S5 outputs must have granularity ixi=S\sum_i x_i = S6. Constructions using reclusive matrices yield matching upper bounds (Woude et al., 2022).

5. Algorithmic Variants and Extensions

  • Generalization to arbitrary ixi=S\sum_i x_i = S7: The ORIC approach relies on convexity and extends to any strictly convex norm; the greedy selection of largest ixi=S\sum_i x_i = S8 remains optimal (Cont et al., 2014).
  • Ties in ixi=S\sum_i x_i = S9: Any subset among tied LpL^p0 yields the same LpL^p1 error; for a canonical (e.g., minimum relative-error) output, sort also by LpL^p2 decreasing.
  • Edge cases: When LpL^p3 is already integer, LpL^p4 and the original vector is optimal.

Other extensions appear in high-dimensional rounding for pseudodeterministic or distributed settings (see (Faour et al., 2022, Bhattacharya et al., 2021)).

6. Applications and Context

Integer Programming: For solving relaxed LPs and rounding back to feasible integral points while controlling LpL^p5 error, deterministic optimal rounding provides a critical rounding step without sacrificing the global constraint.

Apportionment and Resource Allocation: Problems such as apportioning seats by proportional votes or distributing budget subject to integer constraints are solved optimally with ORIC (recovering the Hare–Niemeyer largest-remainders rule, but now with LpL^p6-optimality) (Cont et al., 2014).

Statistical Rounding: Used in financial settings for rounding floating-point numbers to fixed denominators (e.g., cents) while maintaining overall totals and accuracy.

Distributed and Dynamic Graph Algorithms: Deterministic rounding underpins distributed algorithms for matching, independent sets, and set cover, with polylogarithmic round-complexity matching randomized methods in several regimes (Fischer, 2017, Faour et al., 2022, Bhattacharya et al., 2021, Bhattacharya et al., 2023).

High-Dimensional Clustering and Pseudodeterminism: Geometric interpretations lead to derandomization tradeoffs and bounds for pseudodeterministic algorithms in estimation and learning (Woude et al., 2023, Woude et al., 2022).

7. Limitations and Theoretical Barriers

The tradeoff between granularity and number of outputs is inherent: No deterministic rounding scheme with output degree LpL^p7 and cell diameter LpL^p8 can ensure any LpL^p9-ball of radius yy0 meets fewer than yy1 outputs (Woude et al., 2023). For yy2 polynomial in yy3, yy4. In the integer-sum constraint setting, deterministic optimal rounding is subject to these lower bounds when generalized to high dimension.

Randomized or pseudodeterministic schemes can achieve coarser granularity but only in expectation and with increased complexity or with non-deterministic output. In contrast, deterministic optimal rounding yields tight yy5-error minimization and is computationally efficient, but faces hard lower bounds on output granularity and degree in high dimensions (Woude et al., 2023, Woude et al., 2022).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Deterministic Optimal Rounding.