TOPICS
Search

Sparse Ruler


A sparse ruler is a ruler that has integer length n and the minimal k marks allowing measurement of all distances 1, 2, 3, 4, ... up to n (possibly with repetition). They are therefore very similar to the type of ruler considered by Gardner (1985, pp. 65-67 and 261-262).

Consider a sparse ruler of length 13. Clearly, five marks wouldn't be enough since there are at most (5; 2)=10 differences between possible marks. On the other hand, six marks is enough, but because that gives (6; 2)=15 differences, there must be two repeats. An example of such a set of marks is {0, 1, 6, 9, 11, and 13}, which gives all distances up to 13, but includes distance 2 and 5 twice each (11-9 and 13-11; 6-1 and 11-6). In fact, no perfect sparse ruler, i.e., a sparse ruler that uniquely measures all distances up to its length, exists for five or more marks (Golomb 1972; Gardner 1983, p. 154).

Sparse rulers arise in the representation of differences problem of Erdős and Gál (1949). The problem of finding a sparse ruler of a given length was solved partially by Leech (1956) and mostly by Wichmann (1963). However, the power of Wichmann's solution wasn't realized until a modern computer analysis by Robinson (2014) and Pegg (2020).

An example sparse ruler can be given by the marks {0, 1, 2, 3, 27, 32, 36, 40, 44, 48, 52, 55, 58}, with differences between marks {1, 1, 1, 24, 5, 4, 4, 4, 4, 4, 3, 3}. A ruler like this having repeated values has a shortened form written as 1^324^15^14^53^2. This notation leads to the major W(r,s) and minor w(r,s) Wichmann constructions:

 W(r,s)=1^r,r+1,(2r+1)^r,(4r+3)^s,(2r+2)^(r+1),1^r
 w(r,s)=1^r,r+1,(2r+1)^(r+1),(4r+3)^s,(2r+2)^r,1^r.

The maximal length for a Wichmann ruler with k marks is (k^2-(k (mod 6)-3)^2)/3+k. For k=1, 2, ..., these have lengths 3, 6, 9, 12, 15, 22, 29, 36, 43, 50, 57, 68, 79, ... (A289761). An optimal sparse ruler has the greatest length for a given number of marks. Except for lengths 1, 13, 17, 23 and 58 (A349978), all known optimal sparse rulers are Wichmann constructions. The optimal ruler conjecture posits that all optimal sparse rulers other than these exceptions are Wichmann constructions.

A sparse ruler of length n has nint(sqrt(3n+9/4))+E marks, where E is called the excess and is equal to 0 or 1. The values of E(n) for n=50, 51, ... are given by 1, 0, 0, 0, 0, 0, 0, 0, 1, ... (A326499), which is a sequence with offset 50 since E=0 for all n<=49. The difficulty of computer searching increases exponentially with the length. In fact, it has not even been ruled out that the excess could be E=-1 for some (large) value of N.

The major and minor Wichmann constructions are simple modifications of each other, and most solutions can be modified in many ways. For more than 880 marks, adding a single mark at the end of a Wichmann construction can produce a solution with excess 0 or 1 for any length above 257992. That makes sparse rulers unusual among problems in combinatorics in that the smaller (not larger) cases are the hardest to find, with the sparse ruler of length 1792 being particularly hard to find.

Dark Satanic Mills on a Cloudy Day

Plotting the excess values in batches of maximal Wichmann rulers leads to a pattern called "Dark Satanic Mills on a Cloudy Day" by N. J. A. Sloane. All the windows in the Dark Mill are Wichmann constructions. Due to this pattern, it is believed Wichmann (1963) solved the problem, with the caveats above.


See also

Dark Satanic Mills on a Cloudy Day, Golomb Ruler, Graceful Labeling, Ruler

This entry contributed by Ed Pegg, Jr. (author's link)

Explore with Wolfram|Alpha

References

Erdős, P. and Gál, I. S. "On the Representation of 1,2,...,N by Differences." Proc. Nederl. Akad. Wetensch. 51, 1155-1158, 1948. Also published as Indagationes Math. 10, 379-382, 1949.Gardner, M. Wheels, Life, and Other Mathematical Amusements. New York: W. H. Freeman, pp. 153-155, 1983.Gardner, M. The Magic Numbers of Dr Matrix. Buffalo, NY: Prometheus, pp. 65-67 and 261-262, 1985.Golomb, S. W. "How to Number a Graph." In Graph Theory and Computing (Ed. R. C. Read). New York: Academic Press, pp. 23-37, 1972.Granville, A. and Roesler, F. "The Set of Differences of a Given Set." Amer. Math. Monthly 106, 338-344, 1999.Leech, J. "On the Representation of 1,2,...,N by Differences." J. London Math. Soc. 31, 160-169, 1956.Pegg, E. "Hitting All the Marks: Exploring New Bounds for Sparse Rulers and a Wolfram Language Proof." 2020. https://blog.wolfram.com/2020/02/12/hitting-all-the-marks-exploring-new-bounds-for-sparse-rulers-and-a-wolfram-language-proof/.Pegg, E. Jr. "Excess01Ruler." Wolfram Fucntion Repository. https://resources.wolframcloud.com/FunctionRepository/resources/Excess01Ruler/.Pegg, E. Jr. "Sparse Rulers." Wolfram Demonstrations Project. 2019. https://demonstrations.wolfram.com/SparseRulers/.Pegg, E. Jr. "Wichmann-Like Rulers." Wolfram Demonstrations Project. 2019. https://demonstrations.wolfram.com/WichmannLikeRulers/.Robison, A. D. "Parallel Computation of Sparse Rulers." 2014.Saarela, A. and Vanhatalo, A. "A Connection Between Unbordered Partial Words and Sparse Rulers." 29 Aug 2024. https://arxiv.org/abs/2408.16335.Sloane, N. J. A. Sequences A289761, A326499, and A349978 in "The On-Line Encyclopedia of Integer Sequences."Wichmann, B. "A Note on Restricted Difference Bases." J. Lond. Math. Soc. 38, 465-466, 1963.

Cite this as:

Pegg, Ed Jr. "Sparse Ruler." From MathWorld--A Wolfram Web Resource, created by Eric W. Weisstein. https://mathworld.wolfram.com/SparseRuler.html

Subject classifications