Luminary Research Archive
Luminary Research ArchiveIndependent scholarship
Explore
Luminary Portal

Exact bit and attempt tradeoffs for a bounded inversion recycler

Original PDF · First-page preview

Loading original first page…

Abstract

Randomness recycling, as developed by Draper and Saad (Efficient online random sampling via randomness recycling, SODA 2026), reduces the number of fair random bits that exact sampling consumes, but a controller that saves bits may need more sampling attempts. We pose and solve the resulting two-resource control problem for their inversion recycler with a finite cap on the refilled range: minimize the long-run expected cost per completed output, counting new bits plus a price for each attempt, over all controllers that observe the range but not the hidden uniform integer. For every positive integer weight vector with at least two categories and every cap at least twice the total weight minus two, a stationary deterministic controller is optimal at every price, and the whole price frontier is a concave piecewise-affine function with rational breakpoints that an exact finite algorithm constructs together with certificates. The certificates are vector gain and bias potentials, obtained by discounting by completed outputs, so they allow several recurrent classes with different gains. For cap 255 and the target laws (3/4, 1/4) and (1/3, 1/3, 1/3), the frontiers have three and two affine branches with explicit rational breakpoints. Range-dependent controllers use strictly fewer bits than every feasible fixed threshold, while specified thresholds become exactly optimal once attempts are priced high enough; the bit savings at this cap are below 0.06 percent. Exact rational certificates cover all prices and all thresholds, and an independent program reproduces the state spaces, threshold rates, frontiers and breakpoints.

Read the full paper in the original PDF.

Edition files

Available editions

  1. Edition 3 · 2026-12-03
  2. Edition 2 · 2026-12-02
  3. Edition 1 · 2026-12-02

Research details

Subjects
Computer Science & Software Systems · Algorithms and Complexity
Keywords
exact sampling, randomness recycling, refill control, Markov decision processes, average cost, rational certificates
Manuscript date
2026-12-03
DOI
10.5281/zenodo.24801031
Reader reuse
CC BY 4.0

Anyone may share and adapt this work, including commercially, if they credit the authors.

Scope

Exact optimal bit-and-attempt price frontiers, with rational certificates and a terminating synthesis algorithm, for the Draper-Saad inversion recycler with a capped range.

Disclosures

OpenAI's ChatGPT and Anthropic's Claude assisted with literature search, proof exploration, computation and manuscript preparation. The author reviewed and verified the mathematics and takes full responsibility for the content.

Reproduction

The 41-file package contains the complete 13-page paper, editable Markdown/TeX, exact certificates, independent standard-library verifiers, synthesis implementation, source ledger, license, citation metadata and SHA-256 manifest. Six general-synthesis fixtures enumerate 1772 policies; 99 affine vector checks pass. Retained all-price, cap and threshold suites pass. All pages and clean build were reviewed, and a separate extracted-package audit verified complete member coverage, identities, dependencies and receipt bindings.