APPROX_VERTEX_COVER(G)
- C ← ∅
- E' ← E[G]
- while E' ≠ ∅ do
- let (u,v) be an arbitrary edge in E'
- C ← C ∪ {u,v}
- Remove from E' every edge incident on either u or v.
- return C
APPROX_TSP_TOUR(G,c) // c is the cost function for the graph
- select a vertex r ∈ V to be the "root" (or starting point)
- compute a mst T for G from root r using MST_PRIM(G,c,r)
- Let L be the list of vertexes visited in a preorder tree walk of T.
- Return L