Re: An algorithm with Minimum vertex cover without considering its performance
- From: Patricia Shanahan <pats@xxxxxxx>
- Date: Sun, 24 Sep 2006 20:17:32 GMT
eKo1 wrote:
Let A be the adjacency graph of G with the rows and columns ordered 1,
2, ..., n. Let L be an empty list. Do the following:
1. Loop through the A. If you find a 1 at the ith row and jth column,
then add i and j to L.
2. Since L may contain repeated vertices, sort L and loop through it
eliminating repeated vertices.
L now represents the minimum vertex cover of G.
L is a vertex cover, but not necessarily minimal.
Consider the single edge, two vertex, graph V={1,2}, E={{1,2}},
adjacency matrix:
0 1
1 0
L would be {1,2}, but {1} is also a vertex cover, as is {2}.
Patricia
.
- Follow-Ups:
- References:
- An algorithm with Minimum vertex cover without considering its performance
- From: wtxwtx
- Re: An algorithm with Minimum vertex cover without considering its performance
- From: Patricia Shanahan
- Re: An algorithm with Minimum vertex cover without considering its performance
- From: wtxwtx
- Re: An algorithm with Minimum vertex cover without considering its performance
- From: eKo1
- An algorithm with Minimum vertex cover without considering its performance
- Prev by Date: Re: More beginner questions about SAT...
- Next by Date: Re: On the complexity of determining whether n numbers are distinct
- Previous by thread: Re: An algorithm with Minimum vertex cover without considering its performance
- Next by thread: Re: An algorithm with Minimum vertex cover without considering its performance
- Index(es):
Relevant Pages
|