You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Luc Maisonobe (Created) (JIRA)" <ji...@apache.org> on 2012/04/09 16:05:19 UTC

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

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
            Assignee: Luc Maisonobe
            Priority: Minor


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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Thomas Neidhart (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COLLECTIONS-404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13414516#comment-13414516 ] 

Thomas Neidhart commented on COLLECTIONS-404:
---------------------------------------------

Hi Luc,

what do you think of moving this contribution to the comparators.sequence package? 
I think this would be a better fit than list.difference.

Thomas

p.s. I could do it myself together with other cleanups if you agree.
                
> 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
>            Assignee: Luc Maisonobe
>            Priority: Minor
>         Attachments: commons-collections-difference-v2.patch, commons-collections-difference.patch, comparator.zip
>
>
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Luc Maisonobe (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COLLECTIONS-404?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luc Maisonobe updated COLLECTIONS-404:
--------------------------------------

    Attachment: commons-collections-difference.patch

The commons-collections-difference.patch is a patch against current trunk. It is a simple port of the comparator.zip contribution with the following changes:

 - changed package name to org.apache.commons.collections.list.difference
 - added Apache header
 - changed @version to $Id$
 - added @since 4.0

As I have never committed to [collections] before, I would like to have someone review this.

I am not sure the package choice is good. The top level class (SequenceComparator) takes two Object arrays rather than two lists for now. This should probably be changes to two List<Object> if the package remains here.
                
> 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
>            Assignee: Luc Maisonobe
>            Priority: Minor
>         Attachments: commons-collections-difference.patch, comparator.zip
>
>
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Luc Maisonobe (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COLLECTIONS-404?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luc Maisonobe updated COLLECTIONS-404:
--------------------------------------

    Attachment: comparator.zip

The comparator.zip file is an implementation of Eugene Myers difference algorithm developed at CS Systèmes d'Information. A Software Grant has been signed by CS to contribute this implementation to the Apache Software Foundation. As of 2012-04-09, the Software Grand is already on file.
                
> 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
>            Assignee: Luc Maisonobe
>            Priority: Minor
>         Attachments: comparator.zip
>
>
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

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

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COLLECTIONS-404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13250960#comment-13250960 ] 

Hudson commented on COLLECTIONS-404:
------------------------------------

Integrated in commons-collections #18 (See [https://builds.apache.org/job/commons-collections/18/])
    Added an implementation of Eugene Myers difference algorithm.

JIRA: COLLECTIONS-404 (Revision 1311904)

     Result = ABORTED
luc : http://svn.apache.org/viewvc/?view=rev&rev=1311904
Files : 
* /commons/proper/collections/trunk/pom.xml
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/IndexedCollection.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/functors/CatchAndRethrowClosure.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/functors/ComparatorPredicate.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/list/difference
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/list/difference/CommandVisitor.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/list/difference/DeleteCommand.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/list/difference/EditCommand.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/list/difference/EditScript.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/list/difference/InsertCommand.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/list/difference/KeepCommand.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/list/difference/ReplacementsFinder.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/list/difference/ReplacementsHandler.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/list/difference/SequencesComparator.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/list/difference/Snake.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/list/difference/package.html
* /commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/AbstractDecoratedCollectionTest.java
* /commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/MockTestCase.java
* /commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/TestIndexedCollection.java
* /commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/functors/BasicClosureTestBase.java
* /commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/functors/TestCatchAndRethrowClosure.java
* /commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/functors/TestComparatorPredicate.java
* /commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/list/difference
* /commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/list/difference/SequencesComparatorTest.java

                
> 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
>            Assignee: Luc Maisonobe
>            Priority: Minor
>         Attachments: commons-collections-difference-v2.patch, commons-collections-difference.patch, comparator.zip
>
>
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COLLECTIONS-404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13251026#comment-13251026 ] 

Hudson commented on COLLECTIONS-404:
------------------------------------

Integrated in commons-collections #19 (See [https://builds.apache.org/job/commons-collections/19/])
    Added an implementation of Eugene Myers difference algorithm.
JIRA: COLLECTIONS-404 (Revision 1311964)

     Result = SUCCESS
luc : http://svn.apache.org/viewvc/?view=rev&rev=1311964
Files : 
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/list/difference
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/list/difference/CommandVisitor.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/list/difference/DeleteCommand.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/list/difference/EditCommand.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/list/difference/EditScript.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/list/difference/InsertCommand.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/list/difference/KeepCommand.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/list/difference/ReplacementsFinder.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/list/difference/ReplacementsHandler.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/list/difference/SequencesComparator.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/list/difference/Snake.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/list/difference/package.html
* /commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/list/difference
* /commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/list/difference/SequencesComparatorTest.java

                
> 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
>            Assignee: Luc Maisonobe
>            Priority: Minor
>         Attachments: commons-collections-difference-v2.patch, commons-collections-difference.patch, comparator.zip
>
>
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Thomas Neidhart (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COLLECTIONS-404?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Affects Version/s:     (was: 4.0)
                       3.2.1
        Fix Version/s: 4.0
    
> 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
>            Assignee: Luc Maisonobe
>            Priority: Minor
>             Fix For: 4.0
>
>         Attachments: commons-collections-difference-v2.patch, commons-collections-difference.patch, comparator.zip
>
>
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Thomas Neidhart (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COLLECTIONS-404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13423375#comment-13423375 ] 

Thomas Neidhart commented on COLLECTIONS-404:
---------------------------------------------

The contribution looks pretty good, so I wonder if there is more stuff to be added?

Otherwise we can resolve it.
                
> 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
>            Assignee: Luc Maisonobe
>            Priority: Minor
>         Attachments: commons-collections-difference-v2.patch, commons-collections-difference.patch, comparator.zip
>
>
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Luc Maisonobe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COLLECTIONS-404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13414532#comment-13414532 ] 

Luc Maisonobe commented on COLLECTIONS-404:
-------------------------------------------

You are right, comparators.sequence is much better.

Please do the change if you want.

Thanks a lot
                
> 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
>            Assignee: Luc Maisonobe
>            Priority: Minor
>         Attachments: commons-collections-difference-v2.patch, commons-collections-difference.patch, comparator.zip
>
>
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Thomas Neidhart (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COLLECTIONS-404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13414601#comment-13414601 ] 

Thomas Neidhart commented on COLLECTIONS-404:
---------------------------------------------

done in r1361677.
                
> 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
>            Assignee: Luc Maisonobe
>            Priority: Minor
>         Attachments: commons-collections-difference-v2.patch, commons-collections-difference.patch, comparator.zip
>
>
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Luc Maisonobe (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COLLECTIONS-404?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luc Maisonobe updated COLLECTIONS-404:
--------------------------------------

    Attachment: commons-collections-difference-v2.patch

Second version of the patch, replacing arrays by List in the SequenceComparator constructor.
                
> 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
>            Assignee: Luc Maisonobe
>            Priority: Minor
>         Attachments: commons-collections-difference-v2.patch, commons-collections-difference.patch, comparator.zip
>
>
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Thomas Neidhart (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COLLECTIONS-404?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Affects Version/s:     (was: 3.2.1)
                       4.0
    
> 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: 4.0
>         Environment: all
>            Reporter: Luc Maisonobe
>            Assignee: Luc Maisonobe
>            Priority: Minor
>         Attachments: commons-collections-difference-v2.patch, commons-collections-difference.patch, comparator.zip
>
>
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COLLECTIONS-404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13423415#comment-13423415 ] 

Hudson commented on COLLECTIONS-404:
------------------------------------

Integrated in commons-collections #68 (See [https://builds.apache.org/job/commons-collections/68/])
    Added COLLECTIONS-404 to changes.xml. (Revision 1366176)

     Result = UNSTABLE
tn : http://svn.apache.org/viewvc/?view=rev&rev=1366176
Files : 
* /commons/proper/collections/trunk/src/changes/changes.xml

                
> 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
>            Assignee: Luc Maisonobe
>            Priority: Minor
>             Fix For: 4.0
>
>         Attachments: commons-collections-difference-v2.patch, commons-collections-difference.patch, comparator.zip
>
>
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Luc Maisonobe (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COLLECTIONS-404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13251023#comment-13251023 ] 

Luc Maisonobe commented on COLLECTIONS-404:
-------------------------------------------

The second patch has been committed in subversion repository as of r1311964.
                
> 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
>            Assignee: Luc Maisonobe
>            Priority: Minor
>         Attachments: commons-collections-difference-v2.patch, commons-collections-difference.patch, comparator.zip
>
>
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COLLECTIONS-404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13414603#comment-13414603 ] 

Hudson commented on COLLECTIONS-404:
------------------------------------

Integrated in commons-collections #58 (See [https://builds.apache.org/job/commons-collections/58/])
    [COLLECTIONS-404] moved to comparators.sequence package, cleanup. (Revision 1361677)

     Result = SUCCESS
tn : http://svn.apache.org/viewvc/?view=rev&rev=1361677
Files : 
* /commons/proper/collections/trunk/pom.xml
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/comparators/sequence
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/comparators/sequence/CommandVisitor.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/comparators/sequence/DeleteCommand.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/comparators/sequence/EditCommand.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/comparators/sequence/EditScript.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/comparators/sequence/InsertCommand.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/comparators/sequence/KeepCommand.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/comparators/sequence/ReplacementsFinder.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/comparators/sequence/ReplacementsHandler.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/comparators/sequence/SequencesComparator.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/comparators/sequence/Snake.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/comparators/sequence/package-info.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/comparators/sequence/package.html
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/list/difference
* /commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/comparators/sequence
* /commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/comparators/sequence/SequencesComparatorTest.java
* /commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/list/difference

                
> 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
>            Assignee: Luc Maisonobe
>            Priority: Minor
>         Attachments: commons-collections-difference-v2.patch, commons-collections-difference.patch, comparator.zip
>
>
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Luc Maisonobe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COLLECTIONS-404?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luc Maisonobe resolved COLLECTIONS-404.
---------------------------------------

    Resolution: Fixed

Setting the issue as resolved.
                
> 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
>            Assignee: Luc Maisonobe
>            Priority: Minor
>         Attachments: commons-collections-difference-v2.patch, commons-collections-difference.patch, comparator.zip
>
>
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira