Question

Consider a tree with 13 nodes: the root has 4 children and each of these children has 2 children. Consider the following greedy algorithm for vertex cover: add the node with the highest degree to the...

Consider a tree with 13 nodes: the root has 4 children and each of these children has 2 children. Consider the following greedy algorithm for vertex cover: add the node with the highest degree to the vertex cover, remove all edges incident to this node, and repeat until there are no edges left. What approximation ratio is achieved by the algorithm on this graph? Give your answer to 2 decimal places.

Can someone help me with this question? Thanks.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Vertex cover: Subset of its vertices such that for every edge (u, v) of the graph, either ‘u’ or ‘v’ is in vertex cover.

Degree: Degree of node in a tree is the number of children it has. In binary tree degree can be 0(leaf nodes),1 or 2.

Using the greedy algorithm we first add the vertex with highest degree and remove all the edges in the tree which are incident on to this vertex, repeat the process until the tree has no edges.

Using the general algorithm we get the complexity O(V+E), but using approximation this can be reduced to polynomial time.

Using the PCP technique the best approximation ratio that can be achieved is 1.12.

Add a comment
Know the answer?
Add Answer to:
Consider a tree with 13 nodes: the root has 4 children and each of these children has 2 children. Consider the following greedy algorithm for vertex cover: add the node with the highest degree to the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 2) Let G ME) be an undirected Graph. A node cover of G is a subset...

    2) Let G ME) be an undirected Graph. A node cover of G is a subset U of the vertex set V such that every edge in E is incident to at least one vertex in U. A minimum node cover MNC) is one with the lowest number of vertices. For example {1,3,5,6is a node cover for the following graph, but 2,3,5} is a min node cover Consider the following Greedy algorithm for this problem: Algorithm NodeCover (V,E) Uempty While...

  • QUESTION 1 In a tree, a ____ is a node with successor nodes. root child descendent...

    QUESTION 1 In a tree, a ____ is a node with successor nodes. root child descendent parent sibling QUESTION 2 In a tree, the ____ is a measure of the distance from a node to the root. count degree branch height level QUESTION 3 Which of the following is not a characteristic of a binary search tree? Each node has zero, one, or two successors. The preorder traversal processes the node first, then the left subtree, and then the right...

  • Sc Python 1 Task 2 3 Consider a binary tree of N vertices 4 such that children of node K are 2* K + 1. Vertex 1...

    Sc Python 1 Task 2 3 Consider a binary tree of N vertices 4 such that children of node K are 2* K + 1. Vertex 1 is the root Kand 2 of the tree and each node has an integer value associated with it. Such a tree may be represented as an array of N integers by writing down values from consecutive nodes For example, the tree below 8 Test might be represented as an array o A node...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT