SlideShare a Scribd company logo
1 of 2
Download to read offline
A matching in a graph G=(V,E) is a subset M of the edges E such that no two edges in M share a
common end node. A maximum cardinality matching is matching with a maximum number of
edges.
A node cover is a set of nodes NC of G such that every edge of G has at least one node in NC.
Matching and node cover are in some sense opposites of each other. A matching covers the
nodes of G with edges such that each node is covered by at most one edge. A node cover covers
the edges of G by nodes such that each edge is covered by at least one node.
Interesting Fact: The maximum cardinality of a matching is at most the minimum cardinality of a
node cover, that is, the maximum number of edges in a matching of G is always less than or
equal the minimum number of nodes in a node cover of G.
Maximum Cardinality Matching in Bipartite Graphs
A graph is bipartite if it has two kinds of nodes and the edges are only allowed between nodes of
different kind. We write G=(A,B,E) where A andB are the two sets of nodes and E are the edges
of G.
A matching in a bipartite graph assigns nodes of A to nodes of B. Matchings in bipartite graphs
can be computed more efficiently than matchings in general (=non-bipartite) graphs.
Interesting Fact: In a bipartite graph the maximum cardinality of a matching and the minimum
cardinality of a node cover are equal.
Intuition Bipartite Matching: Suppose we have a set of workers and a set of machines. These are
the two kinds of nodes in our bipartite graph. We know which worker can handle which
machines. This defines the edges of our bipartite graph. Our task in the maximum cardinality
matching problem is assigning workers to machines in such a way that as many machines as
possible are operated by a worker that can handle it. One worker can be assigned to at most one
machine and we can assign at most one worker to one machine.
LEDA Functions for Maximum Cardinality Matching in Bipartite Graphs
MAX_CARD_BIPARTITE_MATCHING() computes a maximum cardinality matching in a
bipartite graph.
Remark: Additionally, LEDA provides several specialized implementations for maximum
cardinality matching in bipartite graphs. These functions are mainly intended for specialists.
More details can be found on the Manual Page of Maximum Cardinality Matching in Bipartite
Graphs.
CHECK_MCB() checks if the result of MAX_CARD_BIPARTITE_MATCHING(), a list M and
a node_array NC, is maximum cardinality matching and node cover of a bipartite graph G.
Example
Solution
A matching in a graph G=(V,E) is a subset M of the edges E such that no two edges in M share a
common end node. A maximum cardinality matching is matching with a maximum number of
edges.
A node cover is a set of nodes NC of G such that every edge of G has at least one node in NC.
Matching and node cover are in some sense opposites of each other. A matching covers the
nodes of G with edges such that each node is covered by at most one edge. A node cover covers
the edges of G by nodes such that each edge is covered by at least one node.
Interesting Fact: The maximum cardinality of a matching is at most the minimum cardinality of a
node cover, that is, the maximum number of edges in a matching of G is always less than or
equal the minimum number of nodes in a node cover of G.
Maximum Cardinality Matching in Bipartite Graphs
A graph is bipartite if it has two kinds of nodes and the edges are only allowed between nodes of
different kind. We write G=(A,B,E) where A andB are the two sets of nodes and E are the edges
of G.
A matching in a bipartite graph assigns nodes of A to nodes of B. Matchings in bipartite graphs
can be computed more efficiently than matchings in general (=non-bipartite) graphs.
Interesting Fact: In a bipartite graph the maximum cardinality of a matching and the minimum
cardinality of a node cover are equal.
Intuition Bipartite Matching: Suppose we have a set of workers and a set of machines. These are
the two kinds of nodes in our bipartite graph. We know which worker can handle which
machines. This defines the edges of our bipartite graph. Our task in the maximum cardinality
matching problem is assigning workers to machines in such a way that as many machines as
possible are operated by a worker that can handle it. One worker can be assigned to at most one
machine and we can assign at most one worker to one machine.
LEDA Functions for Maximum Cardinality Matching in Bipartite Graphs
MAX_CARD_BIPARTITE_MATCHING() computes a maximum cardinality matching in a
bipartite graph.
Remark: Additionally, LEDA provides several specialized implementations for maximum
cardinality matching in bipartite graphs. These functions are mainly intended for specialists.
More details can be found on the Manual Page of Maximum Cardinality Matching in Bipartite
Graphs.
CHECK_MCB() checks if the result of MAX_CARD_BIPARTITE_MATCHING(), a list M and
a node_array NC, is maximum cardinality matching and node cover of a bipartite graph G.
Example

More Related Content

Similar to A matching in a graph G=(V,E) is a subset M of the edges E such that.pdf

An Introduction to Graph Databases
An Introduction to Graph DatabasesAn Introduction to Graph Databases
An Introduction to Graph Databases
InfiniteGraph
 
Double Patterning
Double PatterningDouble Patterning
Double Patterning
Danny Luk
 
Double Patterning (4/2 update)
Double  Patterning (4/2 update)Double  Patterning (4/2 update)
Double Patterning (4/2 update)
guest833ea6e
 
Double Patterning (3/31 update)
Double Patterning (3/31 update)Double Patterning (3/31 update)
Double Patterning (3/31 update)
guest833ea6e
 
Distributed coloring with O(sqrt. log n) bits
Distributed coloring with O(sqrt. log n) bitsDistributed coloring with O(sqrt. log n) bits
Distributed coloring with O(sqrt. log n) bits
Subhajit Sahu
 
Minimal spanning tree class 15
Minimal spanning tree class 15Minimal spanning tree class 15
Minimal spanning tree class 15
Kumar
 
Social network analysis study ch3 4.2-120108
Social network analysis study ch3 4.2-120108Social network analysis study ch3 4.2-120108
Social network analysis study ch3 4.2-120108
SungKyu Shaun Park
 
cis98010
cis98010cis98010
cis98010
perfj
 
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
 

Similar to A matching in a graph G=(V,E) is a subset M of the edges E such that.pdf (20)

An Introduction to Graph Databases
An Introduction to Graph DatabasesAn Introduction to Graph Databases
An Introduction to Graph Databases
 
FREQUENT SUBGRAPH MINING ALGORITHMS - A SURVEY AND FRAMEWORK FOR CLASSIFICATION
FREQUENT SUBGRAPH MINING ALGORITHMS - A SURVEY AND FRAMEWORK FOR CLASSIFICATIONFREQUENT SUBGRAPH MINING ALGORITHMS - A SURVEY AND FRAMEWORK FOR CLASSIFICATION
FREQUENT SUBGRAPH MINING ALGORITHMS - A SURVEY AND FRAMEWORK FOR CLASSIFICATION
 
Double Patterning
Double PatterningDouble Patterning
Double Patterning
 
Double Patterning (4/2 update)
Double  Patterning (4/2 update)Double  Patterning (4/2 update)
Double Patterning (4/2 update)
 
Double Patterning (3/31 update)
Double Patterning (3/31 update)Double Patterning (3/31 update)
Double Patterning (3/31 update)
 
Colloquium.pptx
Colloquium.pptxColloquium.pptx
Colloquium.pptx
 
Spanningtreesppt
SpanningtreespptSpanningtreesppt
Spanningtreesppt
 
Lecture 2.3.1 Graph.pptx
Lecture 2.3.1 Graph.pptxLecture 2.3.1 Graph.pptx
Lecture 2.3.1 Graph.pptx
 
Distributed coloring with O(sqrt. log n) bits
Distributed coloring with O(sqrt. log n) bitsDistributed coloring with O(sqrt. log n) bits
Distributed coloring with O(sqrt. log n) bits
 
Minimal spanning tree class 15
Minimal spanning tree class 15Minimal spanning tree class 15
Minimal spanning tree class 15
 
Hypergraph for consensus optimization
Hypergraph for consensus optimizationHypergraph for consensus optimization
Hypergraph for consensus optimization
 
Graph.pptx
Graph.pptxGraph.pptx
Graph.pptx
 
Chapter 5: Mapping and Scheduling
Chapter  5: Mapping and SchedulingChapter  5: Mapping and Scheduling
Chapter 5: Mapping and Scheduling
 
NON-LINEAR DATA STRUCTURE-Graphs.pptx
NON-LINEAR DATA STRUCTURE-Graphs.pptxNON-LINEAR DATA STRUCTURE-Graphs.pptx
NON-LINEAR DATA STRUCTURE-Graphs.pptx
 
A Subgraph Pattern Search over Graph Databases
A Subgraph Pattern Search over Graph DatabasesA Subgraph Pattern Search over Graph Databases
A Subgraph Pattern Search over Graph Databases
 
Social network analysis study ch3 4.2-120108
Social network analysis study ch3 4.2-120108Social network analysis study ch3 4.2-120108
Social network analysis study ch3 4.2-120108
 
cis98010
cis98010cis98010
cis98010
 
Application of Graph Theory in Computer science using Data Structure.pdf
Application of Graph Theory in Computer science using Data Structure.pdfApplication of Graph Theory in Computer science using Data Structure.pdf
Application of Graph Theory in Computer science using Data Structure.pdf
 
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
 
Graph in data structures
Graph in data structuresGraph in data structures
Graph in data structures
 

More from navyugenterprisesdoo

Given the evidence available at the time (early 1800s) nothing was.pdf
  Given the evidence available at the time (early 1800s) nothing was.pdf  Given the evidence available at the time (early 1800s) nothing was.pdf
Given the evidence available at the time (early 1800s) nothing was.pdf
navyugenterprisesdoo
 
There are two types of respirationAerobic respiration takes plac.pdf
There are two types of respirationAerobic respiration takes plac.pdfThere are two types of respirationAerobic respiration takes plac.pdf
There are two types of respirationAerobic respiration takes plac.pdf
navyugenterprisesdoo
 
The triangle DEF -- TRIANGLE HIG is a glide reflection.Reflection.pdf
The triangle DEF -- TRIANGLE HIG is a glide reflection.Reflection.pdfThe triangle DEF -- TRIANGLE HIG is a glide reflection.Reflection.pdf
The triangle DEF -- TRIANGLE HIG is a glide reflection.Reflection.pdf
navyugenterprisesdoo
 
The process of making a chip begins with sand. Sand contains 25 sil.pdf
The process of making a chip begins with sand. Sand contains 25 sil.pdfThe process of making a chip begins with sand. Sand contains 25 sil.pdf
The process of making a chip begins with sand. Sand contains 25 sil.pdf
navyugenterprisesdoo
 
The Permian Period was the ultimate period of the Paleozoic Era whic.pdf
The Permian Period was the ultimate period of the Paleozoic Era whic.pdfThe Permian Period was the ultimate period of the Paleozoic Era whic.pdf
The Permian Period was the ultimate period of the Paleozoic Era whic.pdf
navyugenterprisesdoo
 
RNs role in kidney transplant recipient in the immediate post-operat.pdf
RNs role in kidney transplant recipient in the immediate post-operat.pdfRNs role in kidney transplant recipient in the immediate post-operat.pdf
RNs role in kidney transplant recipient in the immediate post-operat.pdf
navyugenterprisesdoo
 
Corporate form of business is where an entity is owned by a small .pdf
    Corporate form of business is where an entity is owned by a small .pdf    Corporate form of business is where an entity is owned by a small .pdf
Corporate form of business is where an entity is owned by a small .pdf
navyugenterprisesdoo
 
Well first thing to remember is that C,N,S, and P.pdf
                     Well first thing to remember is that C,N,S, and P.pdf                     Well first thing to remember is that C,N,S, and P.pdf
Well first thing to remember is that C,N,S, and P.pdf
navyugenterprisesdoo
 
The violin is a string instrument, usually with f.pdf
                     The violin is a string instrument, usually with f.pdf                     The violin is a string instrument, usually with f.pdf
The violin is a string instrument, usually with f.pdf
navyugenterprisesdoo
 

More from navyugenterprisesdoo (20)

Given the evidence available at the time (early 1800s) nothing was.pdf
  Given the evidence available at the time (early 1800s) nothing was.pdf  Given the evidence available at the time (early 1800s) nothing was.pdf
Given the evidence available at the time (early 1800s) nothing was.pdf
 
1. Enzymatic digestion of proteins in to amino acids by pepsin.3. .pdf
1. Enzymatic digestion of proteins in to amino acids by pepsin.3. .pdf1. Enzymatic digestion of proteins in to amino acids by pepsin.3. .pdf
1. Enzymatic digestion of proteins in to amino acids by pepsin.3. .pdf
 
1. Assume that those DNA molecules are same in length as well as in .pdf
1. Assume that those DNA molecules are same in length as well as in .pdf1. Assume that those DNA molecules are same in length as well as in .pdf
1. Assume that those DNA molecules are same in length as well as in .pdf
 
Try to save the file using .vbs extension rather than .wsfType thi.pdf
Try to save the file using .vbs extension rather than .wsfType thi.pdfTry to save the file using .vbs extension rather than .wsfType thi.pdf
Try to save the file using .vbs extension rather than .wsfType thi.pdf
 
There are two types of respirationAerobic respiration takes plac.pdf
There are two types of respirationAerobic respiration takes plac.pdfThere are two types of respirationAerobic respiration takes plac.pdf
There are two types of respirationAerobic respiration takes plac.pdf
 
The triangle DEF -- TRIANGLE HIG is a glide reflection.Reflection.pdf
The triangle DEF -- TRIANGLE HIG is a glide reflection.Reflection.pdfThe triangle DEF -- TRIANGLE HIG is a glide reflection.Reflection.pdf
The triangle DEF -- TRIANGLE HIG is a glide reflection.Reflection.pdf
 
The process of making a chip begins with sand. Sand contains 25 sil.pdf
The process of making a chip begins with sand. Sand contains 25 sil.pdfThe process of making a chip begins with sand. Sand contains 25 sil.pdf
The process of making a chip begins with sand. Sand contains 25 sil.pdf
 
The Permian Period was the ultimate period of the Paleozoic Era whic.pdf
The Permian Period was the ultimate period of the Paleozoic Era whic.pdfThe Permian Period was the ultimate period of the Paleozoic Era whic.pdf
The Permian Period was the ultimate period of the Paleozoic Era whic.pdf
 
RNs role in kidney transplant recipient in the immediate post-operat.pdf
RNs role in kidney transplant recipient in the immediate post-operat.pdfRNs role in kidney transplant recipient in the immediate post-operat.pdf
RNs role in kidney transplant recipient in the immediate post-operat.pdf
 
Corporate form of business is where an entity is owned by a small .pdf
    Corporate form of business is where an entity is owned by a small .pdf    Corporate form of business is where an entity is owned by a small .pdf
Corporate form of business is where an entity is owned by a small .pdf
 
Well first thing to remember is that C,N,S, and P.pdf
                     Well first thing to remember is that C,N,S, and P.pdf                     Well first thing to remember is that C,N,S, and P.pdf
Well first thing to remember is that C,N,S, and P.pdf
 
They both have dipole-dipole interactions, interm.pdf
                     They both have dipole-dipole interactions, interm.pdf                     They both have dipole-dipole interactions, interm.pdf
They both have dipole-dipole interactions, interm.pdf
 
The violin is a string instrument, usually with f.pdf
                     The violin is a string instrument, usually with f.pdf                     The violin is a string instrument, usually with f.pdf
The violin is a string instrument, usually with f.pdf
 
the element is phosphorus (P) Solution .pdf
                     the element is phosphorus (P)  Solution      .pdf                     the element is phosphorus (P)  Solution      .pdf
the element is phosphorus (P) Solution .pdf
 
Step1 False ; An elemental sample consists of one.pdf
                     Step1 False ; An elemental sample consists of one.pdf                     Step1 False ; An elemental sample consists of one.pdf
Step1 False ; An elemental sample consists of one.pdf
 
solution or homogeneous mixture Solution .pdf
                     solution or homogeneous mixture  Solution    .pdf                     solution or homogeneous mixture  Solution    .pdf
solution or homogeneous mixture Solution .pdf
 
PV ^ n = constant using pv = N R T we get P ^ .pdf
                     PV ^ n = constant using pv = N R  T we get P ^ .pdf                     PV ^ n = constant using pv = N R  T we get P ^ .pdf
PV ^ n = constant using pv = N R T we get P ^ .pdf
 
methyl-m-nitrobenzoate is more polar than methyl .pdf
                     methyl-m-nitrobenzoate is more polar than methyl .pdf                     methyl-m-nitrobenzoate is more polar than methyl .pdf
methyl-m-nitrobenzoate is more polar than methyl .pdf
 
L(f(t)) = 6s^4 - 2s^3 .pdf
                     L(f(t)) = 6s^4  - 2s^3                         .pdf                     L(f(t)) = 6s^4  - 2s^3                         .pdf
L(f(t)) = 6s^4 - 2s^3 .pdf
 
It was a 19th century geologist who first recogni.pdf
                     It was a 19th century geologist who first recogni.pdf                     It was a 19th century geologist who first recogni.pdf
It was a 19th century geologist who first recogni.pdf
 

Recently uploaded

會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
中 央社
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
EADTU
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
AnaAcapella
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
EADTU
 

Recently uploaded (20)

Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio App
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategies
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptx
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
Supporting Newcomer Multilingual Learners
Supporting Newcomer  Multilingual LearnersSupporting Newcomer  Multilingual Learners
Supporting Newcomer Multilingual Learners
 
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 

A matching in a graph G=(V,E) is a subset M of the edges E such that.pdf

  • 1. A matching in a graph G=(V,E) is a subset M of the edges E such that no two edges in M share a common end node. A maximum cardinality matching is matching with a maximum number of edges. A node cover is a set of nodes NC of G such that every edge of G has at least one node in NC. Matching and node cover are in some sense opposites of each other. A matching covers the nodes of G with edges such that each node is covered by at most one edge. A node cover covers the edges of G by nodes such that each edge is covered by at least one node. Interesting Fact: The maximum cardinality of a matching is at most the minimum cardinality of a node cover, that is, the maximum number of edges in a matching of G is always less than or equal the minimum number of nodes in a node cover of G. Maximum Cardinality Matching in Bipartite Graphs A graph is bipartite if it has two kinds of nodes and the edges are only allowed between nodes of different kind. We write G=(A,B,E) where A andB are the two sets of nodes and E are the edges of G. A matching in a bipartite graph assigns nodes of A to nodes of B. Matchings in bipartite graphs can be computed more efficiently than matchings in general (=non-bipartite) graphs. Interesting Fact: In a bipartite graph the maximum cardinality of a matching and the minimum cardinality of a node cover are equal. Intuition Bipartite Matching: Suppose we have a set of workers and a set of machines. These are the two kinds of nodes in our bipartite graph. We know which worker can handle which machines. This defines the edges of our bipartite graph. Our task in the maximum cardinality matching problem is assigning workers to machines in such a way that as many machines as possible are operated by a worker that can handle it. One worker can be assigned to at most one machine and we can assign at most one worker to one machine. LEDA Functions for Maximum Cardinality Matching in Bipartite Graphs MAX_CARD_BIPARTITE_MATCHING() computes a maximum cardinality matching in a bipartite graph. Remark: Additionally, LEDA provides several specialized implementations for maximum cardinality matching in bipartite graphs. These functions are mainly intended for specialists. More details can be found on the Manual Page of Maximum Cardinality Matching in Bipartite Graphs. CHECK_MCB() checks if the result of MAX_CARD_BIPARTITE_MATCHING(), a list M and a node_array NC, is maximum cardinality matching and node cover of a bipartite graph G. Example
  • 2. Solution A matching in a graph G=(V,E) is a subset M of the edges E such that no two edges in M share a common end node. A maximum cardinality matching is matching with a maximum number of edges. A node cover is a set of nodes NC of G such that every edge of G has at least one node in NC. Matching and node cover are in some sense opposites of each other. A matching covers the nodes of G with edges such that each node is covered by at most one edge. A node cover covers the edges of G by nodes such that each edge is covered by at least one node. Interesting Fact: The maximum cardinality of a matching is at most the minimum cardinality of a node cover, that is, the maximum number of edges in a matching of G is always less than or equal the minimum number of nodes in a node cover of G. Maximum Cardinality Matching in Bipartite Graphs A graph is bipartite if it has two kinds of nodes and the edges are only allowed between nodes of different kind. We write G=(A,B,E) where A andB are the two sets of nodes and E are the edges of G. A matching in a bipartite graph assigns nodes of A to nodes of B. Matchings in bipartite graphs can be computed more efficiently than matchings in general (=non-bipartite) graphs. Interesting Fact: In a bipartite graph the maximum cardinality of a matching and the minimum cardinality of a node cover are equal. Intuition Bipartite Matching: Suppose we have a set of workers and a set of machines. These are the two kinds of nodes in our bipartite graph. We know which worker can handle which machines. This defines the edges of our bipartite graph. Our task in the maximum cardinality matching problem is assigning workers to machines in such a way that as many machines as possible are operated by a worker that can handle it. One worker can be assigned to at most one machine and we can assign at most one worker to one machine. LEDA Functions for Maximum Cardinality Matching in Bipartite Graphs MAX_CARD_BIPARTITE_MATCHING() computes a maximum cardinality matching in a bipartite graph. Remark: Additionally, LEDA provides several specialized implementations for maximum cardinality matching in bipartite graphs. These functions are mainly intended for specialists. More details can be found on the Manual Page of Maximum Cardinality Matching in Bipartite Graphs. CHECK_MCB() checks if the result of MAX_CARD_BIPARTITE_MATCHING(), a list M and a node_array NC, is maximum cardinality matching and node cover of a bipartite graph G. Example