Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Let G = (V U,E) be a bipartite graph such that each edge e E has an associated weight w(e). A matching for G is

Let G = (V U,E) be a bipartite graph such that each edge e E has an associated weight w(e). A matching for G is a subset M E such that no two edges in M share a common vertex. The weight of M is w(M) = eM w(e).

A greedy algorithm for bipartite matching could start with an empty matching M, and then repeatedly add the largest weight edge that does not share a vertex with an edge already included in M

(a) Give an example edge weighted bipartite graph for which the above greedy algorithm will fail to find the maximum weight matching. (2 marks)

(b) For bipartite graphs in which all the edge weights are distinct and each is a power of 2 (i.e. each weight is 2i, for 0 i), prove that the above greedy algorithm always produces the maximum weight matching. (4 marks)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Machine Performance Modeling Methodologies And Evaluation Strategies Lncs 257

Authors: Francesca Cesarini ,Silvio Salza

1st Edition

3540179429, 978-3540179429

More Books

Students also viewed these Databases questions

Question

Describe Balor method and give the chemical reaction.

Answered: 1 week ago