Suggestions required on NP Complete Problem

Let's talk about algorithms!

Moderator: Board moderators

Post Reply
ChPravin
New poster
Posts: 9
Joined: Mon Nov 17, 2008 6:11 am

Suggestions required on NP Complete Problem

Post by ChPravin »

Hello everyone,

Please give in your ideas and suggestions to this problem:

Given a directed graph G = (V,E) and a positive integer
k, we wish to determine whether there is a subset V ? ? V of size k such that
every cycle in G contains at least one vertex in V ?. Show that this problem
is NP-complete.

Thanks & Regards,
gajaykrishnan
New poster
Posts: 1
Joined: Thu Oct 22, 2009 7:02 am

Re: Suggestions required on NP Complete Problem

Post by gajaykrishnan »

Well you can do this by reducing HAMCYCLE to your problem.
Adding a restriction of k=|V|, your problem is equivalent to deciding for HAMCYCLE. Since the restricted version is already known to be NP-complete, the unrestricted version (your problem) is also NP-complete.
I hope you can flush out this proof.
mf
Guru
Posts: 1244
Joined: Mon Feb 28, 2005 4:51 am
Location: Zürich, Switzerland
Contact:

Re: Suggestions required on NP Complete Problem

Post by mf »

No, that's not it. Read the problem more carefully. When k=|V|, the answer is trivially always "yes".
mf
Guru
Posts: 1244
Joined: Mon Feb 28, 2005 4:51 am
Location: Zürich, Switzerland
Contact:

Re: Suggestions required on NP Complete Problem

Post by mf »

Looks like this problem is called 'Maximum Acyclic Subgraph' in literature.
Post Reply

Return to “Algorithms”