Practice free →
Home › Per Red Blob Games (movement costs), if some ter…

Per Red Blob Games (movement costs), if some terrain costs MORE to traverse, Dijkstra's algorithm will do which?

ABe unable to terminate
BPrefer paths through cheaper terrain
CRefuse to enter expensive tiles
DAlways take the straight line
Answer & Solution
Correct answer: B. Prefer paths through cheaper terrain
Red Blob Games Dijkstra-on-weighted-grid: weights tune behaviour (e.g. road = 1, swamp = 5). Dijkstra finds minimum-cost path.
Solve this in the app — Practice practice & 24k+ MCQs →
Related questions