Manhattan Distance

Published

Grid from O1 (1,1) to O2 (4,5): blue horizontal leg of 3 blocks, green vertical leg of 4 blocks, so the walk along the grid is 7 blocks while the straight line measures 5; card reads d = |x2 - x1| + |y2 - y1| = 3 + 4 = 7

Leave a Feedback to Request a Diagram.