Abstract ruler in which some of the distance marks may be missing
A sparse ruler is a ruler in which some of the distance marks may be missing. More abstractly, a sparse ruler of length
with
marks is a sequence of integers
where
. The marks
and
correspond to the ends of the ruler. In order to measure the distance
, with
there must be marks
and
such that
.
A complete sparse ruler allows one to measure any integer distance up to its full length. A complete sparse ruler is called minimal if there is no complete sparse ruler of length
with
marks. In other words, if any of the marks is removed one can no longer measure all of the distances, even if the marks could be rearranged. A complete sparse ruler is called maximal if there is no complete sparse ruler of greater length with
marks. Complete minimal rulers of length 135 and 136 require one more mark than those of lengths 124-134, 137 and 138. A sparse ruler is called optimal if it is both minimal and maximal.
Since the number of distinct pairs of marks is
, this is an upper bound on the length
of any maximal sparse ruler with
marks. This upper bound can be achieved only for 2, 3 or 4 marks. For larger numbers of marks, the difference between the optimal length and the bound grows gradually, and unevenly.
For example, for 6 marks the upper bound is 15, but the maximal length is 13. There are 3 different configurations of sparse rulers of length 13 with 6 marks. One is {0, 1, 2, 6, 10, 13}. To measure a length of 7, say, with this ruler one would take the distance between the marks at 6 and 13.
A Golomb ruler is a sparse ruler that requires all of the differences
be distinct. In general, a Golomb ruler with
marks will be considerably longer than an optimal sparse ruler with
marks, since
is a lower bound for the length of a Golomb ruler. A long Golomb ruler will have gaps, that is, it will have distances which it cannot measure. For example, the optimal Golomb ruler {0, 1, 4, 10, 12, 17} has length 17, but cannot measure lengths of 14 or 15.
Wichmann rulers
Many optimal rulers are of the form
where
represents
segments of length
. Thus, if
and
, then
has (in order):
1 segment of length 1,
1 segment of length 2,
1 segment of length 3,
2 segments of length 7,
2 segments of length 4,
1 segment of length 1.
A minor variant is
, with a length one less than
.
gives the ruler {0, 1, 3, 6, 13, 20, 24, 28, 29}, while
gives {0, 1, 3, 6, 9, 16, 23, 27, 28}. The length of a Wichmann ruler is
and the number of marks is
. Note that not all Wichmann rulers are optimal and not all optimal rulers can be generated this way. None of the optimal rulers of length 1, 13, 17, 23 and 58 follow this pattern. That sequence ends with 58 if the Optimal Ruler Conjecture of Peter Luschny is correct. The conjecture is known to be true to length 213.[1]
Asymptotics
For every
let
be the smallest number of marks for a ruler of length
. For example,
. The asymptotic of the function
was studied by Erdos, Gal[2] (1948) and continued by Leech[3] (1956) who proved that the limit
exists and is lower and upper bounded by
![{\displaystyle 2+{\tfrac {4}{3\pi }}=2.424...<2.434...=\max _{0<\theta <2\pi }2(1-{\tfrac {\sin(\theta )}{\theta }})\leq \lim _{n\to \infty }{\frac {l(n)^{2}}{n}}\leq {\frac {375}{112}}=3.348...}](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Much better upper bounds exist for
-perfect rulers. Those are subsets
of
such that each positive number
can be written as a difference
for some
. For every number
let
be the smallest cardinality of an
-perfect ruler. It is clear that
. The asymptotics of the sequence
was studied by Redei, Renyi[4] (1949) and then by Leech (1956) and Golay[5] (1972). Due to their efforts the following upper and lower bounds were obtained:
![{\displaystyle \max _{0<\theta <2\pi }2(1-{\tfrac {\sin(\theta )}{\theta }})\leq \lim _{n\to \infty }{\frac {k(n)^{2}}{n}}=\inf _{n\in \mathbb {N} }{\frac {k(n)^{2}}{n}}\leq {\frac {128^{2}}{6166}}=2.6571...<{\frac {8}{3}}.}](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Define the excess as
. In 2020, Pegg proved by construction that
≤ 1 for all lengths
.[6] If the Optimal Ruler Conjecture is true, then
for all
, leading to the ″dark mills″ pattern when arranged in columns, OEIS A326499.[7] All of the windows in the dark mills pattern are Wichmann rulers. None of the best known sparse rulers
are proven minimal as of Sep 2020. Many of the current best known
constructions for
are believed to non-minimal, especially the "cloud" values.
Fig 1. Light numbers +0, dark numbers +1 for the minimal mark excess pattern in a sparse ruler. All minimal values to length 213 are proven.
Fig 2. "Dark mills on a cloudy day" -- N. J. A. Sloane. Excess pattern for sparse rulers, best known values for L>213.
Examples
The following are examples of minimal sparse rulers. Optimal rulers are highlighted. When there are too many to list, not all are included. Mirror images are not shown.
Incomplete sparse rulers
A few incomplete rulers can fully measure up to a longer distance than an optimal sparse ruler with the same number of marks.
,
,
, and
can each measure up to 18, while an optimal sparse ruler with 7 marks can measure only up to 17. The table below lists these rulers, up to rulers with 13 marks. Mirror images are not shown. Rulers that can fully measure up to a longer distance than any shorter ruler with the same number of marks are highlighted.
See also
References
- ^ Robison, A. D. Parallel Computation of Sparse Rulers. Intel Developer Zone. https://web.archive.org/web/20210330141047/https://software.intel.com/content/www/us/en/develop/articles/parallel-computation-of-sparse-rulers.html
- ^ Erdös, P.; Gál, I. S. On the representation of
by differences. Nederl. Akad. Wetensch., Proc. 51 (1948) 1155--1158 = Indagationes Math. 10, 379--382 (1949) - ^ Leech, John. On the representation of
by differences. J. London Math. Soc. 31 (1956), 160--169 - ^ Redei, L.; Ren′i, A. On the representation of the numbers
by means of differences. (Russian) Mat. Sbornik N.S. 24(66), (1949). 385--389. - ^ Golay, Marcel J. E. Notes on the representation of
by differences. J. London Math. Soc. (2) 4 (1972), 729--734. - ^ Pegg, E. Hitting All the Marks: Exploring New Bounds for Sparse Rulers and a Wolfram Language Proof. https://blog.wolfram.com/2020/02/12/hitting-all-the-marks-exploring-new-bounds-for-sparse-rulers-and-a-wolfram-language-proof/
- ^ Sloane, N. J. A. (ed.). "Sequence A326499". The On-Line Encyclopedia of Integer Sequences. OEIS Foundation.
- http://www.luschny.de/math/rulers/prulers.html
- http://oeis.org/wiki/Sparse_ruler/User:Peter_Luschny/PerfectRulers
- http://www.iwriteiam.nl/Ha_sparse_rulers.html
- http://www.maa.org/editorial/mathgames/mathgames_11_15_04.html
- http://www.contestcen.com/scale.htm
- http://members.cox.net/wnmyers/sparse_rulers.txt