o Proof: Suppose that there is a path p from v, to and the length of this path less than l(v) Then the path p must conclude some vertices of Vi 路
❖ Proof: Suppose that there is a path p from v1 to v', and the length of this path less than l(v'). ❖ Then the path p must conclude some vertices of T-{v'}
令l(v)? 令(1)S={v1},T=V-{v1,forv∈T W,ν){,吟∈E l()= otherwise (2)For SCV, T=v-S, suppose that these vertices of the shortest paths from vi to any vertices of s are in S. By Theorem 5.12(minver(v)=lVR, VKET), we gained the result which I(vR is the length of the shortest path from v, to vk(distance)o The vertex v is added to s (Let S=SUlk, T=T-VR, VET. Suppose that /(v) is the length of a shortest path from v, to v containing only vertices in S. Then /'(v)=min(l(v), l(vk)+w(vRv) (4Let S=S,T=T,l(v=l(v), goto(2)
❖ l(v)? ❖ (1) S={v1 },T=V-{v1 },for vT (2)For SV, T=V-S, suppose that these vertices of the shortest paths from v1 to any vertices of S are in S. By Theorem 5.12(minvT{l(v)}=l(vk ), vkT), we gained the result which l(vk ) is the length of the shortest path from v1 to vk (distance)。The vertex vk is added to S. (3)Let S'=S∪{vk }, T'=T-{vk }, vT'. Suppose that l'(v) is the length of a shortest path from v1 to v containing only vertices in S'. Then l'(v)=min{l(v),l(vk )+w(vk ,v))} (4)Let S=S',T=T', l(v)=l'(v), goto (2) + = otherwise w v v v v E l v ( , ) { , } ( ) 1 1
7 5 6 S=a,b,=c,d, e, z 令l(c)=3,l(e)=6,l(d)=8,l(z)=+∞o 令 mInuet{(v)}=l(c)=3 s’={a,b,c},T={d,e, 6o e=min(e), l(c)+w(c, e)=4, oo l'(d=min l(d), l(c)+w(c, d)=8, w(c,d)=+∞ 令I(z)=min{(z),l(c)+w(C,2)}=+
❖ S={a,b},T={c,d,e,z} ❖ l(c)=3,l(e)=6, l(d)=8, l(z)=+。 ❖ minvT{l(v)}=l(c)=3 ❖ S’={a,b,c}, T’={d,e,z} ❖ l'(e)=min{ l(e), l(c)+w(c,e)}=4, ❖ l'(d)=min{l(d), l(c)+w(c,d)}=8, ❖ w(c,d)= + ❖ l'(z)=min{l(z), l(c)+w(c,z)}= +
令 Theoren513:Forv∈T,P(v)=min{v), +WVKs v)I 令 Proof:Lets=su{v o Suppose that /'(v) is the length of a shortest path from vI to v containing only vertices in S o(1There are some paths from vi to v, but these paths don't contain the vertex v, and other vertices of t. Then l(v) is the length of the shortest path of these paths, i.e. (v)=(v) 4s(2)There are some paths from v, to v, these paths from vI to Vk don't contain other vertices of T, and the vertex Vk adjacent edge vkv. Then l(v+w(vk,v) is the length of the shortest path of these paths, viz l'(v=l(vR+w vkv)
❖ Theorem 5.13: For vT‘, l’(v)= min{l(v), l(vk )+w(vk , v)} ❖ Proof: Let S'=S∪{vk }. ❖ Suppose that l‘(v) is the length of a shortest path from v1 to v containing only vertices in S’. ❖ (1)There are some paths from v1 to v, but these paths don’t contain the vertex vk and other vertices of T'. Then l(v) is the length of the shortest path of these paths, i.e. l'(v)=l(v)。 ❖ (2)There are some paths from v1 to v, these paths from v1 to vk don’t contain other vertices of T', and the vertex vk adjacent edge {vk ,v}. Then l(vk )+w(vk ,v) is the length of the shortest path of these paths, viz l'(v)= l(vk )+w(vk ,v)