badkins
2021-12-16 13:40:22

I think in the case of yesterday’s puzzle, a shortest path can be computed w/o visiting every node.


badkins
2021-12-16 13:43:20

Hmm…. maybe not. Looks like my solution visited 249,999 out of 250,000 :)


badkins
2021-12-16 13:45:08

It seems like it should be possible though because of the specifics of the puzzle - we only need paths from top left of grid to lower right, and we know the minimum path is <= (499 + 499) * 9, so it makes no sense to go up, or left, if our path length is already too long.


shu--hung
2021-12-16 13:47:34

Okay, it does depend on the graph. If the graph has a particular and known structure then it’s possible to avoid the overhead.


shu--hung
2021-12-16 13:48:08

Moreover, if it’s a grid then plain dynamic programming may be much faster than Dijkstra’s algorithm.


shu--hung
2021-12-16 13:49:00

Hmm I take it back. I don’t know if the grid is directd or undirected.


notjack
2021-12-16 21:01:25

Rhombus meeting today! We’re talking about equality operations, how they’ll relate to collections, and fancy-app.

Agenda: https://github.com/racket/rhombus-prototype/discussions/180#discussioncomment-1814253 Zoom link: https://utah.zoom.us/j/96590513005


notjack
2021-12-17 02:55:38