Unverified Commit ef48d322 authored by Shuhao Zhang's avatar Shuhao Zhang Committed by GitHub
Browse files

🐛 fix typo

parent 15cc6836
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -303,7 +303,7 @@ Johnson 算法则通过另外一种方法来给每条边重新标注边权。

在重新标记后的图上,从 $s$ 点到 $t$ 点的一条路径 $s \to p_1 \to p_2 \to \dots \to p_k \to t$ 的长度表达式如下:

 $(w(s,p_1)+h_w-h_{p_1})+(w(p_1,p_2)+h_{p_1}-h_{p_2})+ \dots +(w(p_k,t)+h_{p_k}-h_t)$ 
 $(w(s,p_1)+h_s-h_{p_1})+(w(p_1,p_2)+h_{p_1}-h_{p_2})+ \dots +(w(p_k,t)+h_{p_k}-h_t)$ 

化简后得到: