File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -34,14 +34,17 @@ element is returned.
34
34
35
35
diff-cpp implements the Longest Common Subsequence algorithm described
36
36
by Eugene Myers[ 1] with the divide and conquer linear space refinement
37
- described by Hirshberg[ 2] . This algorithm is highly performant - with
38
- sequence lengths near 10,000 and SES length around 10%, this algorithm
39
- typically finishes under 10ms my test system (1.8Ghz Core2
37
+ described by Hirshberg[ 2] , and optimizations from Neil Fraser's
38
+ diff-patch-match library[ 3] . The final algorithm is highly performant -
39
+ with sequence lengths near 10,000 and SES length around 10%, this
40
+ algorithm typically finishes under 10ms my test system (1.8Ghz Core2
40
41
Duo).
41
42
42
43
[ 1] An O(ND) Difference Algorithm and Its Variations. Eugene
43
44
Myers. Algorithmica 1986
44
45
45
46
[ 2] A Linear Space Algorithm for Computing Maximal Common
46
47
Subsequences. Dan S. Hirshberg. Communications of the ACM. 1975
47
- Vol. 18 No. 6
48
+ Vol. 18 No. 6
49
+
50
+ [ 3] Google-diff-patch-match. https://code.google.com/p/google-diff-match-patch/
Original file line number Diff line number Diff line change 6
6
#include < ctime>
7
7
8
8
#include " lcs.h"
9
- // #include "Difference.h"
10
9
11
10
using std::vector;
12
11
using std::cout;
You can’t perform that action at this time.
0 commit comments