The Number of 1’s in Binary Integers: Bounds and Extremal Properties
Author:
- M. D. McIlroyMMM. D. McIlroy
- 1 December 1974
- journal article
- Published by Society for Industrial & Applied Mathematics (SIAM) in SIAM Journal on Computing
- Vol. 3 (4) , 255-261
Abstract
Closed formulas provide tight bounds for $G(n)$, the total number of 1’s in the binary representations of integers less than n. This function satisfies an extremal recurrence, which gives the maximum cost of a process that creates a set of n objects by repeatedly merging pairs of smaller sets, starting from n singletons, incurring a cost equal to the size of the smaller set at each merger: \[ G(n) = \max\limits_{1 \leqq i \leqq n /2} [i + G(i) + G(n - i)], \] where $G(1) = 0$. The set of pairs $(i,n - i)$ at which the maximum is attained has an interesting structure.
Keywords
This publication has 6 references indexed in Scilit:
- Set Merging AlgorithmsSIAM Journal on Computing, 1973
- A sorting functionDuke Mathematical Journal, 1971
- Some Theorems on SortingSIAM Journal on Applied Mathematics, 1969
- A Linear Search ProblemSIAM Review, 1964
- Games of Identification or ConvergenceSIAM Review, 1962
- On a Problem in Additive Number TheoryAnnals of Mathematics, 1948