Question: (computability and complexity): Prove well: if there exists an algorithm that can decide language ACYCLIC in polynomial time, then there's an algorithm that returns a
(computability and complexity): Prove well: if there exists an algorithm that can decide language ACYCLIC in polynomial time, then there's an algorithm that returns a set of k edges, so that the graph that is obtained from deleting those k edges is without circles, in polynomial time. This algorithm gets as an input a directed graph G and a natural k; if there's no set of k edges as required, it returns "no", else, if there are k edges as needed, the algorithm returns a list of the k edges, so that the graph that is obtained from erasing those k edges is without any circles. Important: it is allowed to use the algorithm that decides the languages ACYCLIC - but it CANNOT use any other NP-COMPLETE algorithms. Its running time must be polynomial in regards to input size.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
