Question: Prove that the following problem is NP - hard Input: A directed graph G = ( V , E ) with each vertex colored blue
Prove that the following problem is NPhard Input: A directed graph G V E with each vertex colored blue or red, ie
V Vblue Vred.
Goal: Find a Colored cycle which is a directed cycle through all vertices in G that alternates between blue and red vertices.
Hint: You might want to do a reduction from the Hamiltonian Cycle problem.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
