Edge cover

From Wikipedia, the free encyclopedia
(Redirected from Edge cover problem)
Jump to navigation Jump to search

In graph theory, an edge cover of a graph is a set of edges such that every vertex of the graph is an endpoint of at least one edge of the set. In computer science, the minimum edge cover problem is the problem of finding an edge cover of minimum size. It is an optimization problem that belongs to the class of covering problems and can be solved in polynomial time.

Definition

[edit | edit source]

Formally, an edge cover of a graph G is a set of edges C such that each vertex in G is incident with at least one edge in C. The set C is said to cover the vertices of G. The following figure shows examples of edge coverings in two graphs (the set C is marked with red).

A minimum edge covering is an edge covering of smallest possible size. The edge covering number ρ(G) is the size of a minimum edge covering. The following figure shows examples of minimum edge coverings (again, the set C is marked with red).

Note that the figure on the right is not only an edge cover but also a matching. In particular, it is a perfect matching: a matching M in which every vertex is incident with exactly one edge in M. A perfect matching (if it exists) is always a minimum edge covering.

Examples

[edit | edit source]
  • The set of all edges is an edge cover, assuming that there are no degree-0 vertices.
  • The complete bipartite graph Km,n has edge covering number max(m, n).

Algorithms

[edit | edit source]

A smallest edge cover can be found in polynomial time by finding a maximum matching and extending it greedily so that all vertices are covered.[1][2] In the following figure, a maximum matching is marked with red; the extra edges that were added to cover unmatched nodes are marked with blue. (The figure on the right shows a graph in which a maximum matching is a perfect matching; hence it already covers all vertices and no extra edges were needed.)

File:Minimum-edge-cover-from-maximum-matching.svg

On the other hand, the related problem of finding a smallest vertex cover is an NP-hard problem.[1]

Looking at the image it already becomes obvious why, for a given minimum edge cover C and maximum matching M, letting c and m be the number of edges in C and M respectively, we have:[3] |V|=c+m. Indeed, C contains a maximum matching, so the edges of C can be decomposed between the m edges of a maximum matching, covering 2m vertices, and the cm other edges that each cover one other vertex. Thus, as C covers all of the |V| vertices, we have |V|=2m+(cm) giving the desired equality.

See also

[edit | edit source]
  • Vertex cover
  • Set cover – the edge cover problem is a special case of the set cover problem: the elements of the universe are vertices, and each subset covers exactly two elements.

Notes

[edit | edit source]
  1. ^ a b Garey & Johnson (1979), p. 79, uses edge cover and vertex cover as one example of a pair of similar problems, one of which can be solved in polynomial time while the other one is NP-hard. See also p. 190.
  2. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value)..
  3. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).

References

[edit | edit source]
  • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value)..