←back to thread

218 points lapnect | 2 comments | | HN request time: 0.413s | source
1. jkaptur ◴[] No.42175415[source]
Very fun. I wonder if a heap could improve the performance of the "loop through the skyline in order to find the best candidate location" step. (I think it would improve the asymptotic time, if I'm understanding the algorithm correctly, but obviously the real performance is more complex).
replies(1): >>42176094 #
2. chatmasta ◴[] No.42176094[source]
With some clever bit twiddling hacks, you might be able to avoid the loop entirely.