E
Edward Jensen
Hi.
I have a rather large 2D array with boolean values. If I look at a certain
element and it's true, I need to find the closest element with is false. By
closest I mean in terms of a metric where each step to the left, right, up,
down, left-up-diagonal, right-up-diagonal, left-down-diagonal and
right-down-digonal has a length of one. Any ideas on how to do this
efficiently? And by the way... Does this metric have a name?
Thanks in advance!
I have a rather large 2D array with boolean values. If I look at a certain
element and it's true, I need to find the closest element with is false. By
closest I mean in terms of a metric where each step to the left, right, up,
down, left-up-diagonal, right-up-diagonal, left-down-diagonal and
right-down-digonal has a length of one. Any ideas on how to do this
efficiently? And by the way... Does this metric have a name?
Thanks in advance!