Minimal Vertex Cover using Meet-in-the-Middle

agassaa

I was studying Meet-in-the-Middle algorithm and found the following exercise:

Given a graph of n nodes (n <= 30), find out a set with the smallest number of vertices such that each edge in the graph has at least one node inside the set.

I have no idea how to do that, only hint I got was

complexity O(3^(n/2))

can you explain the idea?

akashnil

Take out an edge (u1, v1) from the graph, remove all edges that share a vertex with it. Take out another one (u2, v2), ... continue until the rest of the graph has no edges.

You end up with a number of pairs of vertices

(u1, v1), (u2, v2), ..., (uk, vk)

The rest of the vertices are:

w1, w2, ..., wm

Call the first set of vertices paired vertices, and the second set unpaired vertices. Note, 2k + m = n, there are no edges between unpaired vertices in the original graph.

A vertex cover must have either u1, v1, or both in it. There are 3 choices for each pair (uj, vj). Consider all 3^k ways to include the paired vertices to the vertex cover.

For each of those configurations, an unpaired vertex wi is to be included into the cover if and only if at least one of its neighbors is not in the cover (note that each of wi's neighbors are paired vertices so whether they are included is known).

For each of the 3^k selections of paired vertices, include the unpaired vertices according to the above criteria, then verify each edge between paired vertices has an incident vertex from the cover, if so, it is a candidate cover set. Take one of the candidate cover sets of minimum size as output.

Overall complexity of the above algorithm is O(3^(n/2)E) where E is the number of edges in the graph.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Minimum vertex cover

From Dev

Approximation Algorithm for Vertex Cover

From Dev

How to find minimal set of operations to meet requirements

From Dev

how to find the minimal cover for a set of functional dependencies?

From Dev

Find the maximum vertex-disjoint path cover

From Dev

Networkx min_weighted_vertex_cover in python returns whole set instead of vertex cover

From Dev

Cover polygon with minimal number of overlapping polygons at fixed positions

From Dev

Minimal number of groups necessary to cover user/product permissions

From Dev

What is the name of this greedy algorithm to solve NP-Hard Vertex Cover

From Dev

Show that the heuristic solution to vertex cover is at most twice as large as the optimal solution

From Dev

Find vertex from a object by using vertex detection

From Dev

Using Vertex Arrays with OpenTK

From Dev

Exact cover using Dancing Links

From Dev

using $past in cover property statement

From Dev

Create cover flow using UIScrollView

From Dev

Extract video cover/thumbnail from file with embedded cover using ffmpeg

From Dev

BGL: Using bundled properties to store vertex descriptor of another vertex

From Dev

How to draw a line from vertex to vertex using Graphics Class?

From Dev

Vertex attributes - using short instead of float for vertex positions

From Dev

Give an efficient greedy algorithm that finds an optimal vertex cover for a tree in linear time

From Dev

Prove that any minimum vertex cover of a clique of size n must have exactly n-1 vertices

From Dev

Give an efficient greedy algorithm that finds an optimal vertex cover for a tree in linear time

From Dev

Clarkson's 2-approximation Weighted Vertex Cover Algorithm Runtime analysis

From Dev

Conditional formatting using IF function to meet 3 criteria

From Dev

Using Go 1.2 cover tool with GVM

From Dev

Make view cover full screen using CGRectMake

From Dev

Cover Flow feature using view pager android

From Dev

Cover the body using a background image with a fixed border

From Dev

Cover "Manhattan skyline" using the minimum number of rectangles

Related Related

  1. 1

    Minimum vertex cover

  2. 2

    Approximation Algorithm for Vertex Cover

  3. 3

    How to find minimal set of operations to meet requirements

  4. 4

    how to find the minimal cover for a set of functional dependencies?

  5. 5

    Find the maximum vertex-disjoint path cover

  6. 6

    Networkx min_weighted_vertex_cover in python returns whole set instead of vertex cover

  7. 7

    Cover polygon with minimal number of overlapping polygons at fixed positions

  8. 8

    Minimal number of groups necessary to cover user/product permissions

  9. 9

    What is the name of this greedy algorithm to solve NP-Hard Vertex Cover

  10. 10

    Show that the heuristic solution to vertex cover is at most twice as large as the optimal solution

  11. 11

    Find vertex from a object by using vertex detection

  12. 12

    Using Vertex Arrays with OpenTK

  13. 13

    Exact cover using Dancing Links

  14. 14

    using $past in cover property statement

  15. 15

    Create cover flow using UIScrollView

  16. 16

    Extract video cover/thumbnail from file with embedded cover using ffmpeg

  17. 17

    BGL: Using bundled properties to store vertex descriptor of another vertex

  18. 18

    How to draw a line from vertex to vertex using Graphics Class?

  19. 19

    Vertex attributes - using short instead of float for vertex positions

  20. 20

    Give an efficient greedy algorithm that finds an optimal vertex cover for a tree in linear time

  21. 21

    Prove that any minimum vertex cover of a clique of size n must have exactly n-1 vertices

  22. 22

    Give an efficient greedy algorithm that finds an optimal vertex cover for a tree in linear time

  23. 23

    Clarkson's 2-approximation Weighted Vertex Cover Algorithm Runtime analysis

  24. 24

    Conditional formatting using IF function to meet 3 criteria

  25. 25

    Using Go 1.2 cover tool with GVM

  26. 26

    Make view cover full screen using CGRectMake

  27. 27

    Cover Flow feature using view pager android

  28. 28

    Cover the body using a background image with a fixed border

  29. 29

    Cover "Manhattan skyline" using the minimum number of rectangles

HotTag

Archive