Skip to content

v1.2

Choose a tag to compare

@alex-alrux alex-alrux released this 17 Feb 06:37
· 10 commits to master since this release

Improved distance calculation speed when a maximum cost is set.

  • Reduced complexity from O(max(|s1|,|s2|)*maxCost) to O(min(|s1|,|s2|)*maxCost).
  • Bypass the calculation when distance is guaranteed to be greater than maxCost.
  • Added tests for more edge cases.