Skip to Content
算法技术手册(原书第2 版)
book

算法技术手册(原书第2 版)

by George T.Heineman, Gary Pollice, Stanley Selkow
August 2017
Intermediate to advanced
360 pages
8h 35m
Chinese
China Machine Press
Content preview from 算法技术手册(原书第2 版)
网络流算法
219
网络流算法
一个衍生版本又名多重物资流问题,泛化之后就是最大流问题。简单地说,这种问题中
的网络具有多个源点和汇点,例如考虑在多个源顶点
s
i
和汇点
t
i
之间运输物资。尽管
边的容量是固定的,但是每对汇点和源点的使用需求并不一样。现实中,这种算法被
应用于解决无线网络中的路由问题(
Fragouli
Tabet
2006
)。
Leighton
Rao
曾经写
过一篇被广泛引用的关于多重物资流问题的文章(
1999
)。
最大流的一些简单延伸如下:
顶点容量
如果流网络中的每个顶点
v
都有一个最大容量
k
(
v
)
,那么将会如何呢?我们可以通
过构建一个修改过的图
G
m
来解决问题。
G
中的每个顶点
v
,构建两个顶点
v
a
v
b
,并且创建一条流容量为
k
(
v
)
的边
(
v
a
,
v
b
)
。对于
G
中容量为
c
(
u
,
v
)
的入边
(
u
,
v
)
在修改后的图中创建容量为
c
(
u
,
v
)
的新边
(
u
,
v
a
)
。而对于
G
中的出边
(
v
,
w
)
,在
G
m
中创建容量为
k
(
v
)
的边
(
v
b
,
w
)
。解出
G
m
也就得到了
G
的解。
无向边
如果流网络
G
中有着无向边,该怎么办呢?我们可以构建一个拥有相同顶点集合的
流网络
G
m
。对于
G
中容量为
c
(
u
,
v
)
的边
(
u
,
v
)
,在新图中创建一对边
(
u
,
v
)
(
v
,
u
)
每条边的容量都为
c
(
u
,
v
)
。解出
G
m
也就得到了
G
的解。
8.3 二分图匹配
匹配问题有多种形式。例如,五个求职者面试五个职位。每个求职者都已经列出了自己
能胜任的职位现在的任务就是尽可能多地工作分配给求职者,但是每份工作只能提
供给一位求职者。 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

机器学习实战:基于Scikit-Learn、Keras 和TensorFlow (原书第2 版)

机器学习实战:基于Scikit-Learn、Keras 和TensorFlow (原书第2 版)

Aurélien Géron
Go语言编程

Go语言编程

威廉·肯尼迪

Publisher Resources

ISBN: 9787111562221