Lably
Skip to content

Optimal matching

  • 2 min read
  • 3 chapters

Related on Lably

Through Social science, Algebra over a field and Symmetry

Algorithm

Let S=(s1,s2,s3,…sT) be a sequence of states si belonging to a finite set of possible states. Let us denote S the sequence space, i.e. the set of all possible sequences of states.

Optimal matching algorithms work by defining simple operator algebras that manipulate sequences, i.e. a set of operators ai:S→S. In the most simple approach, a set composed of only three basic operations to transform sequences is used:

  • one state s is inserted in the sequence as′Ins(s1,s2,s3,…sT)=(s1,s2,s3,…,s′,…sT)
  • one state is deleted from the sequence as2Del(s1,s2,s3,…sT)=(s1,s3,…sT) and
  • a state s1 is replaced (substituted) by state s1′, as1,s1′Sub(s1,s2,s3,…sT)=(s1′,s2,s3,…sT).

Imagine now that a cost c(ai)∈R0+ is associated to each operator. Given two sequences S1 and S2, the idea is to measure the cost of obtaining S2 from S1 using operators from the algebra. Let A=a1,a2,…an be a sequence of operators such that the application of all the operators of this sequence A to the first sequence S1 gives the second sequence S2: S2=a1∘a2∘…∘an(S1) where a1∘a2 denotes the compound operator. To this set we associate the cost c(A)=∑i=1nc(ai), that represents the total cost of the transformation. One should consider at this point that there might exist different such sequences A that transform S1 into S2; a reasonable choice is to select the cheapest of such sequences. We thus call distance
d(S1,S2)=minA{c(A)suchthatS2=A(S1)}
that is, the cost of the least expensive set of transformations that turn S1 into S2. Notice that d(S1,S2) is by definition nonnegative since it is the sum of positive costs, and trivially d(S1,S2)=0 if and only if S1=S2, that is there is no cost. The distance function is symmetric if insertion and deletion costs are equal c(aIns)=c(aDel); the term indel cost usually refers to the common cost of insertion and deletion.

Considering a set composed of only the three basic operations described above, this proximity measure satisfies the triangular inequality. Transitivity however, depends on the definition of the set of elementary operations.

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Computing and communication