SlideShare a Scribd company logo
G REEDY-M ATCHING 1 (G)
                  M ←∅
                  while E(G) = ∅
                (*)    pick the lexicographically first e ∈ E(G)
                       M ← M ∪ {e}
                       remove e and all
                             edges adjacent to e
                             from E(G)
                  return M

Assume the edges in the given graph are ordered pairs (i.e. put a
top-down direction on them).

E(G) = {(1, 6), (1, 9), (1, 10), (2, 7), (2, 8), (2, 9), (2, 10), (3, 7), (3, 8), (4, 6), (4, 7), (4, 8), (5, 6)}



                                                2
The Hungarian algorithm
We will start today’s lecture by running through an example. Consider the
graph below. We will compare the results of G REEDY-M ATCHING 1 with
those of H UNGARIAN -M ATCHING.
                        1     2     3      4    5




                      10     9     8     7      6
You are warmly invited to try this at home with paper and pencil first.




                                    1
1    2   3       4   5




10   9   8       7   6

             4
1    2   3       4   5




10   9   8       7   6

             3
1    2   3       4   5




10   9   8       7   6

             6
1    2   3       4   5




10   9   8       7   6

             5
1    2   3       4   5




10   9   8       7   6

             8
1    2   3       4   5




10   9   8       7   6

             7

More Related Content

What's hot

Darmon Points in mixed signature
Darmon Points in mixed signatureDarmon Points in mixed signature
Darmon Points in mixed signature
mmasdeu
 
Darmon Points for fields of mixed signature
Darmon Points for fields of mixed signatureDarmon Points for fields of mixed signature
Darmon Points for fields of mixed signature
mmasdeu
 
On the Adjacency Matrix and Neighborhood Associated with Zero-divisor Graph f...
On the Adjacency Matrix and Neighborhood Associated with Zero-divisor Graph f...On the Adjacency Matrix and Neighborhood Associated with Zero-divisor Graph f...
On the Adjacency Matrix and Neighborhood Associated with Zero-divisor Graph f...
Editor IJCATR
 
SUPER MAGIC CORONATIONS OF GRAPHS
SUPER MAGIC CORONATIONS OF GRAPHS SUPER MAGIC CORONATIONS OF GRAPHS
SUPER MAGIC CORONATIONS OF GRAPHS
IAEME Publication
 
Aj26225229
Aj26225229Aj26225229
Aj26225229
IJERA Editor
 
Some Classes of Cubic Harmonious Graphs
Some Classes of Cubic Harmonious GraphsSome Classes of Cubic Harmonious Graphs
Some Classes of Cubic Harmonious Graphs
rahulmonikasharma
 
Dobule and triple integral
Dobule and triple integralDobule and triple integral
Dobule and triple integral
sonendra Gupta
 
Bc4103338340
Bc4103338340Bc4103338340
Bc4103338340
IJERA Editor
 
Graphs
GraphsGraphs
Graphs
Dwight Sabio
 
Discrete-Chapter 11 Graphs Part III
Discrete-Chapter 11 Graphs Part IIIDiscrete-Chapter 11 Graphs Part III
Discrete-Chapter 11 Graphs Part III
Wongyos Keardsri
 
Math1000 section2.6
Math1000 section2.6Math1000 section2.6
Math1000 section2.6
StuartJones92
 
Ppt fiske daels mei drisa desain media komputer
Ppt fiske daels mei drisa desain media komputerPpt fiske daels mei drisa desain media komputer
Ppt fiske daels mei drisa desain media komputer
ArdianPratama22
 
The integral
The integralThe integral
Discrete-Chapter 11 Graphs Part I
Discrete-Chapter 11 Graphs Part IDiscrete-Chapter 11 Graphs Part I
Discrete-Chapter 11 Graphs Part I
Wongyos Keardsri
 
graph theory
graph theorygraph theory
graph theory
Shashank Singh
 
Mathematical Methods in Physics-7 Pages 1012-1112
Mathematical Methods in Physics-7 Pages 1012-1112Mathematical Methods in Physics-7 Pages 1012-1112
Mathematical Methods in Physics-7 Pages 1012-1112
Rajput Abdul Waheed Bhatti
 
Indefinite Integral
Indefinite IntegralIndefinite Integral
Indefinite Integral
JelaiAujero
 
Lecture 10
Lecture 10Lecture 10
Lecture 10
FahadYaqoob5
 

What's hot (18)

Darmon Points in mixed signature
Darmon Points in mixed signatureDarmon Points in mixed signature
Darmon Points in mixed signature
 
Darmon Points for fields of mixed signature
Darmon Points for fields of mixed signatureDarmon Points for fields of mixed signature
Darmon Points for fields of mixed signature
 
On the Adjacency Matrix and Neighborhood Associated with Zero-divisor Graph f...
On the Adjacency Matrix and Neighborhood Associated with Zero-divisor Graph f...On the Adjacency Matrix and Neighborhood Associated with Zero-divisor Graph f...
On the Adjacency Matrix and Neighborhood Associated with Zero-divisor Graph f...
 
SUPER MAGIC CORONATIONS OF GRAPHS
SUPER MAGIC CORONATIONS OF GRAPHS SUPER MAGIC CORONATIONS OF GRAPHS
SUPER MAGIC CORONATIONS OF GRAPHS
 
Aj26225229
Aj26225229Aj26225229
Aj26225229
 
Some Classes of Cubic Harmonious Graphs
Some Classes of Cubic Harmonious GraphsSome Classes of Cubic Harmonious Graphs
Some Classes of Cubic Harmonious Graphs
 
Dobule and triple integral
Dobule and triple integralDobule and triple integral
Dobule and triple integral
 
Bc4103338340
Bc4103338340Bc4103338340
Bc4103338340
 
Graphs
GraphsGraphs
Graphs
 
Discrete-Chapter 11 Graphs Part III
Discrete-Chapter 11 Graphs Part IIIDiscrete-Chapter 11 Graphs Part III
Discrete-Chapter 11 Graphs Part III
 
Math1000 section2.6
Math1000 section2.6Math1000 section2.6
Math1000 section2.6
 
Ppt fiske daels mei drisa desain media komputer
Ppt fiske daels mei drisa desain media komputerPpt fiske daels mei drisa desain media komputer
Ppt fiske daels mei drisa desain media komputer
 
The integral
The integralThe integral
The integral
 
Discrete-Chapter 11 Graphs Part I
Discrete-Chapter 11 Graphs Part IDiscrete-Chapter 11 Graphs Part I
Discrete-Chapter 11 Graphs Part I
 
graph theory
graph theorygraph theory
graph theory
 
Mathematical Methods in Physics-7 Pages 1012-1112
Mathematical Methods in Physics-7 Pages 1012-1112Mathematical Methods in Physics-7 Pages 1012-1112
Mathematical Methods in Physics-7 Pages 1012-1112
 
Indefinite Integral
Indefinite IntegralIndefinite Integral
Indefinite Integral
 
Lecture 10
Lecture 10Lecture 10
Lecture 10
 

Viewers also liked

Theories of Photographic Composition
Theories of Photographic CompositionTheories of Photographic Composition
Theories of Photographic Composition
mrsbauerart
 
CAGC Presentation
CAGC PresentationCAGC Presentation
CAGC Presentation
kalson
 
Show 64 | Tom Webster | Edge of the Web Radio
Show 64 | Tom Webster | Edge of the Web RadioShow 64 | Tom Webster | Edge of the Web Radio
Show 64 | Tom Webster | Edge of the Web Radio
Erin Sparks
 
Beethoven Romances
Beethoven RomancesBeethoven Romances
Beethoven RomancesHOME
 
Autumn
AutumnAutumn
Autumn
HOME
 
Guida Firma
Guida FirmaGuida Firma
Guida Firma
Saverio ammiraglia
 
Eine Kleine Nachtmusik
Eine Kleine NachtmusikEine Kleine Nachtmusik
Eine Kleine Nachtmusik
HOME
 
Fotos Power Point
Fotos Power PointFotos Power Point
Fotos Power PointaNiita_
 
Hammarling consulting cars
Hammarling consulting carsHammarling consulting cars
Hammarling consulting cars
Göran Arvidson
 
Braç Robot Hidràulic
Braç Robot HidràulicBraç Robot Hidràulic
Braç Robot Hidràulicsergi1navarro
 
Advanced Ruby Scripting For Sketch Up
Advanced Ruby Scripting For Sketch UpAdvanced Ruby Scripting For Sketch Up
Advanced Ruby Scripting For Sketch Up
GoogleTecTalks
 
Voice Browsing And Multimodal Interaction In 2009
Voice Browsing And Multimodal Interaction In 2009Voice Browsing And Multimodal Interaction In 2009
Voice Browsing And Multimodal Interaction In 2009
GoogleTecTalks
 
Atty Fee 08 2009
Atty Fee 08 2009Atty Fee 08 2009
Atty Fee 08 2009
bigfaz2009
 
別讓細胞不開心 給我一副好嗓子Tjm20160122
別讓細胞不開心 給我一副好嗓子Tjm20160122別讓細胞不開心 給我一副好嗓子Tjm20160122
別讓細胞不開心 給我一副好嗓子Tjm20160122
David Yeh
 
Vedic Jeevan Dhaara
Vedic Jeevan DhaaraVedic Jeevan Dhaara
Vedic Jeevan Dhaara
abhay1170
 
Aggregate rubric scribblar
Aggregate rubric scribblarAggregate rubric scribblar
Aggregate rubric scribblarJen Thoman
 
Joy Montgomery Vip Services (2)
Joy Montgomery Vip Services (2)Joy Montgomery Vip Services (2)
Joy Montgomery Vip Services (2)
joymontgomery
 
Save Your Client\'s Money With MSA
Save Your Client\'s Money With MSASave Your Client\'s Money With MSA
Save Your Client\'s Money With MSA
bigfaz2009
 
Facebook Por Facebook
Facebook Por FacebookFacebook Por Facebook
Facebook Por Facebook
datospiscitelli15
 

Viewers also liked (20)

Theories of Photographic Composition
Theories of Photographic CompositionTheories of Photographic Composition
Theories of Photographic Composition
 
CAGC Presentation
CAGC PresentationCAGC Presentation
CAGC Presentation
 
Show 64 | Tom Webster | Edge of the Web Radio
Show 64 | Tom Webster | Edge of the Web RadioShow 64 | Tom Webster | Edge of the Web Radio
Show 64 | Tom Webster | Edge of the Web Radio
 
Beethoven Romances
Beethoven RomancesBeethoven Romances
Beethoven Romances
 
Autumn
AutumnAutumn
Autumn
 
Guida Firma
Guida FirmaGuida Firma
Guida Firma
 
Eine Kleine Nachtmusik
Eine Kleine NachtmusikEine Kleine Nachtmusik
Eine Kleine Nachtmusik
 
Fotos Power Point
Fotos Power PointFotos Power Point
Fotos Power Point
 
Benim IçIn Efes
Benim IçIn EfesBenim IçIn Efes
Benim IçIn Efes
 
Hammarling consulting cars
Hammarling consulting carsHammarling consulting cars
Hammarling consulting cars
 
Braç Robot Hidràulic
Braç Robot HidràulicBraç Robot Hidràulic
Braç Robot Hidràulic
 
Advanced Ruby Scripting For Sketch Up
Advanced Ruby Scripting For Sketch UpAdvanced Ruby Scripting For Sketch Up
Advanced Ruby Scripting For Sketch Up
 
Voice Browsing And Multimodal Interaction In 2009
Voice Browsing And Multimodal Interaction In 2009Voice Browsing And Multimodal Interaction In 2009
Voice Browsing And Multimodal Interaction In 2009
 
Atty Fee 08 2009
Atty Fee 08 2009Atty Fee 08 2009
Atty Fee 08 2009
 
別讓細胞不開心 給我一副好嗓子Tjm20160122
別讓細胞不開心 給我一副好嗓子Tjm20160122別讓細胞不開心 給我一副好嗓子Tjm20160122
別讓細胞不開心 給我一副好嗓子Tjm20160122
 
Vedic Jeevan Dhaara
Vedic Jeevan DhaaraVedic Jeevan Dhaara
Vedic Jeevan Dhaara
 
Aggregate rubric scribblar
Aggregate rubric scribblarAggregate rubric scribblar
Aggregate rubric scribblar
 
Joy Montgomery Vip Services (2)
Joy Montgomery Vip Services (2)Joy Montgomery Vip Services (2)
Joy Montgomery Vip Services (2)
 
Save Your Client\'s Money With MSA
Save Your Client\'s Money With MSASave Your Client\'s Money With MSA
Save Your Client\'s Money With MSA
 
Facebook Por Facebook
Facebook Por FacebookFacebook Por Facebook
Facebook Por Facebook
 

Similar to Photographic Composition_Before & After

Lingerie Shoot
Lingerie ShootLingerie Shoot
Lingerie Shoot
christina bres
 
Rv2
Rv2Rv2
10.1.1.226.4381
10.1.1.226.438110.1.1.226.4381
10.1.1.226.4381
prakashpvms
 
Isograph
IsographIsograph
Elements of Graph Theory for IS.pptx
Elements of Graph Theory for IS.pptxElements of Graph Theory for IS.pptx
Elements of Graph Theory for IS.pptx
miki304759
 
Graph theory
Graph theoryGraph theory
Graph theory
Jeane Paguio
 
THE RESULT FOR THE GRUNDY NUMBER ON P4- CLASSES
THE RESULT FOR THE GRUNDY NUMBER ON P4- CLASSESTHE RESULT FOR THE GRUNDY NUMBER ON P4- CLASSES
THE RESULT FOR THE GRUNDY NUMBER ON P4- CLASSES
graphhoc
 
Graph Dynamical System on Graph Colouring
Graph Dynamical System on Graph ColouringGraph Dynamical System on Graph Colouring
Graph Dynamical System on Graph Colouring
Clyde Shen
 
Graph ds
Graph dsGraph ds
graph_theory_ch_3_20201124.ppt
graph_theory_ch_3_20201124.pptgraph_theory_ch_3_20201124.ppt
graph_theory_ch_3_20201124.ppt
ArwansyahDipanegara
 
FDP-libre(1)
FDP-libre(1)FDP-libre(1)
Merrk
MerrkMerrk
Merrk
fouadinfo
 
MMath
MMathMMath
Ppt of graph theory
Ppt of graph theoryPpt of graph theory
Ppt of graph theory
ArvindBorge
 
Problem Solving by Computer Finite Element Method
Problem Solving by Computer Finite Element MethodProblem Solving by Computer Finite Element Method
Problem Solving by Computer Finite Element Method
Peter Herbert
 
On algorithmic problems concerning graphs of higher degree of symmetry
On algorithmic problems concerning graphs of higher degree of symmetryOn algorithmic problems concerning graphs of higher degree of symmetry
On algorithmic problems concerning graphs of higher degree of symmetry
graphhoc
 
Maximizing a Nonnegative, Monotone, Submodular Function Constrained to Matchings
Maximizing a Nonnegative, Monotone, Submodular Function Constrained to MatchingsMaximizing a Nonnegative, Monotone, Submodular Function Constrained to Matchings
Maximizing a Nonnegative, Monotone, Submodular Function Constrained to Matchings
sagark4
 
ON ALGORITHMIC PROBLEMS CONCERNING GRAPHS OF HIGHER DEGREE OF SYMMETRY
ON ALGORITHMIC PROBLEMS CONCERNING GRAPHS OF HIGHER DEGREE OF SYMMETRYON ALGORITHMIC PROBLEMS CONCERNING GRAPHS OF HIGHER DEGREE OF SYMMETRY
ON ALGORITHMIC PROBLEMS CONCERNING GRAPHS OF HIGHER DEGREE OF SYMMETRY
Fransiskeran
 
Applied Graph Theory Applications
Applied Graph Theory ApplicationsApplied Graph Theory Applications
Applied Graph Theory Applications
vipin3195
 
FCS (graphs).pptx
FCS (graphs).pptxFCS (graphs).pptx
FCS (graphs).pptx
ShubhamBatwani
 

Similar to Photographic Composition_Before & After (20)

Lingerie Shoot
Lingerie ShootLingerie Shoot
Lingerie Shoot
 
Rv2
Rv2Rv2
Rv2
 
10.1.1.226.4381
10.1.1.226.438110.1.1.226.4381
10.1.1.226.4381
 
Isograph
IsographIsograph
Isograph
 
Elements of Graph Theory for IS.pptx
Elements of Graph Theory for IS.pptxElements of Graph Theory for IS.pptx
Elements of Graph Theory for IS.pptx
 
Graph theory
Graph theoryGraph theory
Graph theory
 
THE RESULT FOR THE GRUNDY NUMBER ON P4- CLASSES
THE RESULT FOR THE GRUNDY NUMBER ON P4- CLASSESTHE RESULT FOR THE GRUNDY NUMBER ON P4- CLASSES
THE RESULT FOR THE GRUNDY NUMBER ON P4- CLASSES
 
Graph Dynamical System on Graph Colouring
Graph Dynamical System on Graph ColouringGraph Dynamical System on Graph Colouring
Graph Dynamical System on Graph Colouring
 
Graph ds
Graph dsGraph ds
Graph ds
 
graph_theory_ch_3_20201124.ppt
graph_theory_ch_3_20201124.pptgraph_theory_ch_3_20201124.ppt
graph_theory_ch_3_20201124.ppt
 
FDP-libre(1)
FDP-libre(1)FDP-libre(1)
FDP-libre(1)
 
Merrk
MerrkMerrk
Merrk
 
MMath
MMathMMath
MMath
 
Ppt of graph theory
Ppt of graph theoryPpt of graph theory
Ppt of graph theory
 
Problem Solving by Computer Finite Element Method
Problem Solving by Computer Finite Element MethodProblem Solving by Computer Finite Element Method
Problem Solving by Computer Finite Element Method
 
On algorithmic problems concerning graphs of higher degree of symmetry
On algorithmic problems concerning graphs of higher degree of symmetryOn algorithmic problems concerning graphs of higher degree of symmetry
On algorithmic problems concerning graphs of higher degree of symmetry
 
Maximizing a Nonnegative, Monotone, Submodular Function Constrained to Matchings
Maximizing a Nonnegative, Monotone, Submodular Function Constrained to MatchingsMaximizing a Nonnegative, Monotone, Submodular Function Constrained to Matchings
Maximizing a Nonnegative, Monotone, Submodular Function Constrained to Matchings
 
ON ALGORITHMIC PROBLEMS CONCERNING GRAPHS OF HIGHER DEGREE OF SYMMETRY
ON ALGORITHMIC PROBLEMS CONCERNING GRAPHS OF HIGHER DEGREE OF SYMMETRYON ALGORITHMIC PROBLEMS CONCERNING GRAPHS OF HIGHER DEGREE OF SYMMETRY
ON ALGORITHMIC PROBLEMS CONCERNING GRAPHS OF HIGHER DEGREE OF SYMMETRY
 
Applied Graph Theory Applications
Applied Graph Theory ApplicationsApplied Graph Theory Applications
Applied Graph Theory Applications
 
FCS (graphs).pptx
FCS (graphs).pptxFCS (graphs).pptx
FCS (graphs).pptx
 

Recently uploaded

一比一原版(毕业证)长崎大学毕业证成绩单如何办理
一比一原版(毕业证)长崎大学毕业证成绩单如何办理一比一原版(毕业证)长崎大学毕业证成绩单如何办理
一比一原版(毕业证)长崎大学毕业证成绩单如何办理
taqyed
 
Storytelling For The Web: Integrate Storytelling in your Design Process
Storytelling For The Web: Integrate Storytelling in your Design ProcessStorytelling For The Web: Integrate Storytelling in your Design Process
Storytelling For The Web: Integrate Storytelling in your Design Process
Chiara Aliotta
 
哪里办理美国中央华盛顿大学毕业证双学位证书原版一模一样
哪里办理美国中央华盛顿大学毕业证双学位证书原版一模一样哪里办理美国中央华盛顿大学毕业证双学位证书原版一模一样
哪里办理美国中央华盛顿大学毕业证双学位证书原版一模一样
qo1as76n
 
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
7sd8fier
 
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
jyz59f4j
 
AHMED TALAAT ARCHITECTURE PORTFOLIO .pdf
AHMED TALAAT ARCHITECTURE PORTFOLIO .pdfAHMED TALAAT ARCHITECTURE PORTFOLIO .pdf
AHMED TALAAT ARCHITECTURE PORTFOLIO .pdf
talaatahm
 
定制美国西雅图城市大学毕业证学历证书原版一模一样
定制美国西雅图城市大学毕业证学历证书原版一模一样定制美国西雅图城市大学毕业证学历证书原版一模一样
定制美国西雅图城市大学毕业证学历证书原版一模一样
qo1as76n
 
Virtual Tour Application Powerpoint for museum of edinburgh
Virtual Tour Application Powerpoint for museum of edinburghVirtual Tour Application Powerpoint for museum of edinburgh
Virtual Tour Application Powerpoint for museum of edinburgh
millarj46
 
Revolutionizing the Digital Landscape: Web Development Companies in India
Revolutionizing the Digital Landscape: Web Development Companies in IndiaRevolutionizing the Digital Landscape: Web Development Companies in India
Revolutionizing the Digital Landscape: Web Development Companies in India
amrsoftec1
 
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
n0tivyq
 
Maximize Your Content with Beautiful Assets : Content & Asset for Landing Page
Maximize Your Content with Beautiful Assets : Content & Asset for Landing Page Maximize Your Content with Beautiful Assets : Content & Asset for Landing Page
Maximize Your Content with Beautiful Assets : Content & Asset for Landing Page
pmgdscunsri
 
一比一原版(Columbia毕业证)哥伦比亚大学毕业证如何办理
一比一原版(Columbia毕业证)哥伦比亚大学毕业证如何办理一比一原版(Columbia毕业证)哥伦比亚大学毕业证如何办理
一比一原版(Columbia毕业证)哥伦比亚大学毕业证如何办理
asuzyq
 
Game Concept Presentation for Ukrainian Mythology Based Game With Designs
Game Concept Presentation for Ukrainian Mythology Based Game With DesignsGame Concept Presentation for Ukrainian Mythology Based Game With Designs
Game Concept Presentation for Ukrainian Mythology Based Game With Designs
184804
 
Heuristics Evaluation - How to Guide.pdf
Heuristics Evaluation - How to Guide.pdfHeuristics Evaluation - How to Guide.pdf
Heuristics Evaluation - How to Guide.pdf
Jaime Brown
 
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
9a93xvy
 
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
9a93xvy
 
UNIT V ACTIONS AND COMMANDS, FORMS AND CONTROLS.pptx
UNIT V ACTIONS AND COMMANDS, FORMS AND CONTROLS.pptxUNIT V ACTIONS AND COMMANDS, FORMS AND CONTROLS.pptx
UNIT V ACTIONS AND COMMANDS, FORMS AND CONTROLS.pptx
GOWSIKRAJA PALANISAMY
 
Top Interior Designers in Bangalore.pdf1
Top Interior Designers in Bangalore.pdf1Top Interior Designers in Bangalore.pdf1
Top Interior Designers in Bangalore.pdf1
Decomart Studio
 
一比一原版(BU毕业证)波士顿大学毕业证如何办理
一比一原版(BU毕业证)波士顿大学毕业证如何办理一比一原版(BU毕业证)波士顿大学毕业证如何办理
一比一原版(BU毕业证)波士顿大学毕业证如何办理
peuce
 
Graphic Design Tools and Software .pptx
Graphic Design Tools and Software   .pptxGraphic Design Tools and Software   .pptx
Graphic Design Tools and Software .pptx
Virtual Real Design
 

Recently uploaded (20)

一比一原版(毕业证)长崎大学毕业证成绩单如何办理
一比一原版(毕业证)长崎大学毕业证成绩单如何办理一比一原版(毕业证)长崎大学毕业证成绩单如何办理
一比一原版(毕业证)长崎大学毕业证成绩单如何办理
 
Storytelling For The Web: Integrate Storytelling in your Design Process
Storytelling For The Web: Integrate Storytelling in your Design ProcessStorytelling For The Web: Integrate Storytelling in your Design Process
Storytelling For The Web: Integrate Storytelling in your Design Process
 
哪里办理美国中央华盛顿大学毕业证双学位证书原版一模一样
哪里办理美国中央华盛顿大学毕业证双学位证书原版一模一样哪里办理美国中央华盛顿大学毕业证双学位证书原版一模一样
哪里办理美国中央华盛顿大学毕业证双学位证书原版一模一样
 
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
 
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
 
AHMED TALAAT ARCHITECTURE PORTFOLIO .pdf
AHMED TALAAT ARCHITECTURE PORTFOLIO .pdfAHMED TALAAT ARCHITECTURE PORTFOLIO .pdf
AHMED TALAAT ARCHITECTURE PORTFOLIO .pdf
 
定制美国西雅图城市大学毕业证学历证书原版一模一样
定制美国西雅图城市大学毕业证学历证书原版一模一样定制美国西雅图城市大学毕业证学历证书原版一模一样
定制美国西雅图城市大学毕业证学历证书原版一模一样
 
Virtual Tour Application Powerpoint for museum of edinburgh
Virtual Tour Application Powerpoint for museum of edinburghVirtual Tour Application Powerpoint for museum of edinburgh
Virtual Tour Application Powerpoint for museum of edinburgh
 
Revolutionizing the Digital Landscape: Web Development Companies in India
Revolutionizing the Digital Landscape: Web Development Companies in IndiaRevolutionizing the Digital Landscape: Web Development Companies in India
Revolutionizing the Digital Landscape: Web Development Companies in India
 
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
 
Maximize Your Content with Beautiful Assets : Content & Asset for Landing Page
Maximize Your Content with Beautiful Assets : Content & Asset for Landing Page Maximize Your Content with Beautiful Assets : Content & Asset for Landing Page
Maximize Your Content with Beautiful Assets : Content & Asset for Landing Page
 
一比一原版(Columbia毕业证)哥伦比亚大学毕业证如何办理
一比一原版(Columbia毕业证)哥伦比亚大学毕业证如何办理一比一原版(Columbia毕业证)哥伦比亚大学毕业证如何办理
一比一原版(Columbia毕业证)哥伦比亚大学毕业证如何办理
 
Game Concept Presentation for Ukrainian Mythology Based Game With Designs
Game Concept Presentation for Ukrainian Mythology Based Game With DesignsGame Concept Presentation for Ukrainian Mythology Based Game With Designs
Game Concept Presentation for Ukrainian Mythology Based Game With Designs
 
Heuristics Evaluation - How to Guide.pdf
Heuristics Evaluation - How to Guide.pdfHeuristics Evaluation - How to Guide.pdf
Heuristics Evaluation - How to Guide.pdf
 
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
 
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
 
UNIT V ACTIONS AND COMMANDS, FORMS AND CONTROLS.pptx
UNIT V ACTIONS AND COMMANDS, FORMS AND CONTROLS.pptxUNIT V ACTIONS AND COMMANDS, FORMS AND CONTROLS.pptx
UNIT V ACTIONS AND COMMANDS, FORMS AND CONTROLS.pptx
 
Top Interior Designers in Bangalore.pdf1
Top Interior Designers in Bangalore.pdf1Top Interior Designers in Bangalore.pdf1
Top Interior Designers in Bangalore.pdf1
 
一比一原版(BU毕业证)波士顿大学毕业证如何办理
一比一原版(BU毕业证)波士顿大学毕业证如何办理一比一原版(BU毕业证)波士顿大学毕业证如何办理
一比一原版(BU毕业证)波士顿大学毕业证如何办理
 
Graphic Design Tools and Software .pptx
Graphic Design Tools and Software   .pptxGraphic Design Tools and Software   .pptx
Graphic Design Tools and Software .pptx
 

Photographic Composition_Before & After

  • 1. G REEDY-M ATCHING 1 (G) M ←∅ while E(G) = ∅ (*) pick the lexicographically first e ∈ E(G) M ← M ∪ {e} remove e and all edges adjacent to e from E(G) return M Assume the edges in the given graph are ordered pairs (i.e. put a top-down direction on them). E(G) = {(1, 6), (1, 9), (1, 10), (2, 7), (2, 8), (2, 9), (2, 10), (3, 7), (3, 8), (4, 6), (4, 7), (4, 8), (5, 6)} 2
  • 2. The Hungarian algorithm We will start today’s lecture by running through an example. Consider the graph below. We will compare the results of G REEDY-M ATCHING 1 with those of H UNGARIAN -M ATCHING. 1 2 3 4 5 10 9 8 7 6 You are warmly invited to try this at home with paper and pencil first. 1
  • 3. 1 2 3 4 5 10 9 8 7 6 4
  • 4. 1 2 3 4 5 10 9 8 7 6 3
  • 5. 1 2 3 4 5 10 9 8 7 6 6
  • 6. 1 2 3 4 5 10 9 8 7 6 5
  • 7. 1 2 3 4 5 10 9 8 7 6 8
  • 8. 1 2 3 4 5 10 9 8 7 6 7
  • 9. Hungarian algorithm The approach given below seems to have first appeared in the work of K¨ nig (1916, 1931, 1936) and Egerv´ ry (1931) who reduced the problem o a with general non-negative weights on the edges to the unweighted case. H UNGARIAN -M ATCHING (G) let M be any matching in G repeat form a maximal forest F having properties 1. and 2. if there is an edge joining V (F ) ∩ V1 to a vertex in U2 M ← Augment(M, F ) else return M until T RUE 10
  • 10. 1 2 3 4 5 10 9 8 7 6 9
  • 11. 1 2 3 4 5 U1 U2 10 9 8 7 6 12
  • 12. 1 2 3 4 5 U1 U2 10 9 8 7 6 11
  • 13. 1 2 3 4 5 10 9 8 7 6 14
  • 14. 1 2 3 4 5 U1 U2 10 9 8 7 6 13
  • 15. Edmonds’ algorithm The first polynomial time matching algorithm for general graphs was constructed by Edmonds. In this algorithm the key idea of “shrinking” certain odd cycles was introduced. Up to the present time most matching algorithms – certainly the most successful ones – are based (implicitly or explicitly) on this idea. We begin with a lemma which will enable us to reduce the size of the graph under consideration in many cases. The lemma help us understand the crucial step of “cycle shrinking” and lends us confidence that we are not losing necessary information when carrying out such shrinking. 16
  • 16. Maximum matching in general graphs We presented an algorithm for finding a maximum matching in a bipartite graph. From a mathematical point of view, this algorithm is essentially no more involved than the proof of K¨ nig’s equality. o For non-bipartite graphs the situation is quite different. Known poly-time algorithms for finding a maximum matching in a general graph are among the most involved combinatorial algorithms. Most of them are based on augmentation along alternating paths. But important new ideas are needed to turn these tricks into polynomial time algorithms. 15
  • 17. Proof (|M | = ν(G ) ⇒ |M | = ν(G)) Assume that |M | < ν(G). Then there exists an augmenting path P relative to M . Two cases arise: P vertex-disjoint from Z In such case P is also an M -augmenting path, and hence |M | < ν(G ). Contradiction! P does intersect Z W.l.o.g. there must be an endpoint, say x, of P that is not in Z. Let z be the first vertex in the path P which also belongs to Z. The path Q from x to z is mapped onto an M -augmenting path when Z is contracted. Hence |M | < ν(G ). Contradiction! (|M | = ν(G) ⇒ |M | = ν(G )) This time assume M is not maximum. Take a maximum matching N in G . Then expand Z and define a matching N in G. Then |N | = |N | + k > |M | + k = |M |, i.e. M is not a maximum matching. Contradiction! 18
  • 18. Shrinking Lemma. Let G be a graph and M a matching in G. Let Z be a cycle of length 2k + 1 which contains k lines of M and is vertex-disjoint from the rest of M . Let G be the graph obtained from G by shrinking Z to a single vertex. Then M = M E(Z) is a maximum matching in G if and only if M is a maximum matching in G. 17
  • 19. 19-1
  • 20. Algorithm description We now turn to an informal description of Edmonds Matching Algorithm. We are given a graph G. Let M be a matching in G. If M is perfect we are done! Otherwise let S be the set of vertices that are not covered by M . Construct (as in the bipartite case) a forest F such that every connected component of F contains exactly one vertexa of S, every point of S belongs to exactly one component of F , and every edge of F which is at an odd distance from a point in S belongs to M . a It may be defined as the root of the component under consideration. 19
  • 21. “External” outer vertices Next we consider the neighbours of outer vertices. If we find an outer vertex x adjacent to a vertex y not in F , then we can enlarge F by adding the edges {x, y} and {y, z} ∈ M . 21
  • 22. Properties of F Every vertex of F which is at an odd distance from S has degree two in F . Such vertices will be called inner vertices, while the remaining vertices in F will be called outer vertices (in particular all vertices in S are outer). Such a forest is called M -alternating forest. Clearly, the (trivial) forest with vertex set S and no line is an M -alternating forest (although not a very useful one!). 20
  • 23. “Adjacent” outer vertices in the same component Alternating path after switching x y Blossom before shrinking 23
  • 24. “Adjacent” outer vertices in different components If F has two adjacent outer vertices x and y belonging to different components of F , then the roots of these two components of F are connected by an M -augmenting path. We can obtain a larger matching! And after this we restart the process by constructing a new (smaller) F . 22
  • 25. Finally, if every outer vertex has only inner vertices as neighbours, then we claim that the matching M is already maximum. For suppose that F contains m inner vertices and n outer vertices. Clearly |S| = n − m. Furthermore if we delete all the inner vertices of F from G, the remaining graph will contain all the outer vertices of F as isolated points. Hence def(G) ≥ n − m = |S|. But M misses exactly |S| vertices, and so it must be a maximum matching. 25
  • 26. If F has two outer vertices x and y in the same connected component which are adjacent in G, then let C be the cycle formed by the line {x, y} and the path from x to y in F . Let P denote the (unique) patha in F connecting C to a root of F . Clearly P is an M -alternating path, so if we “switch” on P , we obtain another matching M1 of the same size as M . But M1 and C satisfy the conditions of the shrinking Lemma, and so if we shrink C to a single point to obtain a new graph G , we have reduced the task of finding a matching larger than M in G to the task of finding a matching larger than M1 E(C) in the smaller graph G . a We allow C to pass through the root, in which case P consists of a single point. 24
  • 27.
  • 28. In summary we can always do one of the following: • enlarge F , • enlarge M , • decrease |V (G)|, or • stop with a maximum matching! Thus it is clear that the algorithm terminates in polynomial time with a maximum matching in G. 26