Core Concepts
The paper proposes the Ruler Rolling problem, a more realistic variant of the Ruler Folding and Ruler Wrapping problems, where a carpenter's ruler is folded into a rectangle using 90-degree folds in the same direction. The authors provide a quadratic-time algorithm to find all Pareto-optimal rollings under the assumption that the last segment extends strictly beyond every other.
Abstract
The paper introduces the Ruler Rolling problem, which is a more realistic variant of the previously studied Ruler Folding and Ruler Wrapping problems. In Ruler Rolling, the segments of a carpenter's ruler are folded 90 degrees in the same direction to form a rectangle, rather than being folded 180 degrees in alternating directions to form an interval.
The key highlights and insights are:
The authors show that if the last segment of the ruler must extend strictly beyond every other, then Ruler Rolling is equivalent to partitioning a string of positive integers into substrings such that the sums of the even substrings are increasing, and the sums of the odd substrings are increasing.
They provide a simple online dynamic programming algorithm that reports all the Pareto-optimal rollings in quadratic time under this assumption. The algorithm works even without the assumption, but then it is not online and the number of feasible two-dimensional solutions is quadratic, so finding the Pareto-optimal ones and discarding the others increases the running time by a logarithmic factor.
The authors discuss the challenges of dropping the simplifying assumption and suggest that finding a quadratic-time algorithm for Ruler Rolling with no assumptions at all is an open problem.
They also mention that if a nice objective function is available, the running time can be kept quadratic, as the objective function can project all the solutions onto a line, and then the minimum can be found in time linear in the number of solutions and quadratic in the number of segments.
The paper provides a proof of correctness for the proposed algorithm and discusses future work, including rolling rulers into triangles and handling cases where the folding direction can change.