Longest common subsequence: Difference between revisions

Content deleted Content added
CNHume (talk | contribs)
CNHume (talk | contribs)
Line 334:
Here a "divide and conquer" approach devised by Hirschberg can limit the space required to O(m+n). However, this approach requires O(m*n) time even in the best case.
 
This quadratic time dependency may bebecome prohibitive, given thevery great length of thelong input sequences. So, heuristics are often favored over optimal Dynamic Programming solutions.
 
In the application of comparing source file revisions, records form a sparse symbol space and generate a linear O(m+n) number of pairs where the input sequences match.