mookid / diffr

Yet another diff highlighting tool
MIT License
575 stars 22 forks source link

[WIP] Find the projection with the fewest splits. #37

Closed mookid closed 4 years ago

mookid commented 5 years ago

After computing the longest common subsequence, minimize the pair (number of common parts, number of unique parts) to return the best possible partition of the initial sequences.

In image, the difference with the patch: image

This is still a bit slow, I may be missing something.

27

Link to cs.stackoverflow question: https://cs.stackexchange.com/questions/117605/find-the-best-longest-common-subsequence