From a605561ddb961f43b75332229e4ade40e0ce20dc Mon Sep 17 00:00:00 2001 From: hkr04 Date: Wed, 1 Apr 2020 08:23:44 +0800 Subject: [PATCH] update from gridea: 2020-04-01 08:23:44 --- 00iKSZT709/index.html | 2 +- 0YiuqRXga/index.html | 2 +- AUx6Qb151/index.html | 2 +- AUx6Qb151/page/2/index.html | 2 +- BHy59ue1j/index.html | 2 +- BHy59ue1j/page/2/index.html | 2 +- BHy59ue1j/page/3/index.html | 2 +- Dinic/index.html | 2 +- Edmunds-Karp/index.html | 2 +- Integer-valued-function/index.html | 2 +- OTgD04CC8/index.html | 2 +- about/index.html | 2 +- archives/index.html | 2 +- atom.xml | 6 +++--- fenwick-tree-plus/index.html | 2 +- index.html | 2 +- magic-balls-problem/index.html | 2 +- network-flows/index.html | 6 +++--- page/2/index.html | 2 +- page/3/index.html | 2 +- page/4/index.html | 2 +- pilots-matching/index.html | 2 +- qkZ2mtZDC/index.html | 2 +- rbBIcRlbH/index.html | 2 +- rbBIcRlbH/page/2/index.html | 2 +- rdrsFYwkR/index.html | 2 +- rdrsFYwkR/page/2/index.html | 2 +- round-table-problem/index.html | 2 +- segment-tree/index.html | 2 +- tags/index.html | 2 +- the-smallest-path-cover/index.html | 2 +- 31 files changed, 35 insertions(+), 35 deletions(-) diff --git a/00iKSZT709/index.html b/00iKSZT709/index.html index f5e77aa..d0dea0f 100644 --- a/00iKSZT709/index.html +++ b/00iKSZT709/index.html @@ -7,7 +7,7 @@ hkr04‘s blogs - + diff --git a/0YiuqRXga/index.html b/0YiuqRXga/index.html index 0c0e426..385a910 100644 --- a/0YiuqRXga/index.html +++ b/0YiuqRXga/index.html @@ -7,7 +7,7 @@ hkr04‘s blogs - + diff --git a/AUx6Qb151/index.html b/AUx6Qb151/index.html index 8dfc4e0..c1dc2f6 100644 --- a/AUx6Qb151/index.html +++ b/AUx6Qb151/index.html @@ -7,7 +7,7 @@ hkr04‘s blogs - + diff --git a/AUx6Qb151/page/2/index.html b/AUx6Qb151/page/2/index.html index 8dfc4e0..c1dc2f6 100644 --- a/AUx6Qb151/page/2/index.html +++ b/AUx6Qb151/page/2/index.html @@ -7,7 +7,7 @@ hkr04‘s blogs - + diff --git a/BHy59ue1j/index.html b/BHy59ue1j/index.html index 3d9a879..fddcdb5 100644 --- a/BHy59ue1j/index.html +++ b/BHy59ue1j/index.html @@ -7,7 +7,7 @@ hkr04‘s blogs - + diff --git a/BHy59ue1j/page/2/index.html b/BHy59ue1j/page/2/index.html index 3d9a879..fddcdb5 100644 --- a/BHy59ue1j/page/2/index.html +++ b/BHy59ue1j/page/2/index.html @@ -7,7 +7,7 @@ hkr04‘s blogs - + diff --git a/BHy59ue1j/page/3/index.html b/BHy59ue1j/page/3/index.html index 3d9a879..fddcdb5 100644 --- a/BHy59ue1j/page/3/index.html +++ b/BHy59ue1j/page/3/index.html @@ -7,7 +7,7 @@ hkr04‘s blogs - + diff --git a/Dinic/index.html b/Dinic/index.html index 490493c..b60459c 100644 --- a/Dinic/index.html +++ b/Dinic/index.html @@ -7,7 +7,7 @@ Dinic算法 | hkr04‘s blogs - + diff --git a/Edmunds-Karp/index.html b/Edmunds-Karp/index.html index 92b6e02..e7c1231 100644 --- a/Edmunds-Karp/index.html +++ b/Edmunds-Karp/index.html @@ -7,7 +7,7 @@ Edmunds-Karp算法 | hkr04‘s blogs - + diff --git a/Integer-valued-function/index.html b/Integer-valued-function/index.html index 845a7dc..24c9313 100644 --- a/Integer-valued-function/index.html +++ b/Integer-valued-function/index.html @@ -7,7 +7,7 @@ 取整函数的性质 | hkr04‘s blogs - + diff --git a/OTgD04CC8/index.html b/OTgD04CC8/index.html index b5767a8..e7030eb 100644 --- a/OTgD04CC8/index.html +++ b/OTgD04CC8/index.html @@ -7,7 +7,7 @@ hkr04‘s blogs - + diff --git a/about/index.html b/about/index.html index a9afb0d..4075dec 100644 --- a/about/index.html +++ b/about/index.html @@ -7,7 +7,7 @@ 关于 | hkr04‘s blogs - + diff --git a/archives/index.html b/archives/index.html index 8f15d3a..76b9fe9 100644 --- a/archives/index.html +++ b/archives/index.html @@ -7,7 +7,7 @@ hkr04‘s blogs - + diff --git a/atom.xml b/atom.xml index 392afbc..cbc71a3 100644 --- a/atom.xml +++ b/atom.xml @@ -2,7 +2,7 @@ https://hkr04.github.io hkr04‘s blogs - 2020-03-31T15:47:16.268Z + 2020-04-01T00:23:41.131Z https://github.com/jpmonette/feed @@ -66,8 +66,8 @@

反向边怎么用?因为找到的增广路不一定是最优的,反边给你“反悔”的机会。如果一条边边权为0,那么往回走的时候并不会对流量有所影响(走不回去)。所以一开始反边的边权应该存0。当正向边减去流过这条边的增广路上容量最小值d(此时这个值已经被加入到了答案)的时候,反向边应该加上d(因为对于源点和汇点来说中间流量的这些变化都是无差别的,为了保证反向正向相加得原边权,也就是不改变原本的条件就得这么做)

-

Edmonds-Karp(EK) 便是不断用BFS\text{BFS}来寻找增广路,直到图中不存在增广路的算法。

-

但是如果一条一条地找出增广路,万一有一些极(毒)端(瘤)数据(比如几条相邻的边容量相差特别大),这个时间复杂度就是无法承受的。Dinic的高效之处在于它能够同时找出几条增广路.

+

Edmonds-Karp(EK) 便是不断用BFS\text{BFS}来寻找增广路,直到图中不存在增广路的算法。

+

但是如果一条一条地找出增广路,万一有一些极(毒)端(瘤)数据(比如几条相邻的边容量相差特别大),这个时间复杂度就是无法承受的。Dinic的高效之处在于它能够同时找出几条增广路.

关于最大流,我还没有讲完!当然,实际上在大部分情况下以上两个算法已经够用(我认为)。可以先跳过剩下有关最大流的算法。

(这里应该有ISAP和HLPP)

最大流/最小割 练习题

diff --git a/fenwick-tree-plus/index.html b/fenwick-tree-plus/index.html index 4b16d2d..457c8cc 100644 --- a/fenwick-tree-plus/index.html +++ b/fenwick-tree-plus/index.html @@ -7,7 +7,7 @@ 线段树?树状数组! | hkr04‘s blogs - + diff --git a/index.html b/index.html index 4da60b4..f01b1cc 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ hkr04‘s blogs - + diff --git a/magic-balls-problem/index.html b/magic-balls-problem/index.html index 1d0ab01..a577b64 100644 --- a/magic-balls-problem/index.html +++ b/magic-balls-problem/index.html @@ -7,7 +7,7 @@ 魔术球问题 | hkr04‘s blogs - + diff --git a/network-flows/index.html b/network-flows/index.html index 6f794f4..a23c140 100644 --- a/network-flows/index.html +++ b/network-flows/index.html @@ -7,7 +7,7 @@ 网络流 | hkr04‘s blogs - + @@ -559,8 +559,8 @@

一些小细节

反向边怎么用?因为找到的增广路不一定是最优的,反边给你“反悔”的机会。如果一条边边权为0,那么往回走的时候并不会对流量有所影响(走不回去)。所以一开始反边的边权应该存0。当正向边减去流过这条边的增广路上容量最小值d(此时这个值已经被加入到了答案)的时候,反向边应该加上d(因为对于源点和汇点来说中间流量的这些变化都是无差别的,为了保证反向正向相加得原边权,也就是不改变原本的条件就得这么做)

-

Edmonds-Karp(EK) 便是不断用BFS\text{BFS}来寻找增广路,直到图中不存在增广路的算法。

-

但是如果一条一条地找出增广路,万一有一些极(毒)端(瘤)数据(比如几条相邻的边容量相差特别大),这个时间复杂度就是无法承受的。Dinic的高效之处在于它能够同时找出几条增广路.

+

Edmonds-Karp(EK) 便是不断用BFS\text{BFS}来寻找增广路,直到图中不存在增广路的算法。

+

但是如果一条一条地找出增广路,万一有一些极(毒)端(瘤)数据(比如几条相邻的边容量相差特别大),这个时间复杂度就是无法承受的。Dinic的高效之处在于它能够同时找出几条增广路.

关于最大流,我还没有讲完!当然,实际上在大部分情况下以上两个算法已经够用(我认为)。可以先跳过剩下有关最大流的算法。

(这里应该有ISAP和HLPP)

最大流/最小割 练习题

diff --git a/page/2/index.html b/page/2/index.html index 69952de..beafd3a 100644 --- a/page/2/index.html +++ b/page/2/index.html @@ -7,7 +7,7 @@ hkr04‘s blogs - + diff --git a/page/3/index.html b/page/3/index.html index 8b8d651..c3bfa8c 100644 --- a/page/3/index.html +++ b/page/3/index.html @@ -7,7 +7,7 @@ hkr04‘s blogs - + diff --git a/page/4/index.html b/page/4/index.html index c3975c2..ad8bf2f 100644 --- a/page/4/index.html +++ b/page/4/index.html @@ -7,7 +7,7 @@ hkr04‘s blogs - + diff --git a/pilots-matching/index.html b/pilots-matching/index.html index 777edb6..77ce954 100644 --- a/pilots-matching/index.html +++ b/pilots-matching/index.html @@ -7,7 +7,7 @@ 飞行员配对方案 | hkr04‘s blogs - + diff --git a/qkZ2mtZDC/index.html b/qkZ2mtZDC/index.html index 3b76d1f..1c5c537 100644 --- a/qkZ2mtZDC/index.html +++ b/qkZ2mtZDC/index.html @@ -7,7 +7,7 @@ hkr04‘s blogs - + diff --git a/rbBIcRlbH/index.html b/rbBIcRlbH/index.html index ed7327a..8052b13 100644 --- a/rbBIcRlbH/index.html +++ b/rbBIcRlbH/index.html @@ -7,7 +7,7 @@ hkr04‘s blogs - + diff --git a/rbBIcRlbH/page/2/index.html b/rbBIcRlbH/page/2/index.html index ed7327a..8052b13 100644 --- a/rbBIcRlbH/page/2/index.html +++ b/rbBIcRlbH/page/2/index.html @@ -7,7 +7,7 @@ hkr04‘s blogs - + diff --git a/rdrsFYwkR/index.html b/rdrsFYwkR/index.html index 61b0139..a7bac0f 100644 --- a/rdrsFYwkR/index.html +++ b/rdrsFYwkR/index.html @@ -7,7 +7,7 @@ hkr04‘s blogs - + diff --git a/rdrsFYwkR/page/2/index.html b/rdrsFYwkR/page/2/index.html index 61b0139..a7bac0f 100644 --- a/rdrsFYwkR/page/2/index.html +++ b/rdrsFYwkR/page/2/index.html @@ -7,7 +7,7 @@ hkr04‘s blogs - + diff --git a/round-table-problem/index.html b/round-table-problem/index.html index cb38013..5c9e1cc 100644 --- a/round-table-problem/index.html +++ b/round-table-problem/index.html @@ -7,7 +7,7 @@ 圆桌问题 | hkr04‘s blogs - + diff --git a/segment-tree/index.html b/segment-tree/index.html index 76e1c75..948efe5 100644 --- a/segment-tree/index.html +++ b/segment-tree/index.html @@ -7,7 +7,7 @@ 线段树入门 | hkr04‘s blogs - + diff --git a/tags/index.html b/tags/index.html index e2fdbd8..a1de2fe 100644 --- a/tags/index.html +++ b/tags/index.html @@ -7,7 +7,7 @@ hkr04‘s blogs - + diff --git a/the-smallest-path-cover/index.html b/the-smallest-path-cover/index.html index bcb2a43..df4fa73 100644 --- a/the-smallest-path-cover/index.html +++ b/the-smallest-path-cover/index.html @@ -7,7 +7,7 @@ 最小路径覆盖问题 | hkr04‘s blogs - +