Parameterized Complexity of Globally Minimal Defensive Alliances
Abstract
A defensive alliance in an undirected graph is a non-empty set of vertices satisfying the condition that every vertex has at least as many neighbours (including itself) in as it has in . We consider the notion of global minimality in this paper. We are interested in globally minimal defensive alliance of maximum size. This problem is known to be NP-hard but its parameterized complexity remains open until now. We enhance our understanding of the problem from the viewpoint of parameterized complexity by showing that the Globally Minimal Defensive Alliance problem is W[1]-hard when parameterized by the treewidth of the graph. We also present a polynomial time algorithm when the input graph happens to be a tree.
keywords:
FPT , treewidth , W[1]-hard1 Introduction
During the last 20 years, the Defensive Alliance problem has been studied extensively. A defensive alliance in an undirected graph is a non-empty set of vertices with the property that each vertex has at least as many neighbours in the alliance (including itself) as outside the alliance. In 2000, Kristiansen, Hedetniemi, and Hedetniemi [kris] introduced defensive, offensive, and powerful alliances, and further studied by Shafique [HassanShafique2004PartitioningAG] and other authors [BAZGAN2019111, BLIEM2018334, small, Cami2006OnTC, Enciso2009AlliancesIG, Fernau, FERNAU2009177, ICDCIT2021, Lindsay, ROD, SIGARRETA20091687, SIGARRETA20061345, SIGA]. In this paper, we will focus on defensive alliances. A defensive alliance is strong if each vertex of the alliance has at least as many neighbours in the alliance (not counting itself) as outside the alliance. The theory of alliances in graphs have been studied intensively [Cami2006OnTC, 10.5614/ejgta.2014.2.1.7, frick] both from a combinatorial and from a computational perspective. As mentioned in [BAZGAN2019111], the focus has been mostly on finding small alliances, although studying large alliances do not only make a lot of sense from the original motivation of these notions, but was actually also delineated in the very first papers on alliances [kris].
Note that a defensive alliance is not a hereditary property, that is, a subset of defensive alliance is not necessarily a defensive alliance. Shafique [HassanShafique2004PartitioningAG] called an alliance a locally minimal alliance if the set obtained by removing any vertex of the alliance is not an alliance. Bazgan et al. [BAZGAN2019111] considered another notion of alliance that they called a globally minimal alliance which has the property that no proper subset is an alliance. In this paper we are interested in globally minimal alliances of maximum size. Clearly, the motivation is that big communities where every member still matters somehow are of more interest than really small communities. Also, there is a general mathematical interest in such type of problems, see [Manlove1998MinimaximalAM].
2 Basic Notations
Throughout this article, denotes a finite, simple and undirected graph of order . For a non-empty subset and a vertex , let , , and denote its open neighborhood, closed neighborhood, and degree respectively in . The complement of the vertex set in is denoted by .
Definition 1.
A non-empty set is a defensive alliance in if for each , , or equivalently, .
A vertex is said to be protected if . A non-empty set is a defensive alliance if every vertex in is protected.
Definition 2.
A vertex is said to be marginally protected if it becomes unprotected when any of its neighbour in is moved from to . A vertex is said to be strongly protected if it remains protected when any of its neighbours is moved from to .
Definition 3.
An alliance is called a locally minimal alliance if for any , is not an alliance.
Definition 4.
A defensive alliance is globally minimal defensive alliance or shorter minimal defensive alliance if no proper subset is an alliance.
In literature, a defensive alliance is called global defensive alliance if is a dominating set. It is to be noted that globally minimal defensive alliance is different from global defensive alliance.
Observation 1.
Let be a globally minimal defensive alliance of size at least two in graph . Then can never contain a vertex of degree one.
This can be proved by contradiction. Suppose contains a vertex of degree one.
Note that is a proper subset of and it is a defensive alliance, a contradiction to the fact that
is a globally minimal defensive alliance.
A defensive alliance is connected if the subgraph induced by
is connected.
Notice that any globally minimal defensive alliance is also connected.
In this paper, we consider Globally Minimal Defensive Alliance
problem under structural parameters. We define the problem as follows:
Globally Minimal Defensive Alliance
Input: An undirected graph and an integer .
Question: Is there a globally minimal defensive alliance such that
?
We now review the concept of a tree decomposition, introduced by Robertson and Seymour in [Neil]. Treewidth is a measure of how “tree-like” the graph is.
Definition 5.
[Downey] A tree decomposition of a graph is a tree together with a collection of subsets (called bags) of labeled by the vertices of such that and (1) and (2) below hold:
-
1.
For every edge , there is some such that .
-
2.
(Interpolation Property) If is a vertex on the unique path in from to , then .
Definition 6.
[Downey] The width of a tree decomposition is the maximum value of taken over all the vertices of the tree of the decomposition. The treewidth of a graph is the minimum width among all possible tree decomposition of .
For the standard concepts in parameterized complexity, see the recent textbook by Cygan et al. [marekcygan]. In this paper we prove that the Globally Minimal Defensive Alliance problem is polynomial time solvable on trees and it is W[1]-hard when parameterized by the treewidth of the graph.
Known Results: The decision version for several types of alliances have been shown to be NP-complete. For an integer , a nonempty set is a defensive -alliance if for each , . A set is a defensive alliance if it is a defensive -alliance. A defensive -alliance is global if is a dominating set. The defensive -alliance problem is NP-complete for any [SIGARRETA20091687]. The defensive alliance problem is NP-complete even when restricted to split, chordal and bipartite graph [Lindsay]. For an integer , a nonempty set is an offensive -alliance if for each , . An offensive 1-alliance is called an offensive alliance. An offensive -alliance is global if is a dominating set. Fernau et al. showed that the offensive -alliance and global offensive -alliance problems are NP-complete for any fixed [FERNAU2009177]. They also proved that for , -offensive alliance is NP-hard, even when restricted to -regular planar graphs. There are polynomial time algorithms for finding minimum alliances in trees [CHANG2012479, Lindsay]. Bliem and Woltran [BLIEM2018334] proved that deciding if a graph contains a defensive alliance of size at most is W[1]-hard when parameterized by treewidth of the input graph. Bazgan et al. [BAZGAN2019111] proved that deciding if a graph contains a globally minimal strong defensive alliance of size at least is NP-complete, even for cubic graphs. Moreover, deciding if a graph contains a globally minimal defensive alliance of size at least is NP-complete, even for graphs of degree 3 or 4 [BAZGAN2019111].
3 FPT algorithm parameterized by neighbourhood diversity
In this section, we present an FPT algorithm for Globally Minimal Defensive Alliance problem parameterized by neighbourhood diversity. We say two vertices and have the same type if and only if . The relation of having the same type is an equivalence relation. The idea of neighbourhood diversity is based on this type structure.
Definition 7.
[Lampis] The neighbourhood diversity of a graph , denoted by , is the least integer for which we can partition the set of vertices into classes, such that all vertices in each class have the same type.
If neighbourhood diversity of a graph is bounded by an integer , then there exists a partition of into type classes. It is known that such a minimum partition can be found in linear time using fast modular decomposition algorithms [Tedder]. Notice that each type class could either be a clique or an independent set by definition. For algorithmic purpose it is often useful to consider a type graph of graph , where each vertex of is a type class in , and two vertices and are adjacent iff there is complete bipartite clique between these type classes in . It is not difficult to see that there will be either a complete bipartite clique or no edges between any two type classes. The key property of graphs of bounded neighbourhood diversity is that their type graphs have bounded size. In this section, we prove the following theorem:
Theorem 1.
The Globally Minimal Defensive Alliance problem is fixed-parameter tractable when parameterized by the neighbourhood diversity.
Let be a connected graph such that . Let be the partition
of into sets of type classes. We assume since otherwise the problem
becomes trivial. Let where is a globally minimal defensive alliance.
We define , and
. We next guess if belongs to , , or .
There are at most possibilities as each has three options: either in
, , or . We reduce the problem of finding a globally minimal defensive alliance
to an integer linear programming optimization with variables.
Since integer linear programming is fixed parameter tractable when parameterized by
the number of variables [lenstra], we conclude that our problem is FPT when parameterized by
the neighbourhood diversity .
ILP formulation: Our goal here is to find a largest globally
minimal defensive alliance of , with when ,
when , and when
where are given.
For each , we associate a variable that indicates
. As the vertices in have the same neighbourhood,
the variables determine
uniquely, up to isomorphism. The objective here is to
maximize under the conditions given below.
Let be a subset of consisting of all type classes which are cliques; and
.
We consider two cases:
Case 1: Suppose where . Then the degree of in , that is,
(1) |
Thus, including itself, has defenders in . Note that if , then only vertices of are in and the the remaining vertices of are outside . The number of neighbours of outside , that is,
(2) |
Therefore, a vertex from an independent type class
is protected if and only if
.
Case 2: Suppose where . The number of neighbours of in , that is,
(3) |
This is to ensure that when is picked in the solution it contributes to the value and hence it itself cannot be accounted as its own neighbour. The number of neighbours of outside , that is,
(4) |
Thus a vertex from clique type class is protected if and only if
, that is,
.
Let be the vector corresponds to the set . We want to make sure that the vector or the set forms a defensive alliance, but no proper subset of forms defensive alliance. We now characterize all proper subsets of in terms of -length vectors. We define a new variable as follows: for all . Let be the set of all length vectors where the th entry be either , or . Note that each vector in represents a proper subset of unless the th entry is for all . The number of vectors in is . We define another set as follows: let be the set of all length vectors where the th entry is either , or ; note that is possible only if , that is, . Clearly, and has at most vectors.
Lemma 2.
Let be the vector that represent . If no vector in forms a defensive alliance then no vector in forms a defensive alliance.
Proof.
Assume, for the sake of contradiction, that the vector forms a defensive
alliance. Without loss of generality, let , then we obtain the vector
from by replacing by
for all .
As , we know does not form a defensive alliance.
This means, there is a vertex which is not protected in
(assume that the th entry of
is non-zero). We observe that the number of neighbours of
in , is less than or equal to the number
of neighbours in . In other words, is not protected
in either, a contradiction to that assumption that forms a defensive
alliance. This proves the lemma.
In order to ensure that is a globally minimal defensive alliance, we check forms a defensive alliance but none of the vectors in forms a defensive alliance. Let be the vectors in . We make guesses in two phases. In the first phase, we guess if belongs to or . There are at most possibilities as each has three options: either or . In the second phase, we guess if an unprotected vertex of belongs to type class either or . We define
There are at most possibilities as each has at most options: . If is an independent type class, then it contains an unprotected vertex if,
If is a clique type class, then it contains an unprotected vertex if,
We now formulate ILP formulation of globally minimal defensive alliance problem, for
given and . There are at most ILPs:
Solving the ILP:
Lenstra [lenstra] showed that the feasibility version of -ILP is FPT with
running time doubly exponential in , where is the number of variables.
Later, Kannan [kannan] proved an algorithm for -ILP running in time .
In our algorithm, we need the optimization version of -ILP rather than
the feasibility version. We state the minimization version of -ILP
as presented by Fellows et. al. [fellows].
-Variable Integer Linear Programming Optimization (-Opt-ILP): Let matrices , and be given. We want to find a vector that minimizes the objective function and satisfies the inequalities, that is, . The number of variables is the parameter. Then they showed the following:
Lemma 3.
[fellows] -Opt-ILP can be solved using arithmetic operations and space polynomial in . Here is the number of bits in the input, is the maximum absolute value any variable can take, and is an upper bound on the absolute value of the minimum taken by the objective function.
In the formulation for Globally Minimal Defensive Alliance problem, we have at most variables. The value of objective function is bounded by and the value of any variable in the integer linear programming is also bounded by . The constraints can be represented using bits. Lemma 3 implies that we can solve the problem with one guess in FPT time. There are at most guesses, and the ILP formula for each guess can be solved in FPT time. Thus Theorem 1 holds.
4 W[1]-hardnes parameterized by treewidth
Theorem 4.
The Globally Minimal Defensive Alliance problem is W[1]-hard when parameterized by the treewidth, pathwidth, treedepth and feedback vertex set of the graph.
Proof.
The approach for using Multi-Colored Clique in reductions is described in [?], and has been proven to be very useful in
showing hardness results in the parameterized complexity setting. Before giving details of our construction, we will need to
introduce some new terminology. We use G to denote a graph colored with colors given in an instance of Multi-Colored
Clique, and to denote the graph in the reduced instance of Globally minimal defensive alliance. For a color , we let denote the
subset of vertices in colored with color and for a pair of distinct colors , we let denote the subset of
edges in with endpoints colored and . In general, we use and for denoting arbitrary vertices in , and to denote
an arbitrary vertex in .
We construct using two types of gadgets. Our goal is to guarantee that any globally minimal defensive alliance in with a specific size encodes a multi-colored clique in . These gadgets are the selection and validation gadgets. The selection gadgets encode the selection of vertices and edges that together encode a vertex and edge set of some multi-colored clique in . The selection gadgets also ensure that in fact distinct vertices are chosen from distinct color classes, and that distinct edges are chosen from distinct edge color classes. The validation gadgets validate the selection done in the selection gadgets in the sense that they make sure that the edges chosen are in fact incident to the selected vertices. In the following we sketch the construction of these gadgets:
Selection: For each color-class , and each pair of distinct colors , we construct a -selection gadget and
a -selection gadget which respectively encode the selection of a vertex colored and an edge colored in .
The -selection gadget consists of a vertex for every vertex , and likewise, the -selection gadget consists
of a vertex for every edge . There are no edges between the vertices of the selection gadgets, that is, the union of all vertices in these gadgets is an independent set in .
Validation: We assign to every vertex in two unique identification numbers, and , with and . For every pair of distinct colors , we construct validation gadgets between the -selection gadget and the - and -selection gadget. Let and be any pair of distinct colors. We describe the validation gadget between the - and -selection gadgets. It consists of two vertices , the validation-pair of this gadget. The first vertex of this pair is connected to each vertex , by parallel edges, and to each edge-selection vertex and , by parallel edges. The other vertex is connected to each , by parallel edges, and to each and , by parallel edges. We next subdivide the edges between the selection and validation gadgets to obtain a simple graph, where all new vertices introduced by the subdivision are referred to as the connection vertices. The connection vertices adjacent to and are denoted by and similarly the connection vertices adjacent to and are denoted by .
We next add two one degree vertices adjacent to all connection vertices. For every vertex in -selection gadget and in -selection gadget, we add equal number of one degree vertices adjacent to and as much as the degree of and until this point in construction respectively. Next, we add the following gadget corresponding to every vertex in validation pair gadget for all distinct colors and . Let us assume that the degree of vertex until this point in construction is . First, we add a set of vertices adjacent to and to a new vertex . We make the vertex adjacent to a set of one degree vertices. We also make every vertex in adjacent to two one degree vertices. Next, we introduce two vertices and . Next add an edge between and . Again, we add a new set of vertices adjacent to and . Similar to before, We make every vertex in adjacent to two one degree vertices. We also make the vertex and adjacent to a set and of and one degree vertices respectively. Finally, for the vertex , we add a set of many one degree vertices adjacent to . We define . This completes the construction of graph . We set . We observe that removing the vertices
of from graph , we are left with trees of height at most . Now, we will prove that both instances are equivalent. Let us assume that there exists a multi-colored clique of size . We claim that the following set
is a globally minimal defensive alliance of size at exactly . We observe that . To prove that is a globally minimal defensive alliance, we will prove that is a connected defensive alliance such that every vertex is marginally protected. It is easy to see every vertex in the set is marginally protected as it has all the connection vertices adjacent to it inside the solution and equal number of one degree neighbours outside the solution. It is also easy to see that all the vertices in the set
are marginally protected as they have two neighbours inside the solution and two neighbours outside the solution. Similarly, we observe that all the vertices in the set
are also marginally protected. Lastly, we prove that the vertices in the set are marginally protected. Let us take any vertex for some fixed and . We denote degree of inside the -selection gadget, -selection gadget and -selection gadget together by . Without loss of generality, we assume that the neighbours and of are inside the solution where and . It implies that the vertices in the set and are inside the solution. Therefore, has total connection vertices neighbours inside the solution as . Since and , we have and , therefore the vertex is marginally protected. It is easy to observe that is connected. This shows that is a globally minimal defensive alliance.
In the reverse direction, we assume that there exists a globally minimal defensive alliance of size at least . First, We observe that no vertex of degree 1 can be part of globally minimal defensive alliance of size greater than or equal to two as the vertex itself forms defensive alliance. Next, we will prove that
If or then we cannot add any vertex from the set inside the solution. If we cannot add the set then . This is true because every globally minimal defensive alliance is always connected and if we add any vertex from inside the solution then which is a contradiction. Next, we observe that protection of require at least one vertex from the set inside the solution. As every vertex in has two one degree neighbours, it implies that the protection of that vertex requires inside the solution. Now, the protection of forces the full set inside the solution as the one degree neighbours are always outside . Similarly, we observe that and will be inside the solution. Symmetrically, we argue for color as well. This proves that
Observe that the above set has size exactly equal to . We need to add at least vertices from selection gadgets. Next, we observe that must be marginally protected inside the solution as otherwise will form defensive alliance. This is equivalent to say that the protection of requires exactly neighbours from connection vertices inside the solution corresponding to the set -selection gadget and -selection gadget. Now, we will prove that every vertex or edge selection gadget contributes at most one vertex inside the solution. Let us assume that there exists a vertex or edge selection gadget which contributes at least two vertices inside the solution. Without loss of generality, if and are inside the solution where . It implies that the protection of and requires and inside the solution. Note that will get more than connection vertex neighbours inside the solution as . This is a contradiction as is not marginally protected inside . We can argue similarly for edge selection gadget and other color classes as well. Since the contribution from selection gadgets is at least , it implies that each selection gadget contributes exactly one vertex inside the solution. Next, we will show that if -selection gadget contributes and -selection gadget contributes then -selection gadget must contributes . For the sake of contradiction assume that -selection gadget contributes such that . In this case, we get
We observe that . We see that one of the vertex from the set is not protected because when either high+low or low(u)+high. This is a contradiction. It implies that we get a multicolored clique in .
Theorem 5.
The Exact Globally Minimal Defensive Alliance problem is W[1]-hard when parameterized by the treewidth, pathwidth, treedepth and feedback vertex set of the graph.
5 No polynomial kernel parameterized by vertex cover
Theorem 6.
No polynomial kernel parameterized by vertex cover number of input graph.
To prove Theorem LABEL:ppt, we give a polynomial parameter transformation from the well-known Red Blue Dominating Set problem (RBDS) to Globally Minimal Defensive Alliance problem parameterized by vertex cover number. Recall that in RBDS we are given a bipartite graph and an integer , and we are asked whether there exists a vertex set of size at most such that every vertex in has at least one neighbour in . We also refer to the vertices of as terminals and to the vertices of as sources or nonterminals. The following theorem is known:
Theorem 7.
[fomin_lokshtanov_saurabh_zehavi_2019] RBDS parameterized by does not admit a polynomial compression unless coNP NP/poly.
5.1 Proof of Theorem LABEL:ppt
By Theorem 7, RBDS parameterized by does not admit a polynomial compression unless coNP NP/poly. To prove Theorem LABEL:ppt, we give a PPT from RBDS parameterized by to Globally Minimal Defensive Alliance parameterized by the vertex cover number. Given an instance of RBDS, we construct an instance of Globally Minimal Defensive Alliance as follows. First, we take the graph . We add two vertices and such that is adjacent to all the vertices in . We also add a set of vertices adjacent to both and . We add two more sets and of and vertices adjacent to and respectively. Next, for every vertex , we add two vertices and a set of vertices. We make both and adjacent to all the vertices in . Next, we add two sets and of size and adjacent to and respectively. Finally, we add an edge . Next, we add two vertices and . We make adjacent to all the vertices in and the vertex . We add another set of many vertices adjacent to . We also make adjacent to all the vertices in . Let denote the neighbours of in set for all . For every , we add a set of vertices adjacent to and . We also add a set of one degree vertices of size . We make adjacent to all the vertices in . Finally, we add a set where and . We make every vertex in the set adjacent to two arbitrary vertices in the set . Similarly, we make every vertex in the set adjacent to both the vertices in the set . For every vertex in , we make adjacent to many arbitrary vertices in . Now for every vertex , we add many one degree vertices adjacent to where is the degree of until this point in the construction. Finally, we set . Now, we will show that is a yes instance if and only if is a yes instance. Let us assume that is a yes instance, that is, there exists a set of size at most in such that every vertex have at least one neighbour in . Without loss of generality, we can assume that . Let denotes the number of neighbours of in . We claim that the set is a globally minimal defensive alliance. It is clear that . First, we observe that every vertex in is marginally protected. We also see that is connected. This implies that is a globally minimal defensive alliance.
In the reverse direction, we assume that there exists a globally minimal defensive alliance of size at least . First, we observe that no vertex of degree one can be part of as one degree vertex forms a defensive alliance. As the one degree vertices are not part of the solution, we observe that no vertex from is part of the solution. This is true because we will not be able to protect any vertex from as more than half of the neighbours are one degree vertices. Next, we see that . For the sake of contradiction assume that there exists some such that . We observe that, we cannot use inside as the solution cannot be connected and if we do not add set inside then cannot achieve size . Therefore, we must include in . From above, we also see that we must add and inside as otherwise vertices in cannot be protected. Therefore, we have . Similarly, we can argue that . Next, we see that must be marginally protected in as otherwise forms a defensive alliance, which is not possible. For a vertex , we have and . Since and , we must have added at most from set for all . Let us denote the set . Clearly, every vertex have at least one neighbour in . Next, we see that . As otherwise, if then the vertex cannot be protected. This implies that is a yes instance.
Theorem 8.
Given a vertex , decide whether there exists a globally minimal defensive alliance containing vertex is a NP-complete problem.
Proof.
We will prove the above result by giving a polynomial reduction from r-regular clique problem. Let be any instance of clique problem. We construct an instance of above problem.
First, we add the vertex and a clique of size . We make every vertex in adjacent to all the vertices in and the vertex . Next, we add a set of one degree vertices adjacent to . We also add a set of one degree vertices adjacent to for each . Finally, we add a set of one degree vertices adjacent to for each . This completes the construction of . Now, we will show that is yes instance if and only if is a yes instance. Let us assume that is a yes instance, that is, there exists a clique of size in graph . We claim that is a globally minimal defensive alliance containing vertex in graph . We observe that all the vertices in are marginally protected in and is connected. This implied that is a globally minimal defensive alliance in . In the reverse direction, let us assume that there exists a globally minimal defensive alliance containing vertex . First, we observe that the one degree vertices cannot part as any one degree vertex forms a defensive alliance. This implies that the protection of requires all the vertices of in the solution. Therefore, we can assume that . We observe that since one degree vertices cannot be part of solution, every vertex in need at least vertices from . We also see that, if we take more than vertices from inside then all the vertices in are overprotected. Then, we see that is also defensive alliance. This is a contradiction as is globally minimal defensive alliance. This proves that contributes exactly vertices in the solution. Lets denote this set by . Since is -regular, we see that every vertex that is also part of the solution requires exactly neighbours from the . This implies that is a clique of size exactly . This implies that is a yes instance.
Theorem 9.
Globally minimal defensive alliance problem is NP-complete even on planar graphs.
6 Conclusion
The main contributions in this paper are that the Globally Minimal Defensive Alliance problem is polynomial time solvable on trees, and the problem parameterized by treewidth is W[1]-hard. It would be interesting to consider the parameterized complexity with respect to parameters neighbourhood diversity, vertex cover and twin cover. The modular width parameter also appears to be a natural parameter to consider here; and since there are graphs with bounded modular-width and unbounded neighborhood diversity, we believe this is also an interesting open problem. The parameterized complexity of the Globally Minimal Defensive Alliance problem remains unsettle when parameterized by solution size and other important structural graph parameters like clique-width and modular width.
Acknowledgement
The first author gratefully acknowledges support from the Ministry of Human Resource Development, Government of India, under Prime Minister’s Research Fellowship Scheme (No. MRF-192002-211). The second author’s research is supported in part by the Science and Engineering Research Board (SERB), Govt. of India, under Sanction Order No. MTR/2018/001025.