📄 preflow_push_anim.doc
字号:
~~1:~\bf procedure \tt preprocess~~2:~\bf begin~~3:~~~~~\tt compute the exact distance labels dist(.) ~~4:~~~~~\tt dist(s) := |V|~~5:~~~~~\bf forall \tt edges e incident to s \bf do \tt saturate e\n~~6:~\bf end~~7:~\bf procedure \tt push/relabel(v)~~8:~\bf begin~~9:~~~~\bf if \tt the network contains an admissible arc (v,w)~ \bf then10:~~~~~~~~\tt push min{ excess(v), rcap(v,w) } units of flow from v to w 11:~~~~\bf else 12:~~~~~~~~\tt replace dist(v) by min{ dist(w)+1 : rcap(v,w) > 0 } 13:~\bf end14:~\bf procedure \tt preflow-push15:~\bf begin16:~~~~\tt preprocess17:~~~~\bf while \tt the network contains an active node \bf do18:~~~~~~~~\tt select an active node v19:~~~~~~~~\tt push/relabel(v)20:~\bf end\bf Ahuja, Magnanti, Orlin:\blue Network Algorithms.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -