Given that:
Note: For the following problems, you can assume that INDEPENDENT SET, VERTEX COVER, 3-SAT, HAMILTONIAN PATH, and GRAPH COLORING are NP-complete. You, of course, may look up the defini- tions of the...
Write the proof that the given problems are in NP (not NP-complete yet) Longest Path INSTANCE: Graph G = (V, E), positive integer K <= |V|. QUESTION: Does G contain a simple path (that is, a path encountering no vertex more than once) with K or more edges?
Show that the following problem is NP-Complete (Hint: reduce from 3-SAT or Vertex Cover). Given an undirected graph G with positive integer distances on the edges, and two integers f and d, is there a way to select f vertices on G on which to locate firehouses, so that no vertex of G is at distance more than d from a firehouse?