Consider the C# implementation of the LD-distance calculation-algorithm suggested on this Wiki page.
I'd like to extend it with a capability to abort the calculation-process in case a certain (pre-defined) distance-threshold has already been exceeded.
This conceptual optimization-approach was suggested by Alex Martelli on this thread.
The question is: How can this solution be implemented over the suggested C# solution? { Side-Note: Function should return the maximal distance found until its return. }
Thanks much.