Skip to Content
アルゴリズムクイックリファレンス 第2版
book

アルゴリズムクイックリファレンス 第2版

by George T. Heineman, Gary Pollice, Stanley Selkow, 黒川 利明, 黒川 洋
December 2016
Intermediate to advanced
440 pages
9h 44m
Japanese
O'Reilly Japan, Inc.
Content preview from アルゴリズムクイックリファレンス 第2版
264
8
章 ネットワークフローアルゴリズム
8.3.1
 入出力
二部マッチング問題は、
n
個の要素
s
i
S
の集合
S
m
人のパートナー
t
j
T
の集
T
、要素
s
i
S
をパートナー
t
j
T
に関係付ける
p
個の受理可能対
p
k
P
の集合
P
とからなる。集合
S
T
は、互いに素であり、そこからこの問題の名前が来ている。
出力は、受理可能対の集合
P
から選ばれた対
(s
i
, t
j
)
の部分集合。これらの対が、
最大個数のマッチング可能対を表す。アルゴリズムは、これ以上多くの対はマッチ
ングできないことを保証する(ただし、同じ個数の対を得る他のマッチングはある
かもしれない)。
8.3.2
 解
この問題を解く新しいアルゴリズムを作る代わりに、二部マッチング問題を最大
フロー問題に帰着させる。二部マッチングでは、要素
s
i
S
とパートナー
t
j
T
マッチング
(s
i
, t
j
)
を選ぶと、両者とも他の対には選ばれない。フローネットワーク
グラフ
G
(V, E)
において、同じ振る舞いをさせるには、
G
を次のように構築する。
V
n
m
+2 個の頂点を持つ
各要素
s
i
を、
i
という番号の節点に、パートナー
t
j
を番号
n
j
の節点に対
応させる。新たなソース節点
src (
ラベル
0)
および新たな目標節点
tgt (
ベル
n
m
1)
を作る。
E
n
m
k
個の辺を持つ
新しい節点
src
から
S
の節点への
n
個の辺がある。
T
の節点から新しい節
tgt
への
m
個の辺がある。
k
個の対、各
p
k
(s
i
, t
j
)
に対応して、辺
(i, n
j)
を追加する。これらの辺のフロー容量は ...
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, 下田 倫大, 長尾 高弘
Rクイックリファレンス 第2版

Rクイックリファレンス 第2版

Joseph Adler, 大橋 真也, 木下 哲也
プログラミングRust 第2版

プログラミングRust 第2版

Jim Blandy, Jason Orendorff, Leonora F. S. Tindall, 中田 秀基
Rではじめるデータサイエンス

Rではじめるデータサイエンス

Hadley Wickham, Garrett Grolemund, 黒川 利明, 大橋 真也

Publisher Resources

ISBN: 9784873117850Other