You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Thomas Neidhart (JIRA)" <ji...@apache.org> on 2013/04/28 23:06:16 UTC

[jira] [Updated] (COLLECTIONS-404) Adding an implementation of Eugene Myers difference algorithm

     [ https://issues.apache.org/jira/browse/COLLECTIONS-404?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Neidhart updated COLLECTIONS-404:
----------------------------------------

    Attachment: DiffTest.java

Yes, the unit tests run successfully with this change, but I will investigate further.

See also attached a simple test to create a diff-like output from the edit script. I am planning to include this into the new SequenceUtil (after a cleanup).
                
> Adding an implementation of Eugene Myers difference algorithm
> -------------------------------------------------------------
>
>                 Key: COLLECTIONS-404
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-404
>             Project: Commons Collections
>          Issue Type: Improvement
>          Components: Collection
>    Affects Versions: 3.2.1
>         Environment: all
>            Reporter: Luc Maisonobe
>            Priority: Minor
>             Fix For: 4.0
>
>         Attachments: commons-collections-difference.patch, commons-collections-difference-v2.patch, comparator.zip, DiffTest.java
>
>
> The difference algorithm aims at comparing two sequences of objects and return an "edit script" which represents how one can transform the first sequence into the second sequence. The script describes the various insert object, delete object and keep object commands. The script is guaranteed to be the shortest possible in terms of number of commands.
> From the script, one can either extract longest common sub-sequences (i.e. how similar the sequences are) or on the contrary the needed changes (i.e. how different the sequences are).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira