Consider two labeled undirected graphs and , each having number of edges such that the edge-labels of both graphs are taken from the same set (say ). The problem is to find the largest collection of edges such that is acyclic in both and .
Which of the following algorithms may be used to solve this problem efficiently?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Let F 1 be the collection of all subsets of edges of E such that they are acyclic in G 1 . Similarly define F 2 . It is well-known that these two subsets have the Matroid property. The feasible solution set of the problem is precisely the intersection of these two matroids. Hence, the problem can be solved efficiently using the Matroid Intersection algorithm.