Data update

This commit is contained in:
Ingy döt Net 2026-02-01 16:33:20 -08:00
parent 5150844a7d
commit 4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions

View file

@ -1,7 +1,6 @@
# Experimental!
# Use table of edge weights.
A ← [[0 7 9 0 0 14] [0 0 10 15 0 0] [0 0 0 11 0 2]
[0 0 0 0 6 0] [0 0 0 0 0 9][0 0 0 0 0 0]]
Ns ← ⍜⊟⍜⍉(▽⊸≡(≠0⊢)):°⊏⊡:A # Neighbours with costs.
P ← &p$"Path: _ with cost _"/$"_->_"+@a°□⊢astar(Ns|0|≍)°⊟
P ← &p$"Path: _ with cost _"/$"_->_"+@a°□⊢path(Ns|≍)°⊟
≡P[0_4 0_5]