A Speed Bin Is a Search Key: Exact Expected Test Counts for Discrete Fmax and Vmin Binning from Optimal Binary Search Trees, the Gap from Index Binary Search and Top-Down Linear Search under Lognormal Speed Distributions, Cost-Biased Trees when Tests
Production speed and voltage binning ask, for each die, which of a discrete ladder of frequencies or supplies is the highest (or lowest) that the die still passes. Under the usual monotone model a single pass/fail test at a ladder threshold cuts the remaining feasible bins into a lower interval and an upper interval, so every adaptive binning plan is a binary search tree on an ordered set of keys. When the population histogram over bins is known, the tree that minimises the expected number of tests is exactly Knuth's optimal binary search tree, computable in quadratic time, and the Shannon entropy of the histogram is a lower bound. I record this equivalence, verify the dynamic program against exhaustive enumeration on every random histogram of up to six bins, and then measure, in CPU simulations of a simplified lognormal Fmax model, how much the optimum saves against the two plans used in practice: index-balanced binary search and top-down linear search from the most valuable bin. With sixteen thresholds (seventeen bins) and a nominal dispersion the optimum needs 3.66 tests per die against 4.03 for index binary search and 8.83 for top-down linear search, a saving of 9.2% and 58.6% respectively, and sits only 0.04 tests above the entropy; with a tight distribution the saving against index binary search rises to 29.9%, while with a wide one it falls to 2.1%. An analogous Vmin ladder with twelve thresholds shows a 15.4% saving against index binary search. When test costs are unequal the natural extension of the recurrence applies. On two synthetic cost profiles it cuts expected cost by 37.0% and 37.8% relative to the equal-cost tree re-scored under the same costs; on monotone PLL-like costs that grow with frequency, for the same lognormal population, the equal-cost tree is already optimal. Joint voltage–frequency binning, where the feasible set is a monotone staircase rather than an interval, is not an ordinary search tree and is left open. Concept and methods paper. Numerical illustrations were produced by the author on a CPU with numpy, using a simplified model with illustrative parameters; they illustrate the method and are not device measurements. Any other numerical values quoted come from the cited sources. Self-drawn figures (scripts/make_figs.py). AI-assisted drafting; the author is responsible for the content.
Authors
- I-Wei Tseng
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-03
- DOI
- https://doi.org/10.5281/zenodo.24783067
- Primary Topic
- VLSI and Analog Circuit Testing
- Type
- preprint