Professional Documents
Culture Documents
A 8 Problem 8.11 759746
A 8 Problem 8.11 759746
In a graph, G the undirected and directed variants refer to the type of graph. If there is a
path/cycle G that uses each vertex exactly once, then it is called the path.
Step 2 of 3
(a)
We first reduce the undirected problem to the directed Rudrata cycle problem.
Let G be an undirected graph, which is an input to the undirected Rudrata cycle problem.
We need to produce a directed graph G ' (in polynomial time) that G has a Rudrata cycle if
and only if G ' has a (directed) Rudrata cycle. We construct G ' by replacing each edge with
two directed edges (going in the opposite direction). It is easy to check that this reduction
has the desired property.
Step 3 of 3
(b)