Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Polynomial time algorithm

what could be a polynomial-time algorithm that finds [V / 2] vertices that collectively account for at least three-fourths (3/4) of the edges in an arbitrary undirected graph??

kindly help

like image 353
Aakash Avatar asked Mar 31 '26 02:03

Aakash


2 Answers

Here's a proof that it exists:

Consider the algorithm that picks half of the vertices randomly. For any given edge, the probability that at least one of its two endpoints was chosen is 3/4, so the expected number of edges covered is 3|E|/4. Thus, by the probabilistic method, there must exist at least one covering of >= 3|E|/4 edges using just 1/2 of the vertices. The nondeterministic algorithm follows immediately.

Coming up with a deterministic algorithm based on this is an exercise in derandomization (try using the method of conditional expectations).

like image 122
Yonatan N Avatar answered Apr 02 '26 20:04

Yonatan N


Is there one? I suspect not but I honestly don't know; vertex cover is NP-complete and this is close (we're asking if G has a vertex cover of size at most |V| / 2 that covers three-quarters of the edges.

Obviously try the greedy algorithm picking off vertices with the highest degree first.

like image 40
jason Avatar answered Apr 02 '26 19:04

jason



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!