On the complexity of the sandwich problems for strongly chordal graphs and chordal bipartite graphs

Similar documents
Discrete Applied Mathematics

The graph sandwich problem for 1-join composition is NP-complete

Extremal Graphs Having No Stable Cutsets

Strongly chordal and chordal bipartite graphs are sandwich monotone

Partial characterizations of clique-perfect graphs I: subclasses of claw-free graphs

Partial characterizations of clique-perfect graphs II: diamond-free and Helly circular-arc graphs

A Note on Perfect Partial Elimination

F. Roussel, I. Rusu. Université d Orléans, L.I.F.O., B.P. 6759, Orléans Cedex 2, France

HOW IS A CHORDAL GRAPH LIKE A SUPERSOLVABLE BINARY MATROID?

THE COMPLEXITY OF DISSOCIATION SET PROBLEMS IN GRAPHS. 1. Introduction

Discrete Applied Mathematics

Cographs; chordal graphs and tree decompositions

On Graph Contractions and Induced Minors

Discrete Mathematics

GRAPHS WITH MAXIMAL INDUCED MATCHINGS OF THE SAME SIZE. 1. Introduction

Fixed Parameter Algorithms for Interval Vertex Deletion and Interval Completion Problems

arxiv: v1 [cs.dm] 29 Oct 2012

Complexity of conditional colorability of graphs

Linear-Time Algorithms for Finding Tucker Submatrices and Lekkerkerker-Boland Subgraphs

Partitioning a Graph into Disjoint Cliques and a Triangle-free Graph arxiv: v6 [cs.cc] 4 Jan 2015

Hong-Gwa Yeh and Gerard J. Chang. 1. Introduction

On disconnected cuts and separators

This article appeared in a journal published by Elsevier. The attached copy is furnished to the author for internal non-commercial research and

On clique separators, nearly chordal graphs, and the Maximum Weight Stable Set Problem

This is a repository copy of Chromatic index of graphs with no cycle with a unique chord.

On the hardness of losing width

The NP-Hardness of the Connected p-median Problem on Bipartite Graphs and Split Graphs

Classical Complexity and Fixed-Parameter Tractability of Simultaneous Consecutive Ones Submatrix & Editing Problems

Probe interval graphs and probe unit interval graphs on superclasses of cographs

EXACT DOUBLE DOMINATION IN GRAPHS

4-coloring P 6 -free graphs with no induced 5-cycles

Generalizations of Matched CNF Formulas

Applicable Analysis and Discrete Mathematics available online at HAMILTONIAN PATHS IN ODD GRAPHS 1

arxiv: v1 [cs.ds] 2 Oct 2018

arxiv: v3 [cs.dm] 18 Oct 2017

On the hardness of losing width

Berge Trigraphs. Maria Chudnovsky 1 Princeton University, Princeton NJ March 15, 2004; revised December 2, Research Fellow.

On Injective Colourings of Chordal Graphs

Induced Subgraph Isomorphism on proper interval and bipartite permutation graphs

More on NP and Reductions

The Complexity of the List Partition Problem for Graphs

Bichain graphs: geometric model and universal graphs

Out-colourings of Digraphs

Parameterizing cut sets in a graph by the number of their components

Relating 2-rainbow domination to weak Roman domination

Coloring graphs with forbidden induced subgraphs

Approximation algorithms and hardness results for the clique packing problem. October, 2007

The minimum rank of matrices and the equivalence class graph

Complexity Classification of Some Edge Modification Problems

arxiv: v1 [math.co] 11 Jul 2016

THE THREE-STATE PERFECT PHYLOGENY PROBLEM REDUCES TO 2-SAT

MATHEMATICAL ENGINEERING TECHNICAL REPORTS. Boundary cliques, clique trees and perfect sequences of maximal cliques of a chordal graph

Dominator Colorings and Safe Clique Partitions

Some Complexity Problems on Single Input Double Output Controllers

ON DOMINATING THE CARTESIAN PRODUCT OF A GRAPH AND K 2. Bert L. Hartnell

Durham Research Online

An approximate version of Hadwiger s conjecture for claw-free graphs

The non-bipartite graphs with all but two eigenvalues in

Graph Classes and Ramsey Numbers

Chapter 3: Proving NP-completeness Results

Analogies and discrepancies between the vertex cover number and the weakly connected domination number of a graph

ONE-THREE JOIN: A GRAPH OPERATION AND ITS CONSEQUENCES

An Improved Algorithm for Parameterized Edge Dominating Set Problem

Wheel-free planar graphs

Even Pairs and Prism Corners in Square-Free Berge Graphs

Theoretical Computer Science. Parameterizing cut sets in a graph by the number of their components

Parity Versions of 2-Connectedness

A New Lower Bound on the Maximum Number of Satisfied Clauses in Max-SAT and its Algorithmic Applications

Choosability on H-Free Graphs

Complexity of locally injective homomorphism to the Theta graphs

Group connectivity of certain graphs

Enumerating minimal connected dominating sets in graphs of bounded chordality,

Graph coloring, perfect graphs

Discrete Mathematics

The Chromatic Number of Ordered Graphs With Constrained Conflict Graphs

A characterization of diameter-2-critical graphs with no antihole of length four

arxiv: v1 [cs.dm] 26 Apr 2010

Claw-Free Graphs With Strongly Perfect Complements. Fractional and Integral Version.

Bounds on parameters of minimally non-linear patterns

The doubly negative matrix completion problem

Induced Subtrees in Interval Graphs

Cliques and Clubs.

Chordal Graphs, Interval Graphs, and wqo

The Recognition of Simple-Triangle Graphs and of Linear-Interval Orders Is Polynomial

Claw-free Graphs. III. Sparse decomposition

On (δ, χ)-bounded families of graphs

ARTICLE IN PRESS Theoretical Computer Science ( )

ALL GRAPHS WITH PAIRED-DOMINATION NUMBER TWO LESS THAN THEIR ORDER. Włodzimierz Ulatowski

arxiv: v2 [math.co] 19 Jun 2018

Finite Induced Graph Ramsey Theory: On Partitions of Subgraphs

On star forest ascending subgraph decomposition

Parameterized Domination in Circle Graphs

The minimum G c cut problem

An Ore-type Condition for Cyclability

Planar Ramsey Numbers for Small Graphs

Antoni Marczyk A NOTE ON ARBITRARILY VERTEX DECOMPOSABLE GRAPHS

Intrinsic products and factorizations of matrices

On Dominator Colorings in Graphs

Perfect divisibility and 2-divisibility

arxiv: v1 [math.co] 13 May 2016

Transcription:

Theoretical Computer Science 381 (2007) 57 67 www.elsevier.com/locate/tcs On the complexity of the sandwich problems for strongly chordal graphs and chordal bipartite graphs C.M.H. de Figueiredo a,, L. Faria b, S. Klein c, R. Sritharan d a COPPE, Universidade Federal do Rio de Janeiro, Caixa Postal 68511, 21941-972 Rio de Janeiro, RJ, Brazil b Departamento de Matemática, Faculdade de Formação de Professores, UERJ, Brazil c IM and COPPE, Universidade Federal do Rio de Janeiro, Caixa Postal 68530, 21945-970 Rio de Janeiro, RJ, Brazil d Computer Science Department, The University of Dayton, Dayton, OH 45469, USA Received 15 June 2006; received in revised form 13 February 2007; accepted 3 April 2007 Communicated by J. Diaz Abstract Golumbic, Kaplan, and Shamir, in their paper [M.C. Golumbic, H. Kaplan, R. Shamir, Graph sandwich problems, J. Algorithms 19 (1995) 449 473] on graph sandwich problems published in 1995, left the status of sandwich problems for strongly chordal graphs and chordal bipartite graphs open. We prove that the sandwich problem for strongly chordal graphs is NP-complete. We also give some comments on the computational complexity of the sandwich problem for chordal bipartite graphs. c 2007 Elsevier B.V. All rights reserved. Keywords: Graph; Sandwich problem; Chordal; Strongly chordal 1. Introduction We say that a graph G 2 = (V, E 2 ) is a supergraph of a graph G 1 = (V, E 1 ) if E 1 E 2 ; and that a graph G = (V, E) is a sandwich graph for the pair G 1, G 2 if E 1 E E 2. For notational simplicity in the sequel, we let E 3 be the set of all edges in the complete graph with vertex set V which are not in E 2. Thus, every sandwich graph for the pair G 1, G 2 satisfies E 1 E and E E 3 =. We call E 1 the forced edge set, E 2 \ E 1 the optional edge set, E 3 the forbidden edge set. The GRAPH SANDWICH PROBLEM FOR PROPERTY Π is defined as follows [15]: GRAPH SANDWICH PROBLEM FOR PROPERTY Π Instance: Vertex set V, forced edge set E 1, forbidden edge set E 3. Question: Is there a graph G = (V, E) such that E 1 E and E E 3 = that satisfies property Π? We shall use both forms (V, E 1, E 3 ) and (V, E 1, E 2 ) interchangably to refer to an instance of a graph sandwich problem. Corresponding author. E-mail addresses: celina@cos.ufrj.br (C.M.H. de Figueiredo), luerbio@cos.ufrj.br (L. Faria), sula@cos.ufrj.br (S. Klein), srithara@notes.udayton.edu (R. Sritharan). 0304-3975/$ - see front matter c 2007 Elsevier B.V. All rights reserved. doi:10.1016/j.tcs.2007.04.007

58 C.M.H. de Figueiredo et al. / Theoretical Computer Science 381 (2007) 57 67 Graph sandwich problems have attracted much attention lately arising from many applications in, and as a natural generalization of, recognition problems [5,8,10,11,14 16,20,19]. The recognition problem for a class of graphs C is equivalent to the graph sandwich problem in which the forced edge set E 1 = E, the optional edge set E 2 \ E 1 =, G = (V, E) is the graph we want to recognize, and property Π is to belong to class C. Golumbic et al. [15] have considered sandwich problems with respect to several subclasses of perfect graphs, and proved that the GRAPH SANDWICH PROBLEM FOR SPLIT GRAPHS and the GRAPH SANDWICH PROBLEM FOR COGRAPHS remain in P. On the other hand, they proved several other problems (such as the GRAPH SANDWICH PROBLEM FOR COMPARABILITY GRAPHS) to be NP-complete. Subsequently, several decompositions arising in perfect graph theory were considered [5,8,10,11]. A graph is chordal or triangulated if every cycle of length greater than three has a chord. It is well known [23,25] that chordal graphs can be recognized in polynomial time, which implies that the NP-hardness result for the sandwich problem makes good sense [15]. The following problem arises in biology in when constructing evolutionary trees: TRIANGULATING A COLORED GRAPH (TCG) Instance: Graph G = (V, E), proper vertex coloring c : V Z. Question: Does there exist a supergraph G = (V, E ) of G that is chordal and also properly colored by c? Bodlaender et al. [2] proved that TCG is NP-complete. Theorem 1.1 ([2]). Problem TCG is NP-complete even when each color class has exactly two vertices. As noted by Golumbic et al. [15], the NP-completeness of the GRAPH SANDWICH PROBLEM FOR CHORDAL GRAPHS follows immediately from the NP-completeness of TCG, since the coloring c defines the forbidden edge set E 3 (pairs of vertices with same color) and E defines the forced edge set E 1 for this input. A sun is a chordal graph on 2n vertices (n 3) whose vertex set can be partitioned into W = {w 1,..., w n } and U = {u 1..., u n } such that W is an independent set and u i is adjacent to w j if and only if i = j or i = j + 1 (mod n). A vertex x is simple if N[y] N[z] or N[z] N[y] for any two vertices y, z N[x]. A graph is strongly chordal if it is chordal and does not contain a sun. A sun has also been defined in the literature [3] in such a way that the set of u i vertices is required to induce a complete graph; such a sun is also referred to as a complete sun [3]. However, it is well known [3] that every chordal graph that contains a sun must also contain a complete sun. Thus, for the purposes of defining a strongly chordal graph, the two notions are equivalent. A graph is chordal bipartite if it is bipartite and does not contain an induced cycle on at least 6 vertices. The following theorem gives a characterization of strongly chordal graphs. Theorem 1.2 ([9]). Graph G is strongly chordal if and only if every induced subgraph H of G that is nontrivial has at least two simple vertices of H. It is well known [9] that strongly chordal graphs can be recognized in polynomial time. The goal of the present paper is to consider two sandwich problems posed in the original paper by Golumbic et al. [15], the sandwich problems for strongly chordal graphs and for chordal bipartite graphs. In this paper we shall consider the following decision problems: STRONGLY TRIANGULATING A COLORED GRAPH (STCG) Instance: Graph G = (V, E), proper vertex coloring c : V Z. Question: Does there exist a supergraph G = (V, E ) of G that is strongly chordal and also properly colored by c? GRAPH SANDWICH PROBLEM FOR STRONGLY CHORDAL GRAPHS (STC-SW) Instance: Vertex set V, forced edge set E 1, forbidden edge set E 3. Question: Is there a strongly chordal graph G = (V, E) such that E 1 E and E E 3 =? GRAPH SANDWICH PROBLEM FOR CHORDAL BIPARTITE GRAPHS (CBP-SW) Instance: Vertex set V, forced edge set E 1, forbidden edge set E 3. Question: Is there a chordal bipartite graph G = (V, E) such that E 1 E and E E 3 =?

C.M.H. de Figueiredo et al. / Theoretical Computer Science 381 (2007) 57 67 59 Fig. 1. Decision component (a) for the occurrence of variable X in clause i, and clause component (b) for clause (X + Y + Z). We establish the NP-completeness of STC-SW by proving that STCG is NP-complete. As noted above, the NP-completeness of STC-SW follows immediately from the NP-completeness of STCG. We reduce to STCG the following NP-complete problem [12]: NOT ALL EQUAL 3SAT (NAE-3SAT) Instance: Set U of variables, collection C of clauses over U such that each clause has exactly three literals. Question: Is there a truth assignment for U such that in each clause at least one literal is set to true and at least one literal is set to false? In Section 2, we present the reduction from NAE-3SAT to STCG. In Section 3, we consider the complexity of the CBP-SW problem. While there are many connections between the classes of strongly chordal graphs and chordal bipartite graphs, there exist problems [4] that are NP-complete for one class, but solvable in polynomial time for the other. 2. Main theorem In this section we prove that STCG is NP-complete. Theorem 2.1. Problem STCG is NP-complete even when each color class has exactly two vertices. Proof of Theorem 2.1. As strongly chordal graphs can be recognized in polynomial time, it is easily seen that problem STCG is in NP. Given an instance I of NAE-3SAT, we construct in polynomial time a graph G I consisting of decision components and clause components. We can assume that no clause contains a variable and its negation. We note that the decision components and clause components that we create are identical to those used in [2], and we describe them next using the same terminology as in [2]. For each variable X and each clause i containing either X or X, the decision component shown in Fig. 1 is created. Vertex H is called the head, F is called the foot, S X is called a true shoulder, S X is called a false shoulder, K X i is called a true knee, and K i is called a false knee. X Corresponding to each variable X, graph G I has the two shoulders S X and S X, and for each occurrence of X or X in some clause, graph G I has a true knee and a false knee. Therefore, the vertices of G I are H, F, for each variable X shoulders S X, S X, and r pairs of knees K i 1 X, K i 1 X,..., K i r X, K i r X, corresponding to the r clauses C i 1,..., C ir in each of which X or X occurs. Vertices are now colored so that each color class contains exactly two vertices. Vertices H and F belong to the same color class, each pair S X, S X belongs to the same color class, and each pair K X i, K i belongs to X the same color class. Suppose X or X occurs in clause i. It is observed in [2] that there are exactly two ways to turn the corresponding decision component into a chordal graph that is properly colored: one is by adding the edges H K X i, K X i S X, and S X F (positive orientation), and the other is by adding the edges H K i X, K i X S X, and S X F (negative orientation). It is also pointed out in [2] that in a color respecting triangulation of G I, if a decision component corresponding to variable X has the positive (negative) orientation, then every decision component corresponding to variable X must have the positive (negative) orientation. Thus, when the orientation is positive, the variable will be set to true, and when the orientation is negative, the variable will be set to false. Let (X + Y + Z) be clause i. The corresponding clause component is created as shown in Fig. 1. Note that no new vertices are added. The knees that form the triangle are active, and the other knees are inactive. Thus, in a pair K i A,

60 C.M.H. de Figueiredo et al. / Theoretical Computer Science 381 (2007) 57 67 Fig. 2. In (a), we depict graph G I obtained from the instance (U = {X, Y, Z}, C = {(X + Y + Z), (X + Y + Z)}) of NAE-3SAT. Thin edges depict edges in Decision components. Thick edges depict edges in Clause components whose drawings are shown in (b) and (c) as they are formerly defined in Fig. 1. K i of corresponding knees, one is active while the other is inactive. Also, by the construction, every active knee sees A two vertices of the same color; for instance vertex K X is adjacent to vertices K Y and K Y. Note that the same graph G I is constructed in [2]. For a better understanding of the construction, in Fig. 2(a), we exhibit the graph G I obtained from the instance ( U = {X, Y, Z}, C = {(X + Y + Z), (X + Y + Z)} ) of NAE-3SAT. In Figs. 2(b) and (c), we show the clause components obtained from clauses (X + Y + Z) and (X + Y + Z). The following two lemmas will establish the correctness of the transformation. Note that both lemmas require tools additional to the ones used in [2]. The need for these additional tools is further discussed in the two remarks that follow the lemmas. Lemma 2.1. Suppose G I can be made strongly chordal without introducing edges between vertices of the same color. Then I has a satisfying truth assignment such that in each clause at least one literal is true and at least one literal is false. Proof of Lemma 2.1. Let G be the resulting strongly chordal graph. We create a truth assignment for I as follows: if the decision components corresponding to a variable W have the positive orientation, then W is set to true. Otherwise, W is set to false. For an arbitrary i, let (X + Y + Z) be clause i. It is shown in [2] that if G is chordal but clause i is not satisfied, then the subgraph of G induced by the set {H, F, S a, Ka i, K a i a {X, Y, Z}} of vertices is not chordal, a contradiction. Therefore, we can assume that the truth assignment satisfies I. Now suppose each of X, Y, and Z is set to true by the truth assignment. Let T be the subgraph of G induced by the set {H, F, S a, Ka i, K a i a {X, Y, Z}} of vertices. We will show that T can have at most one simple vertex, and hence cannot be strongly chordal (cf. Theorem 1.2), contradicting G s being strongly chordal. First, each of F, S X, S Y, S Z, K X i, K Y i, and K Z i sees two vertices of the same color in T, and hence cannot even be simplicial in T. Now, consider the subgraph L X induced in T by the set {K i X, K Z i, F, H, K i Z } of vertices. All the adjacencies of L X except the one between the pair K i X, K i Z are fully determined by the coloring, chordality, and the positive orientation of the decision components. If K i X saw K i Z in T, then K i X is adjacent in T to the vertices K Z i and K i of the same color, and hence cannot even be simplicial. On Z the other hand, if K i X missed K i Z in T, then K i X is not simple in L X, and hence in T also. Now, consider the subgraph L Y induced in T by the set {K i Y, K X i, F, H, K i X } of vertices, and apply the argument to the pair K i Y, K i to rule out X K i Y from being simple. Finally, consider the subgraph L Z induced in T by the set {K i Z, K Y i, F, H, K i } of vertices, Y and apply the argument to the pair K i Z, K i Y to rule out K i Z from being simple. Note that as L X does not involve the vertex K i Y, L Y does not involve the vertex K i X, and L Z does not involve the vertex K i ; the three arguments can be Y made independent of each other. Thus, only H can be simple in T, and therefore T is not strongly chordal, contradicting G s being strongly chordal.

C.M.H. de Figueiredo et al. / Theoretical Computer Science 381 (2007) 57 67 61 Fig. 3. Two types of clauses: (a) Component for Type-1 clause (X + Y + Z), and (b) Component Type-2 clause (A + B + C). Lemma 2.2. Suppose I has a satisfying truth assignment such that in each clause at least one literal is true and at least one literal is false. Then G I can be made strongly chordal without introducing edges between vertices of the same color. Proof of Lemma 2.2. Let f be a satisfying truth assignment for I such that in each clause at least one literal is true and at least one literal is false. First, we rename the literals appropriately so that for any variable X, X is set to true and X is set to false. Also, we classify the clauses of I into two types (see Fig. 3): a clause in which exactly one literal is true is of type-1 and a clause in which exactly two literals are true is of type-2. In [2], the following edges are added to G I to obtain a chordal and properly colored graph: to each decision component three edges of positive orientation; edges so that true shoulders form a clique; edges so that true knees form a clique; edges so that each true shoulder sees every knee. We also add the above sets of edges to G I. Moreover, we make a further addition of edges to obtain a strongly chordal and properly colored graph G. First, we do the following: add edges so that each true knee sees every shoulder. Let J refer to the set of knees. 1 Consider the following subsets of J; our intended simple elimination scheme for G will eliminate members of J 1 through J 5 before the other vertices: J 1 = {inactive false knees adjacent to an active false knee}. J 2 = {inactive false knees of type-2 clauses adjacent to an active true knee}. J 3 = {active false knees of type-1 clauses adjacent to an inactive false knee}. J 4 = {active false knees of type-1 clauses adjacent to an inactive true knee}. J 5 = {active false knees of type-2 clauses}. Finally, the following edges are added to complete the construction of the proposed strongly chordal and properly colored graph G. Note that each such added edge links a special true knee to a special false knee. Specifically, these edges are added to ensure that when a false knee w J i is considered for elimination, any true knee adjacent to w in G \ (J 1 J i 1 ) is a universal vertex in G \ (J 1 J i 1 ): each active true knee adjacent to an inactive false knee (in a type-2 clause) is made adjacent to every knee in J \ J 1 ; each active true knee of type-1 clause is made adjacent to every knee in J \ (J 1 J 2 ); each inactive true knee of type-1 clause adjacent to an active false knee is made adjacent to every knee in J \ (J 1 J 2 J 3 ); each active true knee of type-2 clause adjacent to an inactive true knee is made adjacent to every knee in J \ (J 1 J 2 J 3 J 4 ). We show in Fig. 4 the strongly chordal supergraph for graph G I (Fig. 2) obtained from the NAE-3SAT instance ( U = {X, Y, Z}, C = {(X + Y + Z), (X + Y + Z)} ), plus the satisfying truth assignment X = Y = Z = True. Note that the following properties hold in G: (α) For true shoulders S i and S j, N G [S i ] = N G [S j ]. 1 In Portuguese, joelho means knee.

62 C.M.H. de Figueiredo et al. / Theoretical Computer Science 381 (2007) 57 67 Fig. 4. Strongly chordal supergraph for graph G I (a) obtained from the instance (U = {X, Y, Z}, C = {(X + Y + Z), (X + Y + Z)}) of NAE-3SAT and the satisfying truth assignment X = Y = Z = True. In order to make the drawing clearer, we do not depict some of the edges: the clique among the true shoulders, the clique among the true knees, the complete bipartite graph between the true shoulders and the knees, and the complete bipartite graph between the true knees and the shoulders. We also depict the clause components in (b) and (c), and at each suitable vertex the classification, according to membership of a vertex to its corresponding set J r. (β) For a false knee K i X and a true shoulder S j, N G [K i X ] N G[F] N G [S j ]. (γ ) For a true shoulder S i and a true knee K j X, N G\J [S i ] N G\J [K j X ]. (δ) A true knee K X i is universal in G\J. Let O refer to the set of false shoulders. 2 Our proposed simple elimination scheme for G first eliminates the false knees in J 1, J 2, J 3, J 4, J 5, placing vertices of J r before vertices of J l whenever r < l. In particular, all false knees are eliminated before the other vertices. Vertices in O are eliminated next. Note that G \ (J 1 J 2 J 3 J 4 J 5 O) is a complete graph with just one missing edge, the edge H F, and it is clearly a strongly chordal graph. It remains to prove that J 1, J 2, J 3, J 4, J 5, O can be eliminated first and in that order. We use S to refer to the set of true shoulders. For subsets A and B of vertices in a graph, we use A B to denote the fact that every two vertices of A have the same closed neighborhood, every two vertices of B have the same closed neighborhood, and also that for u A and v B, N[u] N[v] holds. When w is a vertex, we use w A (A w) to mean {w} A (A {w}). Let ( X + Y + Z ) and ( A + B + C ) be, respectively, two clauses of types 1, and 2. Consider K i X J 1. Its neighbors in G are K i Z, members of S, and F. The neighbors are a clique, and also K i Z F S in G. Therefore, K i is simple X in G. Similarly, K j A J 1 is seen to be a simple vertex of G also. Next, we consider K j B J 2. The neighbors of K j B in G \ J 1 are K j A, F, all members of S, and possibly members of U, where U is a set of true knees belonging to components for clauses different from clause j to whom K j is adjacent. B Note that K j A, and every member of U are universal vertices in G \ J 1. Thus the neighborhood of K j B in G \ J 1 is a clique, and also F S K j A U in G \ J 1. Therefore, K j B is simple in G \ J 1. Next, we consider K i Z J 3. The neighbors of K i Z in G \ (J 1 J 2 ) are K X i, K i, F, all members of S, and possibly Y members of U, where U is a set of true knees belonging to components for clauses different from clause i, to whom K i Z is adjacent. Note that K X i and every member of U are universal vertices in G \ (J 1 J 2 ). Thus the neighborhood of K i Z in G \ (J 1 J 2 ) is a clique and also K i Y F S K X i U in G \ (J 1 J 2 ). Therefore, K i is simple in Z G \ (J 1 J 2 ). Next, we consider K i Y J 4. The neighbors of K i Y in G \ (J 1 J 2 J 3 ) are K Z i, K X i, F, all members of S, and possibly members of U, where U is a set of true knees belonging to components for clauses different from clause i to 2 In Portuguese, ombro means shoulder.

C.M.H. de Figueiredo et al. / Theoretical Computer Science 381 (2007) 57 67 63 whom K i Y is adjacent. Note that K i Z, K i X and every member of U are universal vertices in G \ (J 1 J 2 J 3 ). Thus, the neighborhood of K i Y in G \ (J 1 J 2 J 3 ) is a clique and also F S K i Z K i X U in G \ (J 1 J 2 J 3 ). Therefore, K i Y is simple in G \ (J 1 J 2 J 3 ). Next, we consider K j C J 5. The neighbors of K j C in G \ (J 1 J 2 J 3 J 4 ) are K j A, K j B, F, all members of S, and possibly members of U, where U is a set of true knees belonging to components for clauses different from clause j, to whom K j C is adjacent. Note that K j A, K j B and every member of U are universal vertices in G \ (J 1 J 2 J 3 J 4 ). Thus, the neighborhood of K j C in G \ (J 1 J 2 J 3 J 4 ) is a clique, and also F S K i A K B i U in G \ (J 1 J 2 J 3 J 4 ). Therefore, K j C is simple in G \ (J 1 J 2 J 3 J 4 ). Next, we consider a false shoulder S X O. Note that in G \ (J 1 J 2 J 3 J 4 J 5 ), every true knee is a universal vertex. The neighbors of S X are H and the true knees. It is clear that S X, as well as every other false shoulder, is simple in G \ (J 1 J 2 J 3 J 4 J 5 ), and thus they can all be eliminated. Finally, the remaining graph on the vertices H, F, the true shoulders, and the true knees is isomorphic to the graph obtained from a complete graph by deleting one edge. It is easily seen that H followed by any ordering of the other vertices will complete the required simple elimination scheme for G. The proof of Theorem 2.1 is now complete. The NP-completeness of STC-SW follows immediately from the NP-completeness of STCG. Corollary 2.1. Problem STC-SW is NP-complete. The following two remarks highlight the differences between the construction presented in [2] and the one in the present paper. Remark 1 (The Need of Using NAE-3SAT). The proof of Theorem 1.1 given in [2] involves a transformation from 3SAT to TCG. Recall that the decision and clause components used here, as well as the logic for the assignment of truth values, are the same as those used in [2]. However, if an instance I of 3SAT containing only the clause (X + Y + Z) and a satisfying truth assignment setting all the literals to true, then the proof of Lemma 2.1 demonstrates that the transformation in [2] can produce a graph that cannot be made strongly chordal. This remark highlights that although the present paper follows closely the strategy of [2], additional tools are needed in order to prove the NP-completeness of STCG. Remark 2 (The Need for the Different Completion). Suppose an instance I of 3SAT contained only the clause (X +Y + Z) and an NAE-satisfying truth assignment sets literal X to true, literal Y to false, and literal Z to false. Then, the completion of G I produced in [2] is a chordal graph that is not strongly chordal, as it contains a 3-sun induced by the set {F, S X, S Y, K X, K Y, H} of vertices. Therefore, the arguments employed in the proof of Theorem 1.1 given in [2] do not give a transformation from NAE-3SAT to STCG. Further, this partially justifies the edges that we add to G I, in the proof of Lemma 2.2, to ensure that a true knee is adjacent to every shoulder. 3. Some implications The sandwich problem for chordal bipartite graphs asks [15] Does T = (V, E 1, E 2 ) admit a sandwich graph that is chordal bipartite?. Let G 1 = (V, E 1 ) and G 2 = (V, E 2 ). If G 1 is not bipartite, then the answer is clearly no. Note that we do not assume that G 1 is connected. When G 1 is bipartite, let (X, Y ) be any bipartition of V with respect to G 1. Then, we claim that the answer to the original question is yes if and only if Q = (X, Y, E 1, F 2 ) admits a sandwich graph that is chordal bipartite where F 2 = {xy xy E 2, x X and y Y }. In order to verify this claim, let V 1,..., V k be the vertex-sets of connected components of G 1. Suppose Q admits a chordal bipartite sandwich graph B. Then, the disjoint union of the subgraphs induced by V 1,..., V k in B is a chordal bipartite sandwich for T. Conversely, suppose B is a chordal bipartite sandwich for T. For any given V i, let Z be an arbitrary part in the unique bipartition of G 1 [V i ]. It is clear that B does not use any edge connecting two vertices in Z (or else B will not be bipartite). Further, either Z X or Z Y. Therefore, any edge of B connecting two vertices of V i connects a vertex of X and a vertex of Y (B may have edges connecting a vertex of V i and a vertex of V j, i j; this is irrelevant to

64 C.M.H. de Figueiredo et al. / Theoretical Computer Science 381 (2007) 57 67 us). Then, the disjoint union of the subgraphs induced by V 1,..., V k in B is a chordal bipartite sandwich graph for Q. Thus, we can effectively define the sandwich problem for chordal bipartite graphs as follows: GRAPH SANDWICH PROBLEM FOR CHORDAL BIPARTITE GRAPHS (CBP-SW) Instance: Quadruple (X, Y, E 1, E 2 ) where (X, Y, E 1 ) and (X, Y, E 2 ) are bipartite graphs and E 1 E 2. Question: Is there a chordal bipartite graph (X, Y, E) such that E 1 E E 2? Next, we show that the sandwich problem for strongly chordal graphs is at least as hard as the sandwich problem for chordal bipartite graphs. We need the following known fact [4,7]: Proposition 3.1 ([7]). Given bipartite graph B = (X, Y, E), let G be the graph obtained from B by adding edges so that X induces a clique. Then, B is chordal bipartite if and only if G is strongly chordal. Proposition 3.2. CBP-SW STC-SW. Proof of Proposition 3.2. Given Q = (X, Y, E 1, E 2 ), construct T = ((X Y ), E 1 E, E 2 E ) where E = {xy x, y X}. Suppose G is a strongly chordal sandwich graph for T. Then, by Proposition 3.1, the bipartite graph obtained from G by turning X into an independent set is a chordal bipartite sandwich graph for Q. Similarly, if B is a chordal bipartite sandwich for Q, then, by Proposition 3.1, the graph obtained from B by turning X into a clique is a strongly chordal sandwich for T. Given matrices M 1, M 2 with the same dimensions, by M 1 M 2 we mean whenever M 1 [i, j] 0, M 2 [i, j] = M 1 [i, j]. In a matrix sandwich problem, given matrices M 1, M 2 such that M 1 M 2 and property Π, we are to determine whether there exists a sandwich matrix M with property Π such that M 1 M M 2. The computational complexity of several such sandwich problems was studied in [14]. In a 0/1 matrix M, Γ is the 2 2 submatrix induced by rows i and j with i < j and columns k and l with k < l such that M[i, k] = M[i, l] = M[ j, k] = 1 and M[ j, l] = 0. Matrix M is Γ -free if there is no Γ in M. We consider the following matrix sandwich problem, which turns out to be equivalent to the sandwich problem for chordal bipartite graphs. Γ -FREE MATRIX SANDWICH PROBLEM (GAMMA-FREE-MAT-SW) Instance: (M 1, M 2 ) where M 1 and M 2 are 0/1 matrices with the same dimension such that M 1 M 2. Question: Is there a matrix M such that M 1 M M 2, and rows and columns of M can be permuted to be Γ -free? Note that we use GAMMA-FREE-MAT-SW to refer to the problem name, and Γ -free to refer to the matrix property. We need a few definitions and facts first. The bipartite adjacency matrix M of a bipartite graph B = (X, Y, E) has rows corresponding to members of X, columns corresponding to members of Y, with M[x, y] = 1 if and only if xy E. Proposition 3.3 ([1,18,21]). A bipartite graph B = (X, Y, E) is chordal bipartite if and only if the rows and columns of its bipartite adjacency matrix can be permuted to be Γ -free. Proposition 3.4. Problems CBP-SW and GAMMA-FREE-MAT-SW are polynomially equivalent. Proof of Proposition 3.4. Given (X, Y, E 1, E 2 ), let B i = (X, Y, E i ), i = 1, 2, be bipartite graphs. Construct (M 1, M 2 ) where M i is the bipartite adjacency matrix for B i, i = 1, 2. Then, it follows from Proposition 3.3, that (X, Y, E 1, E 2 ) admits a sandwich graph that is chordal bipartite if and only if (M 1, M 2 ) admits a sandwich matrix M such that rows and columns of M can be permuted to be Γ -free. Conversely, given (M 1, M 2 ) such that M 1 M 2, let B i = (X, Y, E i ) be bipartite graphs such that M i is the bipartite adjacency matrix of B i, i = 1, 2. Now, construct (X, Y, E 1, E 2 ). Again, it is seen via Proposition 3.3 that (M 1, M 2 ) admits a sandwich matrix M such that the rows and columns of M can be permuted to be Γ -free if and only if (X, Y, E 1, E 2 ) admits a sandwich graph that is chordal bipartite. Along these lines, we note that a matrix sandwich problem on 0/1 matrices can essentially be thought of as a sandwich problem for bipartite graphs. For instance, the result in [16] that given 0/1 matrices M 1, M 2 such that M 1 M 2, it is NP-complete to determine whether there exists M such that M 1 M M 2 and also columns of M

C.M.H. de Figueiredo et al. / Theoretical Computer Science 381 (2007) 57 67 65 can be permuted so that the ones in each row are consecutive can also be interpreted as given (X, Y, E 1, E 2 ), it is NP-complete to decide whether there exists a convex bipartite graph (X, Y, E) such that E 1 E E 2 ; bipartite graph (X, Y, E) is convex [4] if members of Y can be ordered so that for any x X, the neighbors of x occur consecutively in the ordering. We note that every convex bipartite graph is chordal bipartite. In contrast to Proposition 3.4, next we show that the symmetric version of the problem GAMMA-FREE-MAT- SW is NP-complete. We need some definitions and facts first. A matrix M is symmetric if its rows and columns are indexed by the same set S such that M(s, t) = M(t, s), for all s, t S. A symmetric ordering of such an M is an ordering of S. The neighborhood matrix of graph G is obtained from its adjacency matrix by making every entry on the main diagonal a one. A 0/1 matrix M is in doubly lexical order if rows and columns, when considered as vectors, are in non-decreasing order. Note that the rightmost column and the lowermost row correspond to the most significant positions of the vectors. Proposition 3.5 ([1,18,21]). A 0/1 matrix M admits a Γ -free ordering if and only if a doubly lexical ordering of M is Γ -free. Proposition 3.6 ([21]). The neighborhood matrix of a graph admits a symmetric, doubly lexical ordering. It is known [9,21] that strongly chordal graphs are precisely those whose neighborhood matrices admit a Γ -free ordering. Thus, the next fact follows from Propositions 3.5 and 3.6. Proposition 3.7 ([9,21]). The neighborhood matrix of graph G admits a symmetric Γ -free ordering if and only if G is strongly chordal. SYMMETRIC Γ -FREE MATRIX SANDWICH PROBLEM (SYM-GAMMA-FREE-MAT-SW) Instance: (M 1, M 2 ) where M 1 and M 2 are symmetric 0/1 matrices with the same dimension such that M 1 M 2. Question: Is there a symmetric matrix M such that M 1 M M 2 and the rows and columns of M can be permuted to be Γ -free? Proposition 3.8. SYM-GAMMA-FREE-MAT-SW is NP-complete. Proof of Proposition 3.8. We transform STC-SW into SYM-GAMMA-FREE-MAT-SW. Given (V, E 1, E 2 ), let G 1 = (V, E 1 ) and G 2 = (V, E 2 ). Construct (M 1, M 2 ), where M i is the neighborhood matrix of G i, i = 1, 2. Suppose G is a strongly chordal sandwich graph for (V, E 1, E 2 ), and let M be the neighborhood matrix of G. It is clear that M is a symmetric sandwich matrix for (M 1, M 2 ). Further, it follows from Proposition 3.5 to 3.7 that the rows and columns of M can be permuted to be Γ -free. Conversely, let M be a symmetric sandwich matrix for (M 1, M 2 ) such that the rows and columns of M can be permuted to be Γ -free. Let G be the graph whose neighborhood matrix is M. It is clear that G is a sandwich graph for (V, E 1, E 2 ). By Propositions 3.5 and 3.6, M admits a doubly lexical ordering that is symmetric as well as Γ -free. It then follows from Proposition 3.7 that G is strongly chordal. Let PORD-SW be the problem of deciding whether (V, E 1, E 2 ) admits a sandwich graph that is perfectly orderable. As the recognition problem for perfectly orderable graphs is NP-complete [22], it follows that PORD- SW is also NP-complete. Next, we observe that CBP-SW is equivalent to a restriction of the problem PORD-SW. We need the following result due to Chvátal: Proposition 3.9 ([6]). Let B be a bipartite graph. B is perfectly orderable if and only if B is chordal bipartite. TWO REQUIRED CLIQUES COVERABLE PERFECTLY ORDERABLE SANDWICH (2RCC-PORD-SW) Instance: Triple (V, E 1, E 2 ) such that (V, E 1 ) is coverable by two cliques. Question: Is there a perfectly orderable graph G = (V, E) such that E 1 E E 2? Proposition 3.10. Problems CBP-SW and 2RCC-PORD-SW are polynomially equivalent. Proof of Proposition 3.10. For notational convenience, we use (X, Y, E 1, E 3 ) to refer to an instance of CBP-SW and (V, E 1, E 3 ) to refer to an instance of 2RCC-PORD-SW, where E 1 is the set of forced edges and E 3 is the set of forbidden edges in the sandwich graph. Given Q = (X, Y, E 1, E 3 ), construct T = ((X Y ), F 1 = E 3, F 3 = E 1 ).

66 C.M.H. de Figueiredo et al. / Theoretical Computer Science 381 (2007) 57 67 Fig. 5. Can we reduce from STC-SW to CBP-SW? In other words, the edges that are forced in Q are forbidden in T, and the edges that are forbidden in Q are forced in T. It is clear that G 1 = (X Y, F 1 ) can be covered by two cliques. It can then be verified via Proposition 3.9 that if B is a chordal bipartite sandwich graph for Q, then B is a perfectly orderable sandwich graph for T. Also, if G is a perfectly orderable sandwich graph for T, then G is a chordal bipartite sandwich graph for Q. Conversely, suppose we are given T = (V, E 1, E 3 ) such that G 1 = (V = X Y, E 1 ) is coverable by the disjoint cliques X and Y. Construct Q = (X, Y, E 3, E 1 ). It is again easy to verify, via Proposition 3.9, that if B is a chordal bipartite sandwich graph for Q, then B is a perfectly orderable sandwich graph for T. Similarly, if G is a perfectly orderable sandwich graph for T, then G will be a chordal bipartite sandwich graph for Q. A graph G is weakly chordal if neither G nor its complement contains an induced cycle on at least 5 vertices. It is easily seen that a graph is chordal bipartite if and only if it is weakly chordal and also bipartite. As the class of weakly chordal graphs is well studied [17] there is some motivation to study the corresponding sandwich problem WC-SW: the problem of deciding whether (V, E 1, E 2 ) admits a sandwich graph that is weakly chordal. It is then seen from the definition of the problem CBP-SW that the problem WC-SW is at least as hard as the problem CBP-SW. It is well known that the recognition problems for the classes of strongly chordal graphs and chordal bipartite graphs are polynomially equivalent [3]. Proposition 3.1 proves that the recognition problem for the class of strongly chordal graphs is at least as hard as the recognition problem for the class of chordal bipartite graphs. Given a graph G = (V, E), we define a bipartite graph B(G) = (X, Y, F) where X = {x w w V }, Y = {y w w V }, and F = {[x u, y v ] u = v or uv E}. The required converse [3,4,13] is: Proposition 3.11 ([3]). A graph G is strongly chordal if and only if B(G) is chordal bipartite. Proposition 3.11 naturally suggests a reduction from STC-SW to CBP-SW. Given an instance (V, E 1, E 2 ) for STC-SW, construct an instance (X, Y, F 1, F 2 ) for CBP-SW, where X = {x w w V }, Y = {y w w V }, F 1 = {x w y w w V } {x s y t, x t y s st E 1 }, F 2 \ F 1 = {x s y t, x t y s st E 2 \ E 1 }. For the purposes of illustration, consider the instance (V, E 1, E 2 ) for STC-SW with V = {v 1, v 2, v 3, v 4 }, E 1 = {v 1 v 3, v 2 v 4 }, E 2 \ E 1 = {v 1 v 2, v 2 v 3, v 3 v 4, v 1 v 4 } (see Fig. 5(a)). The derived instance is (X, Y, F 1, F 2 ) for CBP-SW has X = {x 1, x 2, x 3, x 4 }, Y = {y 1, y 2, y 3, y 4 }, F 1 = {x i y i, 1 1 4} {x 1 y 3, x 3 y 1, x 2 y 4, x 4 y 2 }, F 2 \F 1 = {x 1 y 2, x 2 y 1, x 2 y 3, x 3 y 2, x 3 y 4, x 4 y 3, x 1 y 4, x 4 y 1 } (see Fig. 5(b)). By Proposition 3.11, every feasible solution G = (V, E) that is strongly chordal, corresponds to a feasible solution H = (X, Y, F) that is chordal bipartite, where an optional edge uv of G maps to the two optional edges x u y v, x v y u of H. However, the converse is not clear. Consider the feasible solution H = (X, Y, F), where F = F 1 {x 1 y 2, x 3 y 2, x 4 y 3 } (see Fig. 5(c) and (d)). H is chordal bipartite and, as the edges x 2 y 1, x 2 y 3, x 3 y 4 do not belong to H, it is not clear how to obtain a corresponding strongly chordal feasible solution G using Proposition 3.11. Since this paper was submitted, the sandwich problem for chordal bipartite graphs has also been shown to be NP-complete [24]. Acknowledgements We are grateful to the referees for their careful reading and many suggestions, which helped to improve the paper. R. Sritharan thanks UFRJ, Rio de Janeiro for the hospitality extended during his sabbatical semester. References [1] R.P. Anstee, M. Farber, Characterizations of totally balanced matrices, J. Algorithms 5 (1984) 215 230.

C.M.H. de Figueiredo et al. / Theoretical Computer Science 381 (2007) 57 67 67 [2] H.L. Bodlaender, M.R. Fellows, T.J. Warnow, Two strikes against perfect phylogeny, in: W. Kuich (Ed.), Proc. 19th ICALP, in: Lecture Notes in Comput. Sci., vol. 623, Springer, Berlin, 1992, pp. 273 283. [3] A. Brandstädt, Classes of bipartite graphs related to chordal graphs, Discrete Appl. Math. 32 (1991) 51 60. [4] A. Brandstädt, V.B. Le, J.P. Spinrad, Graph Classes: A Survey, in: SIAM Monogr. Discrete Math. Appl., 1999. [5] M. Cerioli, H. Everett, C.M.H. de Figueiredo, S. Klein, The homogeneous set sandwich problem, Inform. Process. Lett. 67 (1998) 31 35. [6] V. Chvátal, Which claw-free graphs are perfectly orderable? Discrete Appl. Math. 44 (1993) 39 63. [7] E. Dahlhaus, Chordale graphen im besonderen hinblick auf parallele algorithmen, Habilitation Thesis, Universität Bonn, 1991. [8] S. Dantas, L. Faria, C.M.H. Figueiredo, On decision and optimization (k, l)-graph sandwich problems, Discrete Appl. Math. 143 (2004) 155 165. [9] M. Farber, Characterizations of strongly chordal graphs, Discrete Math. 43 (1983) 173 189. [10] C.M.H. de Figueiredo, S. Klein, K. Vusković, The graph sandwich problem for 1-join composition is NP-complete, Discrete Appl. Math. 121 (2002) 73 82. [11] C.M.H. de Figueiredo, R.B. Teixeira, The sandwich problem for cutsets, Electron. Notes Discrete Math. 18 (2004) 219 225. [12] M.R. Garey, D.S. Johnson, L. Stockmeyer, Some simplified NP-complete graph problems, Theoret. Comput. Sci. 1 (1976) 237 267. [13] M.C. Golumbic, Algorithmic Graph Theory and Perfect Graphs, Academic Press, 1980. [14] M.C. Golumbic, Matrix sandwich problems, Linear Algebra Appl. 277 (1998) 239 251. [15] M.C. Golumbic, H. Kaplan, R. Shamir, Graph sandwich problems, J. Algorithms 19 (1995) 449 473. [16] M.C. Golumbic, A. Wassermann, Complexity and algorithms for graph and hypergraph sandwich problems, Graphs Combin. 14 (1998) 223 239. [17] R. Hayward, Weakly chordal graphs, J. Combin. Theory Ser. B 39 (1985) 200 209. [18] A.J. Hoffman, A.W.J. Kolen, M. Sakarovitch, Totally balanced and greedy matrices, SIAM J. Algebr. Discrete Methods 6 (1985) 721 730. [19] H. Kaplan, R. Shamir, Bounded degree interval sandwich problems, Algorithmica 24 (1999) 96 104. [20] H. Kaplan, R. Shamir, Pathwidth, bandwidth, and completion problems to proper interval graphs with small cliques, SIAM J. Comput. 25 (1996) 540 561. [21] A. Lubiw, Doubly lexical ordering of matrices, SIAM J. Comput. 16 (1987) 854 879. [22] M. Middendorf, F. Pfeiffer, On the complexity of recognizing perfectly orderable graphs, Discrete Math. 80 (1990) 327 333. [23] D.J. Rose, R.E. Tarjan, G.S. Lueker, Algorithmic aspects of vertex elimination on graph, SIAM J. Comput. 5 (1976) 266 283. [24] R. Sritharan, Chordal bipartite completion of colored graphs, Discrete Math. (submitted for publication). [25] R.E. Tarjan, M. Yannakakis, Simple linear-time algorithms to test chordality of graphs, test acyclicity of hypergraphs, and selectively reduce acyclic hypergraphs, SIAM J. Comput. 13 (1984) 566 579.