13.07.2015 Views

Page 2 Lecture Notes in Computer Science 2865 Edited by G. Goos ...

Page 2 Lecture Notes in Computer Science 2865 Edited by G. Goos ...

Page 2 Lecture Notes in Computer Science 2865 Edited by G. Goos ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

266 S. Bhadra and A. FerreiraThis stands directly from Property 1. As an example, take <strong>in</strong> Figure 4 the journeyfrom d to c, which uses vertex a that lies outside the SCC {b, c, d}.The ma<strong>in</strong> problem calls for decompos<strong>in</strong>g the evolv<strong>in</strong>g digraph <strong>in</strong>to all possibleSCC’s. Consider a subproblem COMPONENT def<strong>in</strong>ed as follows.COMPONENT: Given an evolv<strong>in</strong>g digraph G =(V G ,E G ) and an <strong>in</strong>teger k,is there a SCC of size k?We shall subsequently demonstrate that COMPONENT is NP-Complete,there<strong>by</strong> preclud<strong>in</strong>g a polynomial time algorithm for the decomposition problem,unless P=NP.Theorem 1. COMPONENT is <strong>in</strong> NP.Proof sketch: Given a subset V G ′ of V G and the <strong>in</strong>teger k, we must have a meansof verify<strong>in</strong>g <strong>in</strong> polynomial time if V G ′ is <strong>in</strong>deed a SCC of size k. First, verify that|V G ′| = k. Verify<strong>in</strong>g that the subdigraph G ′ <strong>in</strong>duced <strong>by</strong> V G ′ on G is stronglyconnected and maximum is possible <strong>in</strong> polynomial time from Proposition 1.We now def<strong>in</strong>e a strong reachability digraph for an evolv<strong>in</strong>g digraph G as anundirected graph S G =(V G ,E S ), where E S = {(v i ,v j )} if and only if (v i ,v j ) ∪(v j ,v i ) ∈ R G , the transitive closure digraph of G.To prove the NP-Completeness of COMPONENT we reduce the CLIQUEproblem to COMPONENT. CLIQUE is formally def<strong>in</strong>ed as follows: Given adigraph G =(V,E), and an <strong>in</strong>teger k, is there a clique of size k <strong>in</strong> G?Lemma 1. F<strong>in</strong>d<strong>in</strong>g an SCC <strong>in</strong> G is equivalent to f<strong>in</strong>d<strong>in</strong>g a maximal clique <strong>in</strong>S G , the strong connectivity graph of G.Proof: Directly from the def<strong>in</strong>itions of strong reachability, SCC and maximalclique, we see that the SCC <strong>in</strong> G is equivalent to f<strong>in</strong>d<strong>in</strong>g the maximal clique <strong>in</strong>S G .Theorem 2. CLIQUE can be reduced to COMPONENT <strong>in</strong> polynomial time.Proof sketch: Given an undirected graph G =(V,E) and the <strong>in</strong>teger k, weconstruct an evolv<strong>in</strong>g digraph G =(V G ,E G ) as follows (cf. Figure 5):1. For each node u i ∈ V create a node v i ∈ V G ,anodeh ii ∈ V G , and arcs(v i ,h ii ), (h ii ,v i ) with arc schedule time 2;2. For each edge {u i ,u j }∈E, do(a) create nodes h ij ,h ji ∈ V G ,(b) create arcs (v i ,h ij ),(h ij ,v i ), and arcs (v j ,h ji ), (h ji ,v j ) with arc scheduletime 2,(c) create arcs (h ij ,v j ), (v j ,h ij ) and arcs (h ji ,v i ), (v i ,h ji ) with arc scheduletime 3.3. Create an SCC connect<strong>in</strong>g all h-nodes. Label these arcs with schedule times1 and 4.By construction, S G conta<strong>in</strong>s a clique of size n ′ = |{(h ij ,h ii ):1≤ i, j ≤|V G |}| formed of the h-nodes alone. We can then prove that f<strong>in</strong>d<strong>in</strong>g an SCC <strong>in</strong> Gis the same as f<strong>in</strong>d<strong>in</strong>g a clique <strong>in</strong> G, s<strong>in</strong>ce a clique of size k <strong>in</strong> G will correspondto a clique of size n ′ + k <strong>in</strong> S G , correspond<strong>in</strong>g, <strong>in</strong> turn, to an SCC of size n ′ + k<strong>in</strong> G (via Lemma 1).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!