1.4 Improved and Exact Algorithms
1.4.2 A Proof Without Using Convex Analysis
pi(ti) = (xi+kxiti,yi+kyiti)
on si in general form, with ti∈[0,1], where i = 1, 2,. . ., or k. In the following, pi(ti)will also be denoted by pifor short, where i = 1, 2,. . ., or k.
The following is a multivariable version of Fermat’s Theorem in mathematical analysis13(see Theorem 8.8.1). We will use it for proving Lemma 1.3; this lemma is then applied in the proofs of Lemmas 1.4 and Theorem 1.2.
Theorem 1.1 (Fermat’s Theorem) Let f = f(t1,t2, . . . ,tk) be a real-valued function defined on an open set U inRk. Let C = (t10,t20, . . . ,tk 0) be a point of U. Suppose that f is differentiable at C. If f has a local extremum at C, then
∂f
∂ti
=0 where i = 1, 2,. . ., k.
Let pi(ti0)be i-th vertex of an AESP, where i=1,2, . . . ,k. Then we have the following:
Lemma 1.3(t10,t20, . . . ,tk0)is a critical point of d(t1,t2, . . . ,tk).
Proof d(t1,t2, . . . ,tk)is differentiable at each point (t1,t2, . . . ,tk)∈[0,1]k
Because AESPn(S)is the nth polygonal path of S, where n=1,2, . . ., and AESP=lim
n→∞AESPn(S)
it follows that d(t10,t20, . . . ,tk0)is a local minimum of d(t1,t2, . . . ,tk). By Theo-rem 1.1,
∂d
∂ti
=0
where i = 1, 2, . . ., k. By Definition 1.2, (t10,t20, . . . ,tk 0)is a critical point of
d(t1,t2, . . . ,tk).
By Lemmas 1.2 and 1.3, we have the following:
Lemma 1.4 Any sequence S of pairwise disjoint segments has only a finite number of AESP critical point tuples.
This is our first important lemma in this subsection. In the rest of this subsec-tion, based on Lemma 1.4, we show a much stronger result: S has actually only one (!) AESP critical point tuple.
Let pi= (pi1,pi2)be on si, for i=1,2,3. The proof of the following lemma specifies an explicit expression for the relation between parameter t and the opti-mum point p2.
Lemma 1.5 Optimum point p2∈s2, defined by
de(p2,p1) +de(p2,p3) =min{p′2: de(p′2,p1) +de(p′2,p3)∧p′2∈s2} can be computed inO(1)time.
Proof Let the two endpoints of s2be a2= (a21,a22)and b2= (b21,b22). Let p1= (p11,p12). Point p2can be written as
(a21+ (b21−a21)t,a22+ (b22−a22)t) The formula
de(p2,p1) = s 2
i=1
∑
[(a2i−p1i) + (b2i−a2i)t]2
can be simplified: We can rotate the coordinate system such that s2is parallel to one of the two coordinate axes. It follows that only one element of the set
{b2i−a2i: i=1,2}
is equal to a real numberα 6=0, and the other is equal to 0. Without loss of generality we can assume that
de(p2,p1) =
q(αt+A1)2+B1
where A1and B1are functions of a2i,b2i and p1i, for i = 1, 2. – Analogously, de(p2,p3) =
q(αt+A2)2+B2
where A2and B2are functions of a2i,b2i and p3i, for i = 1, 2. In order to find a point p2∈s2such that
de(p2,p1) +de(p2,p3) =min{p′2: de(p′2,p1) +de(p′2,p3),p2∈s2} we can solve the equation
∂(de(p2,p1) +de(p2,p3))
∂t =0
The unique solution is
t=−1/α×(A1B2+A2B1)/(B2+B1)
This proves the lemma.
By the proof of Lemma 1.5, assuming the representation pi= (ai1+ (bi1−ai1)ti,ai2+ (bi2−ai2)ti)
we have defined a function f , t2=f(t1,t3), for which we have the following:
Lemma 1.6 The function t2=f(t1,t3)is continuous at each tuple (t1,t3)∈[0,1]2.
This is used to prove the following:
Lemma 1.7 If P→rb1 Q, then for every sufficiently small realε>0, there is a sufficiently small realδ>0 such that P′∈Uδ(P)and P′→rb1 Q′ implies Q′∈ Uε(Q).
Proof By Lemma 1.5 and note that S has k segments; thus we use Lemma 1.6
repeatedly k times, and this proves this lemma.
By Lemma 1.7, we have the following:
Lemma 1.8 If P→rbn Q, then, for every sufficiently small realε>0, there is a sufficiently small real δε>0 and a sufficiently large integer Nε, such that P′∈ Uδε(P) and P′→rbn′ Q′implies Q′∈Uε(Q), where n′is an integer and n′>Nε.
This lemma is used to prove Lemma 1.12; the latter one and the following three lemmas are then finally applied to prove the second important lemma (i.e., Lemma 1.13) in this section. Lemmas 1.13 and 1.3 imply then the main theorem (i.e., Theorem 1.2 below) of this section.
By Lemma 1.4, let Q1,Q2, . . . ,QN with N≥1 be the set of all AESP critical point tuples of S. Letεbe a sufficiently small positive real such that
Uε(Qi)∩Uε(Qj) =/0 for i,j=1,2, . . . ,N and i6=j. Let
Di={P : P→Q′∧Q′∈Uε(Qi)∧P∈[0,1]k} for i=1,2, . . . ,N.
The statements in the following two lemmas are obvious:
Lemma 1.9 If N>1 then Di∩Dj=/0, for i,j=1,2, . . . ,N and i6=j.
Lemma 1.10 SNi=1Di= [0,1]k
We consider the Euclidean topology T on Rk, and its relativization T = Rk|[0,1]k.
Lemma 1.11 Diis an open set of T , where i=1,2, . . . ,N with N≥1.
Proof By Lemma 1.8, for each P∈Di, there is a sufficiently small realδP>0 such that
UδP(P)⊆Di So we have
[ P∈Di
UδP(P)⊆Di On the other hand, for P∈UδP(P), we have
Di=∪P⊆ [
P∈Di
UδP(P)
Note that UδP(P)is an open set of T . Thus, Di= [
P∈Di
UδP(P)
is an open set of T .
The following basic lemma is characterizing open sets in general14(see Propo-sition 5.1.4).
Lemma 1.12 Let U⊂Rbe an arbitrary open set. Then there are countably many pairwise disjoint open intervals Unsuch that U=∪Un.
Now we are prepared to approach the second important lemma in this subsec-tion:
Lemma 1.13 S has a unique AESP critical point tuple.
Proof By contradiction. Suppose that Q1,Q2, . . . ,QN with N>1 are all the AESP critical point tuples of S. Then there exists i∈ {1,2, . . .,N}such that
Di|sj ⊂[0,1]
where sjis a segment in S, for i,j=1,2, . . . ,N. Otherwise we have D1=D2=···=DN
This is a contradiction to Lemma 1.9.
Let
E={sj: Di|sj⊆[0,1]}
where sjis any segment in S. We can select a critical point tuple of S as follows:
go through each s∈ {s1,s2, . . . ,sk}. If e∈E, by Lemmas 1.11 and 1.12, select the minimum left endpoint of the open intervals whose union is Di|s. Otherwise select the midpoint of s. We denote the resulting critical point tuple as
P= (p1,p2, . . . ,pk)
By the selection of P, we know that P is not in Di. By Lemma 1.10 there is a j∈ {1,2, . . .,N} − {i}such that P∈Dj. Therefore, there is a sufficiently small realδ>0 such that Uδ(P)⊂Dj. Again by the selection of P, there is a sufficiently small realδ′>0 such that Uδ′(P)∩Di6=/0. Letδ′′=min{δ,δ′}. Then we have Uδ′′(P)⊂Dj and Uδ′′(P)∩Di6= /0. This implies that Di∩Dj6= /0, and this is a
contradiction to Lemma 1.9.
Let S be a sequence of pairwise disjoint segments. Let AESPn(S)be the nth approximate polygonal path of S, for n=1,2, . . .. The subsection has shown that
AESP=lim
n→∞AESPn(S)
exists, and we can conclude the following main result of this section:
Theorem 1.2 The AESP of S is the ESP of S, or, in short AESP=ESP.
Proof By Lemma 1.13 and the proof of Lemma 1.3, d(t1,t2, . . . ,tk)has a unique local minimal value. This implies that the AESP of S is the ESP of S.