Once upon a time, years before I joined the platform, I came across this problem:
Problem: What is the fewest number of marks that one needs to inscribe on a ruler
so that any distance from can be measured?
Since marks can only measure distinct distances, we clearly need at least
marks to measure all distances from to . Now if and we mark the ruler at locations
then all the distances up until are represented, using only marks.
Therefore, the answer to this problem is asymptotically . And this is how I learned
about Square Root Decomposition, the first topic I'd ever encounter in the vast world of programming contests.
A related concept are the golomb rulers, the smallest rulers for which all distances
between marks are different. Though they don't necessarily need to cover all distances , the best rulers
will have most of these small distances. For instance, marking a length- ruler at , , , , and gives
us the pairwise distinct distances of and , which is optimal.
So, in early April 2024, I registered as "golomb," and so far, it has
been a blast.