![]() | editDistanceEditDistanceT Method |
Namespace: WhetStone.Looping
public static int EditDistance<T>( this IEnumerable<T> this, IEnumerable<T> other, IEqualityComparer<T> comp = null, bool allowIns = true, bool allowDel = true, bool allowSub = true )
Using forgetful dynamic programming, time complexity O(n^2), space complexity O(n).