V
- the graph vertex typeE
- the graph edge typepublic class EdgeBasedTwoApproxVCImpl<V,E> extends Object implements MinimumVertexCoverAlgorithm<V,E>
MinimumVertexCoverAlgorithm.VertexCover<V>, MinimumVertexCoverAlgorithm.VertexCoverImpl<V>
Constructor and Description |
---|
EdgeBasedTwoApproxVCImpl() |
Modifier and Type | Method and Description |
---|---|
MinimumVertexCoverAlgorithm.VertexCover<V> |
getVertexCover(UndirectedGraph<V,E> graph)
Finds a 2-approximation for a minimal vertex cover of the specified graph.
|
public MinimumVertexCoverAlgorithm.VertexCover<V> getVertexCover(UndirectedGraph<V,E> graph)
BarYehudaEvenTwoApproxVCImpl
or
ClarksonTwoApproxVCImpl
.
For more details see Jenny Walter, CMPU-240: Lecture notes for Language Theory and Computation, Fall 2002, Vassar College, http://www.cs.vassar.edu/~walter/cs241index/lectures/PDF/approx.pdf.
getVertexCover
in interface MinimumVertexCoverAlgorithm<V,E>
graph
- the graphCopyright © 2017. All rights reserved.