A perfect ruler of length
is a
ruler
A ruler, sometimes called a rule, line gauge, or scale, is a device used in geometry and technical drawing, as well as the engineering and construction industries, to measure distances or draw straight lines.
Variants
Rulers have long ...
with
integer
An integer is the number zero (), a positive natural number (, , , etc.) or a negative integer with a minus sign ( −1, −2, −3, etc.). The negative numbers are the additive inverses of the corresponding positive numbers. In the language ...
markings
, for which there exists an integer
such that any
positive integer
In mathematics, the natural numbers are those numbers used for counting (as in "there are ''six'' coins on the table") and ordering (as in "this is the ''third'' largest city in the country").
Numbers used for counting are called '' cardinal ...
is uniquely expressed as the
difference for some
. This is referred to as an
-perfect ruler.
An
optimal perfect ruler is one of the smallest length for fixed values of
and
.
Example
A 4-perfect ruler of length
is given by
. To verify this, we need to show that every positive integer
is uniquely expressed as the difference of two markings:
:
:
:
:
See also
*
Golomb ruler
In mathematics, a Golomb ruler is a set of marks at integer positions along a ruler such that no two pairs of marks are the same distance apart. The number of marks on the ruler is its ''order'', and the largest distance between two of its m ...
*
Sparse ruler
*
All-interval tetrachord
{{PlanetMath attribution, id=31620, title=perfect ruler
Combinatorics