Papers
Topics
Authors
Recent
Search
2000 character limit reached

Ruler Rolling

Published 4 Oct 2022 in cs.DS | (2210.01954v5)

Abstract: At CCCG '21 O'Rourke proposed a variant of Hopcroft, Josephs and Whitesides' (1985) NP-complete problem {\sc Ruler Folding}, which he called {\sc Ruler Wrapping} and for which all folds must be 180 degrees in the same direction. Gagie, Saeidi and Sapucaia (2023) noted that if the last straight section of the ruler must be longest, then {\sc Ruler Wrapping} is equivalent to partitioning a string of positive integers into substrings whose sums are increasing such that the last substring sums to at most a given amount. They gave linear-time algorithms for the versions of {\sc Ruler Wrapping} both with and without this assumption. In real life we cannot repeatedly fold a carpenter's ruler 180 degrees in the same direction. In this paper we propose the more realistic problem of {\sc Ruler Rolling}, in which we repeatedly fold the segments 90 degrees in the same direction and thus fold the ruler into a rectangle instead of into an interval. We should report all the Pareto-optimal rollings. We note that if the last straight section of the ruler must be longer than the third to last -- analogously to Gagie et al.'s assumption -- then {\sc Ruler Rolling} is equivalent to partitioning a string of positive integers into substrings such that the sums of the even substrings are increasing, as are the sums of the odd substrings. We give a simple dynamic-programming algorithm that reports all the Pareto-optimal rollings in quadratic time under this assumption. Our algorithm still works even without the assumption, but then we are left with a quadratic number of two-dimensional feasible solutions, so finding the Pareto-optimal ones and increases our running time by a logarithmic factor. If we have a nice objective function, however, we still use quadratic time.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (7)
  1. G. Călinescu and A. Dumitrescu. The carpenter’s ruler folding problem. Combinatorial and Computational Geometry, 52:155, 2005.
  2. M.L. Fredman. On computing the length of longest increasing subsequences. Discrete Mathematics, 11(1):29–35, 1975.
  3. T. Gagie, M. Saeidi and A. Sapucaia. Ruler wrapping. International Journal of Computational Geometry and Applications, 33(1 & 2): 3–12, 2023.
  4. J. Hopcroft, D. Joseph and S. Whitesides. On the movement of robot arms in 2-dimensional bounded regions. SIAM Journal on Computing, 14(2):315–333, 1985.
  5. J. O’Rourke. Personal communication. 2021.
  6. D.E. Knuth. The Art of Computer Programming, volume 3. Addison-Wesley, 1973.
  7. B. Parker. St. Mark’s team tops in paper-folding. The Boston Globe, April 10th, 2011. http://archive.boston.com/news/local/articles/2011/04/10/st_marks_school_team_breaks_paper_folding_record .

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.

Authors (3)

Collections

Sign up for free to add this paper to one or more collections.

Tweets

Sign up for free to view the 1 tweet with 0 likes about this paper.