Not long ago, I went down the rabbit hole of space-filling curves, and learned about an obscure paper by Rolf Niedermeier, Klaus Reinhardt, and Peter Sanders that introduced a rather peculiar curve with an unfortunate name: H-curve [1]. The paper mentions that H-curve preserves better locality properties compared to Hilbert curve. It fills the space with H-like shapes, hence the name. Also, like the Moore curve, it generates a loop.Space-filling curves are ridiculously easy to implement with L-system rules, and I spent a few days developing a set of axioms to express it in a rewrite system. This was a fun puzzle [2].
A => BF-F-BFFFC-F-FC+F+BF-F-BFFFC-F-FC
B => BFFFC-F-FC+F+B
C => C+F+BF-F-BFFFC
[1] https://www.sciencedirect.com/science/article/pii/S0166218X0...[2] https://kruzenshtern.org/25-h-curve.html
thechao|2 years ago
oneearedrabbit|2 years ago
kragen|2 years ago
maybe my translation is buggy?
oneearedrabbit|2 years ago
Can you try generating 1/8 or 1/4 curves to check the partial generation? Or these rules--should produce the triangular shape:
andreareina|2 years ago
[1]https://en.m.wikipedia.org/wiki/H_tree
jethkl|2 years ago
Its locality properties provide a practical alternative to the Hilbert curve for this type of map. Also interesting that it is loopy.