Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-404

Adding an implementation of Eugene Myers difference algorithm

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2.1
    • Fix Version/s: 4.0-alpha1, 4.0
    • Component/s: Collection
    • Labels:
      None
    • Environment:

      all

      Description

      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).

        Attachments

        1. commons-collections-difference.patch
          51 kB
          Luc Maisonobe
        2. commons-collections-difference-v2.patch
          52 kB
          Luc Maisonobe
        3. comparator.zip
          17 kB
          Luc Maisonobe

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              luc Luc Maisonobe
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: