Algorithm edge cases vs notation

Posted by David Haley on February 10, 2024 · 1 min read

#compsci  ·  #software

I spent 2.5 hours debugging an infinite loop in this algorithm, caused by an edge case (center point of structuring element is excluded). I’d missed a single but crucial requirement by misreading the notation…

Original post on dev.to