TaxiPathLength
function · ui · primitive
- Address
0x4dbbd0· 263 bytes, up to0x4dbcd6- Signature
float __fastcall (uint32_t firstSlot, uint32_t secondSlot)- Meaning
- Returns the summed length of the path from the first slot's node to the second's
- Confidence
- verified, proof one
- Finding
- ui/taxiroute#route-search
- Test
ui::geo_4dbbd0
Finding: Route search in ui: taxi routes, fares and the flight
The seed 0x4dc010 gives the current node's slot (slot 0 when none matches) a fare of 0, one node, the route
[current id], a length of 0 and the route flag, then relaxes every slot the current node has a direct path to. The relaxation 0x4dbce0(to, from, price) adds the length of the path between the two slots to the
length at from. A slot keeps its first route; a later one replaces it only when strictly shorter. A replacement
copies from's route plus the new id, adds price to the fare sum, takes from's node count plus 1, sets the route flag
and relaxes every node to has a direct path to. Fares and hops do not count.
The derivation is in the doc.
Callers 1
Callees 1
Calls and jumps by a bare address, from tables/calls.tsv.