7.3 Counting Theorem of Optimal Alignment and Alignment Spheroid 237
In Example 23 we had d
A
(A, B)=5,n
(A, B)=|A| = |B| =8,ρ(A, B)=4.
Thus,
d
L
2
(A, B)=|A|+ |B|−2ρ(A, B)
=8< |A| + |B|−2n
(A, B)+2d
A
(A, B)=10.
The inequality in Theorem 32 is strictly true, thus, the sequences (A, B)do
not satisfy the necessary and sufficient condition in Theorem 32.
7.3 The Coun ting Theorem of the Optimal Alignment
and Alignment Spheroid
Above, we have mentioned that the optimal alignment sequences are not gen-
erally unique. The counting theorem of the optimal alignment is intended
to determine the number of all the optimal alignments for a fixed sequence
A and B. The alignment spheroid is the set of all the sequences whose A-
distances arriving at a fixed sequence A are less than or equal to a constant.
7.3.1 The Counting Theorem of the Optimal Alignment
With the same notations as those used in the above section, for a fixed se-
quence A and B,letC be the minimum envelope, and let D be the maximum
core. Then, C and D may be mutually determined. The structure mode of C
is given in (7.7). Let
˜
=
¯
1
,
¯
2
, ··· ,
¯
k
c
(7.27)
denote the lengths of every vector in (7.7), in which
¯
k
=(
k,1
,
k,2
,
k,3
), and
k,τ
is the length of vector δ
k,τ
. We conclude the following:
1. The minimum envelope C may be generated if sequences A, B and their
maximum core D are given. There are M(C) envelopes equivalent to the
minimum envelope C. The calculation of M(C) is given by (7.8).
2. The minimum penalty alignment sequences (A
,B
)maybegeneratedif
sequences A, B and their maximum core D are given. Its standard mode
is given by (7.18) and (7.19).
3. In the standard mode given by (7.18) and (7.19), each region (a
δ
2k
,b
δ
2k
),
undergoes the permutation of virtual symbols. The new sequences are also
the maximum penalty alignment sequences of (A, B),andarecalledthe
equivalent sequences of (A
,B
). The counting formula of the equivalent
sequences of (A
,B
)is:
M(A, B; D)=
k
c
k=1
k,4
!
k,5
!(
k,4
−
k,5
)!
, (7.28)
in which
k,4
,
k,5
are defined by (7.17).