I have a rectangular area of known dimensions, $x$ and $y$. I want to draw a continuous (i.e. non-crossing) line inside this rectangle that is as long as possible. The radius of curvature at any point on the line can not be less than a value, $r$, and the line cannot come closer that distance, $p$, to any other point on that line. How do I determine the layout of this line, and its maximum length?
This is inspired by the Hamiltonian path approach as a solution to the video game snake, as exhibited here. The Hamiltonian approach clearly has a defined analytical solution, but I suspect that with my additional constraints this mutates into a numerically-driven optimisation problem.
I do not, as yet, have any other constraints, such as starting and finishing within the same region - I just want to maximise the line length per unit rectangle area. Can anyone direct me to a starting point?
My initial takes were to develop solutions along the theme of spirals - either entirely concentric or racetrack-like but this leaves a lot of real estate (particularly the centre) untouched. I'd like to think there is a Hamiltonian-esque solution to fill-in the gaps.
How do you define the line coming closer than distance $p$ to any other point on the line? Obviously points on the line are arbitrarily close to each other -- you probably mean something like points that are distance less than $p$ apart despite being at least distance $p$ apart from intervening points on the line?
– joriki Nov 29 '19 at 13:20