Skip to content
/ diff Public

Implementation of the standard unix tool diff in Common Lisp

License

Notifications You must be signed in to change notification settings

l0stman/diff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is an implementation of the standard Unix tool diff in Common
Lisp.  The diff0.lisp file uses a simple but inefficient recursive
algorithm which is O(nm) in time and space to find the longest common
subsequence between two files.  The diff1.lisp file implements the
algorithm described in ``An algorithm for differential file
comparison'' by J. W. Hunt and M. D. McIllroy which worst case
behavior is O(mnlog m) in time and O(mn) in space.  But in practice
the complexity is linear in both time and space.

See: http://www.cs.dartmouth.edu/~doug/diff.ps

About

Implementation of the standard unix tool diff in Common Lisp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published