Show HN: I spent 6 years building a ridiculous wooden pixel display (opens in a new tab)benholmen.com
1145 pointsI built the world's most impractical 1000-pixel display and anyone in the world can draw on it. It draws a single pixel at a time and takes 30-60 minutes to complete a single image. Anyone can participate in the project by voting for the next image to be drawn, and submitting images.
Comments (144) 77 threads
Show all comments
Showing thread 11 of 77
- naively: Levenshtein
- better: real world edit time based on a model of the display : probably dominated by XY travel distance
[0]: https://knowyourmeme.com/memes/bad-apple
Given the current image being shown and the next image, you (presumably) want to plot the pixels of the next image as quickly as possible. I believe the optimal algorithm is:
1. Calculate the set of pixels that are changed between the current and next image.
2. Find the shortest path from the plotter's current position through each of those pixels. I believe breadth-first search (O(n)) is sufficient here.
Running this on all potential upcoming images and choosing the one with the lowest total path cost would do what you propose under "better".