To find a minimum Dominating Set of an undirected Graph G you can use a greedy algorithm like this: Start with an empty set D. Until D is a dominating Set, add a vertex v with maximum number of uncovered neighbours.
The algorithm generally does not find the optimal solution, it is a ln(Delta)-approximation. (If Delta is the maximum degree of a vertex in G)
Now I am looking for a simple example where the greedy algorithm does not find the optimal solution. The only one I found is a related instance of the set cover problem. (http://en.wikipedia.org/wiki/Set_cover_problem#Greedy_algorithm picture on the right) Translating this one to a graph would cause a minimum of 14 vertices and a lot of edges.
Does anyone know a small example?
Thanks in advance
Consider the following graph:
A greedy approach will choose B then D and G. Meanwhile, E and F form a dominating set.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With