摘要

The present article considers the problem for determining, for given two permutations over indices from 1 to n, the permutation whose distribution matrix is identical to the min-sum product of the distribution matrices of the given permutations. This problem has several applications in computing the similarity between strings. The fastest known algorithm to date for solving this problem executes in O(n(1.5)) time, or very recently, in O(n log n) time. The present article independently proposes another O(n log n)-time algorithm for the same problem, which can also be used to partially solve the problem efficiently with respect to time in the sense that, for given indices g and i with 1 <= g < i <= n + 1, the proposed algorithm outputs the values R(h) for all indices h with g <= h < i in O(n + (i - g) log(i - g)) time, where R is the solution of the problem.

  • 出版日期2011-10-28