SlideShare a Scribd company logo
1 of 58
Xyca. @ei1640
劣モジュラ関数ってなに?
集合関数
集合を渡すと、実数が返ってくる関数
劣モジュラ関数ってなに?
上の不等式を満たしている集合関数
は何らかの良さ or 悪さを返す
ねっとわーくふろー
蟻本に載っているアレ
Xyca.さんは夏季セミナーで初めて勉強しました
知ってる人はごめんね(許して
今回は、Ford-Fulkerson法ではなく
Dinic法の説明をしてみるよ
ねっとわーくふろー
s
t
3
1
2
5Mbps
3Mbps 8Mbps
6Mbps
6Mbps
2Mbps
10Mbps
sからtまでに一秒間に送れる、最大のデータ量を求める
ねっとわーくふろー
0
1
1
2
2
s
t
3
1
2
sからtまでBFSをする
5Mbps
3Mbps 8Mbps
6Mbps
6Mbps
2Mbps
10Mbps
ねっとわーくふろー
0
1
1
2
2
s
t
3
1
2
更新ができなくなるまでDFSする
5Mbps
3Mbps 8Mbps
6Mbps
6Mbps
2Mbps
10Mbps
INF
BFSで求めた、現在地より数値の大きい方へ進む
現在の送れるデータの最大量が、
通った道より大きかったら、値を更新する
ねっとわーくふろー
0
1
1
2
2
s
t
3
1
2
更新ができなくなるまでDFSする
5Mbps
3Mbps 8Mbps
6Mbps
6Mbps
2Mbps
10Mbps
INF
ねっとわーくふろー
0
1
1
2
2
s
t
3
1
2
更新ができなくなるまでDFSする
5Mbps
3Mbps 8Mbps
6Mbps
6Mbps
2Mbps
10Mbps INF
ねっとわーくふろー
0
1
1
2
2
s
t
3
1
2
更新ができなくなるまでDFSする
5Mbps
3Mbps 8Mbps
6Mbps
6Mbps
2Mbps
10Mbps INF10
ねっとわーくふろー
0
1
1
2
2
s
t
3
1
2
更新ができなくなるまでDFSする
5Mbps
3Mbps 8Mbps
6Mbps
6Mbps
2Mbps
10Mbps
10
ねっとわーくふろー
0
1
1
2
2
s
t
3
1
2
更新ができなくなるまでDFSする
5Mbps
3Mbps 8Mbps
6Mbps
6Mbps
2Mbps
10Mbps
10
6
ねっとわーくふろー
0
1
1
2
2
s
t
3
1
2
更新ができなくなるまでDFSする
5Mbps
3Mbps 8Mbps
6Mbps
6Mbps
2Mbps
10Mbps
10
6
行ける場所がない
ゼロを返す
ねっとわーくふろー
0
1
1
2
2
s
t
3
1
2
更新ができなくなるまでDFSする
5Mbps
3Mbps 8Mbps
6Mbps
6Mbps
2Mbps
10Mbps 10
ねっとわーくふろー
0
1
1
2
2
s
t
3
1
2
更新ができなくなるまでDFSする
5Mbps
3Mbps 8Mbps
6Mbps
6Mbps
2Mbps
10Mbps 10
3の他に行ける場所がない
0を返す
ねっとわーくふろー
0
1
1
2
2
s
t
3
1
2
更新ができなくなるまでDFSする
5Mbps
3Mbps 8Mbps
6Mbps
6Mbps
2Mbps
10Mbps
INF
ねっとわーくふろー
0
1
1
2
2
s
t
3
1
2
更新ができなくなるまでDFSする
5Mbps
3Mbps 8Mbps
6Mbps
6Mbps
2Mbps
10Mbps
INF
ねっとわーくふろー
0
1
1
2
2
s
t
3
1
2
更新ができなくなるまでDFSする
5Mbps
3Mbps 8Mbps
6Mbps
6Mbps
2Mbps
10Mbps
INF
2
ねっとわーくふろー
0
1
1
2
2
s
t
3
1
2
更新ができなくなるまでDFSする
5Mbps
3Mbps 8Mbps
6Mbps
6Mbps
2Mbps
10Mbps
2
ねっとわーくふろー
0
1
1
2
2
s
t
3
1
2
更新ができなくなるまでDFSする
5Mbps
3Mbps 8Mbps
6Mbps
6Mbps
2Mbps
10Mbps
2
tについた
数字をそのまま返す
ねっとわーくふろー
0
1
1
2
2
s
t
3
1
2
更新ができなくなるまでDFSする
5Mbps
3Mbps 8Mbps
6Mbps
6Mbps
2Mbps
10Mbps
2
ねっとわーくふろー
0
1
1
2
2
s
t
3
1
2
更新ができなくなるまでDFSする
3Mbps 8Mbps
6Mbps
6Mbps
2Mbps
10Mbps
反対側に水を流すイメージ
2Mbps
3Mbps2
ねっとわーくふろー
0
1
1
2
2
s
t
3
1
2
3Mbps
更新ができなくなるまでDFSする
3Mbps 8Mbps
6Mbps
6Mbps
2Mbps
10Mbps
2Mbps
2
ねっとわーくふろー
0
1
1
2
2
s
t
3
1
2
3Mbps
更新ができなくなるまでDFSする
3Mbps 8Mbps
6Mbps
6Mbps
10Mbps
2Mbps
2Mbps
0Mbps
2
ねっとわーくふろー
0
1
2
2
3
s
t
3
1
2
3Mbps
sからtへBFSをする
3Mbps 8Mbps
6Mbps
6Mbps
0Mbps
10Mbps
2Mbps
2Mbps
ねっとわーくふろー
0
1
2
2
3
s
t
3
1
2
3Mbps
DFS
3Mbps 8Mbps
6Mbps
6Mbps
0Mbps
10Mbps
2Mbps
2Mbps
INF
ねっとわーくふろー
0
1
2
2
3
s
t
3
1
2
3Mbps
DFS
3Mbps 8Mbps
6Mbps
6Mbps
0Mbps
10Mbps
2Mbps
2Mbps
INF
ねっとわーくふろー
0
1
2
2
3
s
t
3
1
2
3Mbps
DFS
3Mbps 8Mbps
6Mbps
6Mbps
0Mbps
10Mbps
2Mbps
2Mbps
INF
10
ねっとわーくふろー
0
1
2
2
3
s
t
3
1
2
3Mbps10
DFS
3Mbps 8Mbps
6Mbps
6Mbps
0Mbps
10Mbps
2Mbps
2Mbps
ねっとわーくふろー
0
1
2
2
3
s
t
3
1
2
3Mbps10
DFS
3Mbps 8Mbps
6Mbps
6Mbps
0Mbps
10Mbps
2Mbps
2Mbps
6
ねっとわーくふろー
0
1
2
2
3
s
t
3
1
2
3Mbps 3
DFS
3Mbps 8Mbps
6Mbps
6Mbps
0Mbps
10Mbps
2Mbps
2Mbps
6
ねっとわーくふろー
0
1
2
2
3
s
t
3
1
2
3Mbps 3
DFS
3Mbps 8Mbps
6Mbps
6Mbps
0Mbps
10Mbps
2Mbps
2Mbps
ねっとわーくふろー
0
1
2
2
3
s
t
3
1
2
3Mbps
DFS
3Mbps 8Mbps
6Mbps
6Mbps
0Mbps
10Mbps
2Mbps
2Mbps
3
ねっとわーくふろー
0
1
2
2
3
s
t
3
1
2
DFS
3Mbps 8Mbps
6Mbps
6Mbps
0Mbps
10Mbps
2Mbps
0Mbps
5Mbps
3
ねっとわーくふろー
0
1
2
2
3
s
t
3
1
2
0Mbps
3
DFS
3Mbps 8Mbps
6Mbps
6Mbps
0Mbps
10Mbps
5Mbps
2Mbps
ねっとわーくふろー
0
1
2
2
3
s
t
3
1
2
0Mbps
DFS
3Mbps 8Mbps
6Mbps
0Mbps
10Mbps
5Mbps
2Mbps
3Mbps
3Mbps
3
ねっとわーくふろー
0
1
2
2
3
s
t
3
1
2
0Mbps
3
DFS
3Mbps 8Mbps
6Mbps
0Mbps
10Mbps
5Mbps
2Mbps
3Mbps
3Mbps
ねっとわーくふろー
0
1
2
2
3
s
t
3
1
2
0Mbps
DFS
3Mbps 8Mbps
6Mbps
0Mbps
5Mbps
2Mbps
3Mbps
7Mbps
3Mbps
3Mbps
3
ねっとわーくふろー
0
1
2
2
3
s
t
3
1
2
0Mbps
DFS
3Mbps 8Mbps
6Mbps
0Mbps
5Mbps
2Mbps
10
7Mbps
3Mbps
3Mbps
3Mbps
ねっとわーくふろー
0
1
2
2
3
s
t
3
1
2
DFS
3Mbps 8Mbps
6Mbps
0Mbps
2Mbps
10
7Mbps
3Mbps
3Mbps
0Mbps
5Mbps
3Mbps
ねっとわーくふろー
0
1
2
2
3
s
t
3
1
2
DFS
3Mbps 8Mbps
6Mbps
0Mbps
2Mbps
10
7Mbps
3Mbps
6
3Mbps
0Mbps
5Mbps
3Mbps
ねっとわーくふろー
0
1
2
2
3
s
t
3
1
2
DFS
3Mbps 8Mbps
6Mbps
0Mbps
2Mbps
7Mbps
3Mbps
6
3Mbps
0Mbps
5Mbps
3Mbps
ねっとわーくふろー
0
1
2
2
3
s
t
3
1
2
DFS
3Mbps
6Mbps
0Mbps
2Mbps
7Mbps
3Mbps
6
3Mbps
0Mbps
5Mbps
3Mbps
8Mbps
ねっとわーくふろー
0
1
2
2
3
s
t
3
1
2
DFS
3Mbps
6Mbps
0Mbps
2Mbps
7Mbps
3Mbps
6Mbps
2Mbps
3Mbps
0Mbps
5Mbps
3Mbps
6
ねっとわーくふろー
0
1
2
2
3
s
t
3
1
2
DFS
3Mbps
6Mbps
0Mbps
2Mbps
7Mbps
3Mbps
6
6Mbps
2Mbps
3Mbps
0Mbps
5Mbps
3Mbps
ねっとわーくふろー
0
1
2
2
3
s
t
3
1
2
DFS
3Mbps
0Mbps
2Mbps
7Mbps
3Mbps
6Mbps
2Mbps
3Mbps
0Mbps
6Mbps
0Mbps
5Mbps
3Mbps
6
ねっとわーくふろー
0
1
2
2
3
s
t
3
1
2
DFS
3Mbps
0Mbps
2Mbps
7Mbps
3Mbps
6Mbps
2Mbps
3Mbps
0Mbps
6Mbps
0Mbps
5Mbps
3Mbps
6
ねっとわーくふろー
0
1
2
2
3
s
t
3
1
2
DFS
3Mbps
0Mbps
2Mbps
6Mbps
2Mbps
3Mbps
0Mbps
6Mbps
1Mbps
9Mbps
0Mbps
5Mbps
3Mbps
6
ねっとわーくふろー
0
1
2
-1
-1
s
t
3
1
2
sからtへBFSをする
3Mbps
0Mbps
2Mbps
6Mbps
2Mbps
3Mbps
0Mbps
6Mbps
1Mbps
9Mbps
0Mbps
5Mbps
3Mbps
ねっとわーくふろー
0
1
2
-1
-1
s
t
3
1
2
sからtへBFSをする
3Mbps
0Mbps
2Mbps
6Mbps
2Mbps
3Mbps
0Mbps
6Mbps
1Mbps
9Mbps
0Mbps
5Mbps
3Mbpsゴールへ行けなくなったので
これで終了
ねっとわーくふろー
カットについて考える
有向グラフを片方にs
もう一方にtが入るようにカットする
これをs-tカットという
s
t3
2
1
3
2
ねっとわーくふろー
カット関数
集合を渡すと、その集合をでて、他の集合に入
る枝の数値の総和を返す
s-tカットをする
s-tカット関数を定義する
3
2
1
3
2
ねっとわーくふろー
s-tカット関数は条件を満たすので
劣モジュラ関数である
容量が最小となるs-tカット
最小s-tカットを求める問題である最小s-tカット問題は
劣モジュラ関数最小化問題の特殊ケース
ねっとわーくふろー
0
1
2
-1
-1
s
t
3
1
2
s-tカット
3Mbps
6Mbps
0Mbps
2Mbps
6Mbps
2Mbps
3Mbps
0Mbps
6Mbps
1Mbps
9Mbps
0Mbps
5Mbps
例えば、このように
カットすることができる
ねっとわーくふろー
0
1
2
-1
-1
s
t
3
1
2
s-tカット
3Mbps
6Mbps
0Mbps
2Mbps
6Mbps
2Mbps
3Mbps
0Mbps
6Mbps
1Mbps
9Mbps
0Mbps
5Mbps
例えば、このように
カットすることができる
ねっとわーくふろー
0
1
2
-1
-1
s
t
3
1
2
s-tカット
3Mbps
6Mbps
0Mbps
2Mbps
6Mbps
2Mbps
3Mbps
0Mbps
6Mbps
1Mbps
9Mbps
0Mbps
5Mbps
例えば、このように
カットすることができる
ねっとわーくふろー
0
1
2
-1
-1
s
t
3
1
2
s-tカット
3Mbps
6Mbps
0Mbps
2Mbps
6Mbps
2Mbps
3Mbps
0Mbps
6Mbps
1Mbps
9Mbps
0Mbps
5Mbps
最大流の流量 = 最小のカットの容量
となる
反省
計画的にプレゼンを作ろうね(睡眠時間が…)
数A必修じゃなくても、勉強しようね
頭が欲しい(切実)
最後までありがとうございます><

More Related Content

Featured

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Featured (20)

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 

劣モジュラ関数とNetwork flow