Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature proposal: heaviest common subsequence algorithm for linear token diffs #772

Open
dgetu opened this issue Oct 12, 2024 · 0 comments

Comments

@dgetu
Copy link

dgetu commented Oct 12, 2024

I saw that this wiki page describes a problem with the LCS approach to linear token diffs. This paper seems to have a solution for the related HCS problem. If tokens are weighted by the number of characters they contain (maybe with keywords at a reduced weight and whitespace at zero weight), I'd think that would result in good diffs in most cases. Per-language weight tuning would be possible as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant