Skip to content

raygard/lcs_diff_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

lcs_diff_demo

Demo LCS and diff implementations

I have written implementations of two Longest Common Subsequence algorithms for your study, use, and enjoyment. I have included a Python version of the Hunt/McIlroy algorithm and Python and C versions of the Hunt/Szymanski and Kuo/Cross algorithms, and my own modification of the Kuo/Cross algorithm.

You will also find a diff.py Python diff program that can use all the Python implementations and produce a unified diff (diff -u) output, and a diff.c C program that can produce unified diff with 3 line context (-u) by default or any other context (-U number_of_lines) including 0 lines (no context).

These are all under 0BSD license so you can use them as you wish. They are technically copyrighted but use them freely. The license does not require any attribution but if you do use them I would appreciate a mention in the code and/or documention etc.

About

Demo LCS and diff implementations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published