Ruler Wrapping

09/29/2021
by   Travis Gagie, et al.
0

We propose a natural variation of the Hopcroft, Joseph and Whitesides' (1985) classic problem of folding a carpenter's ruler into the shortest possible interval. In the original problem folds must alternate between 180 degrees clockwise and 180 degrees counterclockwise but in our version, which we call ruler wrapping, all the folds must be in the same direction. Whereas the original problem is NP-complete, we first show our version has a simple and fairly obvious quadratic-time algorithm, and then show it has a somewhat less obvious linear-time algorithm which is nevertheless still simple enough to be implemented in under a page of C code.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
03/01/2023

A linear time algorithm for linearizing quadratic and higher-order shortest path problems

An instance of the NP-hard Quadratic Shortest Path Problem (QSPP) is cal...
research
10/04/2022

Rectangular Ruler Wrapping

In 1985 Hopcroft, Joseph and Whitesides introduced the problem of foldin...
research
08/25/2021

Faster Exponential Algorithm for Permutation Pattern Matching

The Permutation Pattern Matching problem asks, given two permutations σ ...
research
08/02/2021

Recognizing and Embedding Simple Optimal 2-Planar Graphs

In the area of beyond-planar graphs, i.e. graphs that can be drawn with ...
research
07/16/2020

Shortest Watchman Tours in Simple Polygons under Rotated Monotone Visibility

We present an O(nrG) time algorithm for computing and maintaining a mini...
research
03/26/2019

On the tractability of the maximum independent set problem

The maximum independent set problem is a classical NP-complete problem i...
research
12/10/2021

Beyond the Longest Letter-duplicated Subsequence Problem

Given a sequence S of length n, a letter-duplicated subsequence is a sub...

Please sign up or login with your details

Forgot password? Click here to reset