News for hackers. Stuff that matters.
Re:Using Hilbert Curves to 100% Zelda by Spivak on Sunday July 23, 2017 @12:27AM (#14830894)
So say you have a graph on distance, d, that you want to weight based on a preference, p, from 0-5 going from least preferred to most preferred.

You might make your weight function as w(d, p) = d * (2 ^ p)

Re:Using Hilbert Curves to 100% Zelda by modalduality on Sunday July 23, 2017 @01:52AM (#14831058)
That's fine, but `p` is a variable, not a constant, in the original post's case, right?
Re:Using Hilbert Curves to 100% Zelda by tgb on Sunday July 23, 2017 @05:32AM (#14831538)
That doesn't seem necessary. Picking a value of p just selects how much you prefer short hope to shorter total distance.