AlgorithmsStringsEdit on GitHubEdit history
Myers' Diff Algorithm
1986
A diff algorithm that finds a shortest edit script in O(ND) by advancing the furthest-reaching point on each diagonal of the edit graph. It is the default algorithm of git diff.
Origin
Eugene W. Myers (1986). An O(ND) Difference Algorithm and Its Variations. Algorithmica 1.doi:10.1007/BF01840446 — checked against Crossref, 2026-11-08
Lineage
Algorithms 7 · Relations 7
Parent algorithms
Where it came from
Wagner–Fischer1974
Structural analysisFinds the shortest edit script on the edit graph in time proportional to the number of differences D
Hirschberg's Algorithm1975
Structural analysisIts linear-space refinement, which finds a middle point and recurses on both sides, has the same structure as Hirschberg's divide and conquer.
Derived algorithms
What it led to
Wavefront Alignment Algorithm2020
Structural analysisWidens to gap-affine scores the O(ND) structure of extending only the furthest-reaching point on each diagonal.
Notable implementations
Paths checked against the GitHub default branch
Find more: GitHub · Semantic Scholar · Google Scholar · arXiv
Claims & disputes
Loading…