一个源自蛋白质序列比较的问题
楼主 · 1 楼
(This problem on metrics is taken from one method developed for the
comparison of DNA segments.) Let A be a finite set of objects which we
call an alphabet (in practice, the 20-letter amino acid alphabet of
proteins). Let d(a, b) be a distance function on A for a, b ∈ A (in
practice, the cost of a mutation from a to b). Let g(a) be a
positive-valued function on A for a ∈ A (in practice, the positive cost of
inserting or deleting the letter a). For two finite sequences a = (a1, a2,
· · · , am) and b = (b1, b2, · · · , bn), not necessarily of the same
length, define D(a, b) by induction on m and n, as follows.
D(a, b) = 0 if m = n = 0,
D(a, b) = g(b1) + g(b2) + · · · + g(bn) if m = 0 and n > 0,
D(a, b) = g(a1) + g(a2) + · · · + g(am) if m > 0 and n = 0,
D(a, b)
= min (D(a′, b) + g (am) , D(a′, b′) + d (am, bn) , D(a, b′) + g(bn))
if m > 0 and n > 0,
where a′ = (a1, a2, · · · , am-1) and b′ = (b1, b2, · · · , bn-1). Verify that D(·, ·) is a metric on the space of all finite sequences of letters of the alphabet A.
这是Harvard大一的一个数学分析题目
D(a, b) = 0 if m = n = 0,
D(a, b) = g(b1) + g(b2) + · · · + g(bn) if m = 0 and n > 0,
D(a, b) = g(a1) + g(a2) + · · · + g(am) if m > 0 and n = 0,
D(a, b)
= min (D(a′, b) + g (am) , D(a′, b′) + d (am, bn) , D(a, b′) + g(bn))
if m > 0 and n > 0,
where a′ = (a1, a2, · · · , am-1) and b′ = (b1, b2, · · · , bn-1). Verify that D(·, ·) is a metric on the space of all finite sequences of letters of the alphabet A.
这是Harvard大一的一个数学分析题目
2 楼
这道题具体出处是哪儿?谁出的?