Lably
Skip to content

Hunt–Szymanski algorithm

  • 3 min read
  • 2 chapters

Related on Lably

Through Computer science and Big O notation

The worst-case complexity for this algorithm is O(n2 log n), but in practice O(n log n) is rather expected.

History

The algorithm was proposed by Harold S. Stone as a generalization of a special case solved by Thomas G. Szymanski. James W. Hunt refined the idea, implemented the first version of the candidate-listing algorithm used by diff and embedded it into an older framework of Douglas McIlroy.

The description of the algorithm appeared as a technical report by Hunt and McIlroy in 1976. The following year, a variant of the algorithm was published in a joint paper by Hunt and Szymanski.

Sign in to keep reading

One more chapter is free with a Lably account.

More in Computing and communication