Finding a Minimal Vertex Cover & Max Sets for a Graph

  • MHB
  • Thread starter mathmari
  • Start date
  • Tags
    Graph
In summary: No, at the step when we choose e=(1,2) we add both vertices, $1$ and $2$, to the set $C$ according to the algorithm.Yes, vertex 1 and vertex 2 must be added to the set $C$ according to the algorithm.
  • #1
mathmari
Gold Member
MHB
5,049
7
Hey! :eek:

We have the following graph:
View attachment 5841 I want to find a minimal vertex cover.
I thought that the set $C^\star=\{4,5,6\}$ is a minimal vertx cover. Is this correct? How could we prove it? (Wondering) Then I want to find a vertex cover using the following approximation algorithm
Code:
C <- 0 
while E ≠ 0 do 
    choose e = (u,v) ∈ E arbitrary 
    C <- C U {u,v} 
    G <- G - {u,v} 
return C

I have done the following:
Suppose we start with e=(1,4) then C={1,4} and the graph is the following:
View attachment 5842
Then when we choose e=(5,7) we have C={1,4,5,7} and the graph will look as follows:
View attachment 5843
Then we can choose e=(2,3) and then we have C={1,2,3,4,5,7} and the graph will be:
View attachment 5844
Have we finished now?
Is a minimal vertex cover the set $C=\{1,2,3,4,5,7\}$ ? (Wondering)

Suppose we start with e=(4,5) then C={4,5} and the graph is the following:
View attachment 5845
Then when we choose e=(3,6) we have C={3,4,5,6} and the graph will look as follows:
View attachment 5846
Then we choose e=(1,2) and then we have C={1,2,3,4,5,6} and the graph will be:
View attachment 5847
So, a minimal vertex cover is the set $C=\{1,2,3,4,5,6\}$, right? (Wondering)

Does this mean that no matter which edge we choose at each step the minimal vertex cover will contain $6$ vertices? (Wondering) After that I want to find a maximal independent set of vertices and a maximal clique. Could you give me some hints how we could find them? (Wondering)
 

Attachments

  • Vertex.png
    Vertex.png
    4.1 KB · Views: 65
  • Vertex.png
    Vertex.png
    2.6 KB · Views: 75
  • Vertex.png
    Vertex.png
    1.7 KB · Views: 69
  • Vertex.png
    Vertex.png
    505 bytes · Views: 66
  • Vertex.png
    Vertex.png
    3.1 KB · Views: 64
  • Vertex.png
    Vertex.png
    1.5 KB · Views: 65
  • Vertex.png
    Vertex.png
    477 bytes · Views: 66
Physics news on Phys.org
  • #2
mathmari said:
I thought that the set $C^\star=\{4,5,6\}$ is a minimal vertx cover.
No, the edge (1, 2) is not incident to any vertex in {4, 5, 6}.

mathmari said:
So, a minimal vertex cover is the set $C=\{1,2,3,4,5,6\}$, right?
This is a vertex cover, but it is not minimal because vertex 1 can be removed.
 
  • #3
Evgeny.Makarov said:
No, the edge (1, 2) is not incident to any vertex in {4, 5, 6}.

Oh yes... So, is it maybe $C^\star=\{1,2,3,7\}$ ? (Wondering)
Evgeny.Makarov said:
This is a vertex cover, but it is not minimal because vertex 1 can be removed.

At the step when we choose e=(1,2) do we not have to add both vertices, $1$ and $2$, to the set $C$ according to the algorithm? (Wondering)
 

FAQ: Finding a Minimal Vertex Cover & Max Sets for a Graph

What is a Minimal Vertex Cover?

A Minimal Vertex Cover is a subset of vertices in a graph that covers all of its edges. This means that every edge in the graph is incident to at least one vertex in the minimal vertex cover.

What is the purpose of finding a Minimal Vertex Cover?

Finding a Minimal Vertex Cover is useful in solving various graph optimization problems. It can also help in identifying the most important or influential nodes in a network.

How do you find a Minimal Vertex Cover?

There are various algorithms that can be used to find a Minimal Vertex Cover. Some of the most commonly used ones include the Greedy Algorithm, Approximation Algorithm, and Branch and Bound Algorithm.

What is a Max Set for a Graph?

A Max Set for a Graph is a subset of vertices in a graph that forms an independent set. This means that no two vertices in the subset are adjacent to each other.

How is a Max Set different from a Minimal Vertex Cover?

A Max Set is a subset of vertices that forms an independent set, while a Minimal Vertex Cover is a subset of vertices that covers all of the edges in a graph. In other words, a Max Set contains no adjacent vertices, while a Minimal Vertex Cover may have overlapping vertices.

Similar threads

Replies
6
Views
2K
Replies
1
Views
2K
Replies
1
Views
2K
Replies
1
Views
1K
Replies
22
Views
1K
Replies
5
Views
1K
Back
Top