Total 2-domination of proper interval graphs
Francisco J. Soulignac

TL;DR
This paper improves the computational efficiency of finding total 2-dominating sets in proper interval graphs, reducing the time complexity from polynomial to linear in the number of edges.
Contribution
It presents a new algorithm that computes total 2-dominating sets in proper interval graphs in linear time, significantly faster than previous methods.
Findings
Total 2-dominating sets can be computed in O(m) time.
The new algorithm is more efficient than previous polynomial-time algorithms.
The approach leverages properties of proper interval graphs.
Abstract
A set of vertices of a graph is a total -dominating set when every vertex of has at least neighbors in . In a recent article, Chiarelli et al.\ (Improved Algorithms for -Domination and Total -Domination in Proper Interval Graphs, Lecture Notes in Comput.\ Sci.\ 10856, 290--302, 2018) prove that a total -dominating set can be computed in time when is a proper interval graph with vertices and edges. In this note we reduce the time complexity to for .
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Total -domination of proper interval graphs
Francisco J. Soulignac CONICET and Departamento de Ciencia y Tecnología, Universidad Nacional de Quilmes, Bernal, Argentina.Supported by PICT ANPCyT grant 2015-2419.
Abstract
A set of vertices of a graph is a total -dominating set when every vertex of has at least neighbors in . In a recent article, Chiarelli et al. (Improved Algorithms for -Domination and Total -Domination in Proper Interval Graphs, Lecture Notes in Comput. Sci. 10856, 290–302, 2018) prove that a total -dominating set can be computed in time when is a proper interval graph with vertices and edges. In this note we reduce the time complexity to for .
Keywords: total -domination, straight oriented graphs, proper interval graphs.
1 Introduction
A set of vertices of a graph is a total -dominating set when every vertex of has at least neighbors in . The problem of computing a total -dominating set of with minimum cardinality is known to be \NP-complete for every , even when belongs to certain subclasses of chordal graphs [7] such as undirected path graphs [5, 6]. In turn, when is an interval graph with vertices, the problem is solvable in time, as recently proven by Kang et al. [4] (cf. [2]). Moreover, the time complexity can be reduced to when belongs to the subclass of proper interval graphs [2].
Besides being a subclass of undirected path graphs, interval graphs are among the most famous classes of graphs. Unsurprisingly, then, the problem for on interval graphs was studied long before the general case. In particular, Chang [1] shows that a total -dominating set of minimum cardinality can be obtained in time when an interval model of is given. The huge gap in the complexities of the algorithms by Chang, on the one hand, and Chiarelli et al. and Kang et al., on the other hand, suggests that there is still room for improvements when . One reason to explain this gap is the fact that the problems attacked by Kang et al. and Chiarelli et al. are too general. In this note we consider the problem from the opposite perspective, by studying the simplest case that is still unsolved. Specifically, we consider the total -domination problem on proper interval graphs, for which we obtain a quadratic () time algorithm.
Our algorithm, as well as the one by Chiarelli et al. [2] and others, models the total -dominating problem as a shortest path problem on a weighted acyclic digraph . The major difference is that, in the model by Chiarelli et al., each vertex of represents a connected set of with diameter at most . In turn, in our model each vertex represents different connected sets of varying diameters, that correspond to the weight of each outgoing edge and can be as high as .
In Section 2 we introduce the terminology required throughout the paper. Then, in Section 3 we show how the total -domination problem is modeled as a shortest path problem on an acyclic digraph of size . We improve this model in Section 4, where we observe that can be compressed to an acyclic digraph , of size , that can be computed in time. Finally, in Section 5 we discuss some ideas to try to generalize our algorithm to the case .
2 Preliminaries
In this article we work with simple graphs and digraphs. For a (di)graph , let and denote the sets of vertices and (directed) edges of , respectively. As usual, we write and when is clear and, for simplicity, we use to denote both the set and the ordered pair . Two vertices and are adjacent when either or . The neighborhood of is the set of all its adjacent vertices, while its degree is . When is a digraph, we say that goes from to , while is an out-neighbor of . The out-degree of is the number of out-neighbors of . For the sake of notation, we omit the subscript from and when no confusions are possible.
A path in a (di)graph is a sequence of vertices such that , for . A cycle is a sequence such that and is a path. If has no cycles, then is acyclic. We say that is weighted to mean that each has a weight . The weight of a path is, then, . When is a digraph, its underlying graph has as its vertex set, whereas if and only if and are adjacent in , for . A graph is connected when there is a path between every pair of vertices, while a digraph is connected when its underlying graph is connected. An oriented graph is a digraph such that either or , for . If is the underlying graph of an oriented graph , then is an orientation of .
Consider a (di)graph . For , let denote the sub(di)graph of induced by . We say that is connected when is connected. A block of is a connected subset of that is maximal by inclusion. We say that is -dominated by when . If every vertex of is -dominated by , then is a -dom. Moreover, if is minimum among the -doms of , then is a minimum -dom. Note that is a -dom of a graph if and only it is a -dom of , for any orientation of . Thus, we may replace by when computing a minimum -dom. From now on we safely assume that (); otherwise has no -doms.
A straight graph (Figure 1) is an oriented graph that admits a linear ordering of its vertices and a mapping such that:
- •
for and for , and
- •
if and only if .
As before, is usually omitted from and . A graph is a proper interval (PIG) graph is some of its orientations is a straight graph. It is well known that is a PIG graph if and only if its vertices can be mapped into a family of inclusion-free intervals of the real line in such a way that two vertices of are adjacent when their corresponding intervals have a nonempty intersection (e.g., [3]; see Figure 1). Yet, in this article we prefer the combinatorial view provided by straight graphs.
For the sake of notation, we sometimes assume that a straight graph with vertices has two artificial vertices and . Thus, for , we can conveniently define the subsequence . For , let , , and , where the superscript is omitted as usual. In colloquial terms, and are the vertices that precede and follow , respectively, and is the first vertex not adjacent to in . Also, define and for . We extend from to the family of subsets of in such a way that, for , if and only if for every and . It is not hard to see that the blocks of are pairwise comparable by . Therefore, we sometimes state that are the blocks of .
3 Computing a minimum -dom in time
In this section we describe an algorithm to find a minimum -dom in time when a straight graph is given. Let be the vertices of , and define and . To simplify the description of the algorithm, we assume that and are blocks of . Consequently, if is a -dom of with blocks , then and . Note that this assumption yields no loss of generality because is a -dom of if and only if is a -dom of . Thus, we can always transform the input graph by inserting . The sets and are called the source and pre-sink blocks of , respectively, whereas and are the source and pre-sink edges of .
In a nutshell, the algorithm finds the blocks of the minimum -dom one at a time, from to . By the discussion above, is simply the source block of . Once is determined (), the next block is obtained by choosing vertices (for some ) in a way that reaches as far as possible. To build , its first two vertices and are taken as the further reaching vertices that still cover the gap from to . Then, each of the remaining vertices are defined in terms of and . Under the terminology defined below, and are “expansive”, while “extends” .
Formally, a connected set with vertices () is expansive (Figure 2) when:
- (exp1)
, for , and , and 2. (exp2)
if , then .
By (exp1) and (exp2), is fully determined by , , and ; for this reason, we say that is represented by . Clearly, represents at most one expansive connected set of size , . Let and (Figure 2). An expansive connected set represented by extends when:
[TABLE]
We refer to as being the -extension of . Note that the -extension of , if existing, is unique, because is the unique expansive connected set with vertices that is represented by . A set with blocks is expansive when:
- (exp3)
is expansive for every , and 2. (exp4)
extends for every .
Moreover, if and are the source and pre-sink blocks of , then is fully expansive.
Consider the weighted digraph with vertex set that has an edge from to of weight when is the -extension of .111As defined, can contain multiple edges between the same pair of vertices (Figure 3). Moreover, some results hold only if contains these repeated edges. Yet, for simplicity, we restricted our terminology to simple digraphs. This is not an issue, though, as all the results can be easily adapted to the case in which is simple, by ignoring the heavier repeated edges. Is for this reason that we ignore the fact that is a multidigraph. Let be the pre-sink of and . Define as the digraph that is obtained from after the edge with is inserted (Figure 3). The vertex is the sink of , while its source is the source edge of . By definition, when extends , thus is acyclic. Moreover, any path of encodes an expansive set with blocks such that is represented by and , for . By definition, . We record the previous discussion for later.
Theorem 1**.**
If is a straight graph, then is an acyclic digraph that has vertices and edges. Furthermore, is (resp. fully) expansive if and only if is encoded by a path of (resp. from the source to the sink) whose weight is .
The key feature about fully expansive sets is that each of them is a -dom, while at least one of them is a minimum -dom. Of course, this claim holds only under our assumption that has at least one -dom.
Theorem 2**.**
If is a fully expansive set of a straight graph , then is a -dom.
Proof.
Suppose and let and be the artificial vertices of . Then, every vertex belongs to for some . Take and so that is minimum, and consider the following cases for .
- Case 1:
. This case is impossible, as is the source edge of and, consequently, . 2. Case 2:
. In this case, is adjacent to and because is the pre-sink edge of . 3. Case 3:
and belong to the same block of . Then, either and or . Whichever the case, is adjacent to and . 4. Case 4:
is the first of its block. Then, is adjacent to and . 5. Case 5:
and and belong to different blocks. By 1, and . Thus, either is adjacent to and or is adjacent to and or is adjacent to and .
As is -dominated by in every case, it follows that is a -dom. ∎
Theorem 3**.**
If a straight graph has a -dom, then it has a minimum -dom that is fully expansive.
Proof.
Suppose are the vertices of , and let , . For , let . We shall prove that every minimum -dom with maximum is fully expansive.
Consider any block of with vertices and let , for , , and if . Following the same pattern as in Theorem 2, it is not hard to see that , , is a -dom of . Moreover, since it follows that , hence . Consequently, by the maximality of . That is, satisfies (exp1) and (exp2) and, thus, satisfies (exp3).
Suppose now that is not the maximum of . Then, some expansive block represented by an edge appears immediately after in . Let and , and note that because is not connected. Since has at most one neighbor in and has no neighbors in , it follows that (a) and (b) . Moreover, (c) by (exp1). Suppose that (d) does not extend , and consider the following cases.
- Case 1:
and . Since , then . Then, by (a) and (b), it follows that . Moreover, as has at least two neighbors in , it follows that . Note that is a -dom by (c) that, by (d) and 1, has . 2. Case 2:
and . In this case, by (a) and (b), while (c) implies that is a -dom that, by (d) and 1, has . 3. Case 3:
and . Since , then . Then by (a), while because has at least two neighbors in . Then, is a -dom by (c) that has by (d) and 1. 4. Case 4:
and . Since has at least two neighbors in , (b) implies . Then, is a -dom by (c) that has by (d) and 1. 5. Case 5:
. In this final case, is a -dom by (a)–(c) that, by (d) and 1, has .
As all the cases are impossible, extends . Hence, (exp4) holds as well. ∎
Theorems 1, 3 and 2 imply that a minimum -dom can be obtained by computing a path of minimum weight from the source of to its sink. By Theorem 1, this algorithm requires time once is given. We remark that can be generated in time, although the details are omitted as they are similar to those discussed in the next section for .
4 Computing a minimum -dom in time
The idea to accelerate the algorithm is to compress in a reduced graph that uses two vertices per edge of . For the sake of notation, let \underaccent{\bar}{\bar{E}}(G)=\underaccent{\bar}{E}(G)\cup\bar{E}(G) for \underaccent{\bar}{E}(G)=\{\underaccent{\bar}{e}\mid e\in E(G)\} and . Define the width of as the minimum such that ; when no such exists, the width of is .
Let and be the source and pre-sink of , respectively, and . As , the digraph is obtained by inserting an edge \underaccent{\bar}{e}t of weight \omega(\underaccent{\bar}{e}t)=3 in a digraph that, this time, has vertex set \underaccent{\bar}{\bar{E}}(G). The vertices \underaccent{\bar}{s} and are the source and sink of . For each and , has regular edges \underaccent{\bar}{e}\underaccent{\bar}{g} and \underaccent{\bar}{e}\bar{g} of weight for each -extension of . Similarly, if has width , then has regular edges \bar{e}\underaccent{\bar}{g} and of weight when has a -extension . This time, however, the -extensions of for are compacted in a single edge. Specifically, if , , and , then has a compact edge of weight for . Figure 4 depicts for the straight graph in Figure 3.
The main feature of is that it preserves the adjacencies and distances of . To make this assertion explicit, say that a path P=\bar{\underaccent{\bar}{e}}_{1},\ldots,\bar{\underaccent{\bar}{e}}_{h+1} of is a -path when \bar{\underaccent{\bar}{e}}_{h}\bar{\underaccent{\bar}{e}}_{h+1} is regular, while it is a -edge when it is a -path and \bar{\underaccent{\bar}{e}}_{i}\bar{\underaccent{\bar}{e}}_{i+1} is compact for . Clearly, any -path is equal to , where is a -edge from \bar{\underaccent{\bar}{e}}_{i} to \bar{\underaccent{\bar}{e}}_{i+1}, for . By definition, \bar{\underaccent{\bar}{e}}_{i}\in\{\underaccent{\bar}{e}_{i},\bar{e}_{i}\} for some . Following the terminology for , we say that encodes the expansive set with blocks such that is represented by and , for . Theorem 5 below is the translation of Theorem 1 to , that shows that is actually a compact version of .
Theorem 4**.**
Let be a straight graph, , \bar{\underaccent{\bar}{g}}\in\{\underaccent{\bar}{g},\bar{g}\}, and . If , let \bar{\underaccent{\bar}{e}}=\underaccent{\bar}{e}; otherwise, let \bar{\underaccent{\bar}{e}}=\bar{e}. Then, is the -extension of if and only if there exists a -edge from \bar{\underaccent{\bar}{e}} to \bar{\underaccent{\bar}{g}} of weight in .
Proof.
Suppose first that is the -extension of , and let be the width of . We prove by induction on that has a -edge of weight from \bar{\underaccent{\bar}{e}} to \bar{\underaccent{\bar}{g}}. The base case, in which , is trivial as \bar{\underaccent{\bar}{e}}\bar{\underaccent{\bar}{g}} is a regular edge of with weight . For the inductive step, let be the expansive connected set of size that is represented by . Note that exists because otherwise would have no -extension. By (exp1), , thus as and . By definition, has a compact edge from \bar{\underaccent{\bar}{e}} to , for , because by (exp1). Moreover, by (exp1) and (exp2), is an expansive connected set with at least five vertices. By definition, is the -extension of , thus, by induction, there is a -edge from to \bar{\underaccent{\bar}{g}} in with . Hence, \bar{\underaccent{\bar}{e}}P is a -edge of from \bar{\underaccent{\bar}{e}} to \bar{\underaccent{\bar}{g}} with \omega(\bar{\underaccent{\bar}{e}}P)=j.
For the converse, suppose that has a -edge P=\bar{\underaccent{\bar}{e}}_{0},\ldots,\bar{\underaccent{\bar}{e}}_{h} from \bar{\underaccent{\bar}{e}}_{0}=\bar{\underaccent{\bar}{e}} to \bar{\underaccent{\bar}{e}}_{h}=\bar{\underaccent{\bar}{g}} whose weight is . Note that, by definition, \bar{\underaccent{\bar}{e}}_{i}=\bar{e}_{i} for every . We prove by induction on that is the -extension of . The base case is trivial, because \bar{\underaccent{\bar}{e}}\bar{\underaccent{\bar}{g}} is a regular edge of only if is the -extension of . For the inductive step, let be the width of and recall that , where . By definition, \bar{\underaccent{\bar}{e}}_{1},\ldots,\bar{\underaccent{\bar}{e}}_{h} is a -edge of with weight , which implies that is the -extension of by induction. Note that because \bar{\underaccent{\bar}{e}}_{1}=\bar{e}_{1}. Thus, by (exp1) and (exp2), represents an expansive connected set such that for every , , and . Therefore, by (exp1) and (exp2), is an expansive connected set with when for . Consequently, by 1, has as its -extension. ∎
Theorem 5**.**
If is a straight graph, then is an acyclic digraph that has vertices and edges. Furthermore, is (resp. fully) expansive if and only if is encoded by a -path of (resp. from the source to the sink) whose weight is .
Proof.
By Theorem 1, any expansive set is encoded by a path of . Let if is the sink of and otherwise. For , let \bar{\underaccent{\bar}{e}}_{i}=\underaccent{\bar}{e}_{i} if and \bar{\underaccent{\bar}{e}}_{i}=\bar{e}_{i} otherwise. By Theorem 4, there is a -edge from \bar{\underaccent{\bar}{e}}_{i} to \bar{\underaccent{\bar}{e}}_{i+1} of weight for every . If , then \bar{\underaccent{\bar}{e}}_{k}=\underaccent{\bar}{e}_{k} because the unique edge form the pre-sink of in has weight . Thus, regardless of the value of , the edge of from \bar{\underaccent{\bar}{e}}_{k} to \bar{\underaccent{\bar}{e}}_{k+1} is a -edge of weight . Consequently, is a -path of that encodes . Moreover, if is the source edge of , then and, therefore, \bar{\underaccent{\bar}{e}}_{1}=\underaccent{\bar}{e}_{1} is the source of by Theorem 4. Hence, by Theorem 1, goes from the source of to its sink when is fully expansive.
The converse is similar: if is a -path of that encodes a set , then is a path of by Theorem 4, where is the edge corresponding to the first edge of for , and corresponds to last edge of that happens to be the sink of when ends at the sink of . Moreover, . Thus, encodes which, by Theorem 1, implies that is an expansive set of with vertices. Moreover, is fully expansive when goes from the source to the sink of . ∎
The algorithm to compute a minimum -dom of a given straight graph has three main steps. 1 and 2 compute and a path of minimum weight from the source to the sink of , respectively. By Theorems 4, 2 and 3, encodes a minimum -dom of ; the set is found in Step 3. The algorithm runs in time when implemented as described below, where we write .
- Input:
is implemented with the sequence of its vertices and a function such that when . Both and are implemented with vectors, thus traversing requires time, whereas querying costs time. Note that can be answered in time as well. We assume that contains the source and pre-sink blocks, as time suffices to insert them into the structure. 2. Step 0:
before computing , we build the map such that: if has width , then ; otherwise, . A single backward traversal of suffices to compute in time because, by definition,
[TABLE] 3. Step 1:
to compute , first two vertices and representing \underaccent{\bar}{e} and are created, for , , and . This step consumes time. Then, for and , the edges of from are inserted. Let and ; suppose as no edge from has to be inserted otherwise. First, the edge from to , representing the compact edge for and , is inserted in time. To create the regular edges, note that, by (exp1), and are the last two vertices of the expansive connected set of size that is represented by . Clearly, the indices such that is the edge defined by 1, when applied to and , can be obtained in time with a few applications of . By definition, is the -extension of if and only if and represents an expansive connected set. These facts that can be determined in time by observing whether and . If affirmative, then the edges from to of weight are inserted in time. Therefore, the edges from are created in time. Each regular edge from is inserted time with a similar procedure. Therefore, this step consumes total time. 4. Step 2:
since is acyclic (Theorem 4), can be computed in time. 5. Step 3:
traversing once, we can split into -edges while is computed for . Let be the first vertex of . By (exp2) and (exp1), applications of from are enough to find all the vertices of the expansive connected set of size that is represented by . Then, the output can be computed in time.
Note that can be encoded in space, thus the algorithm is quadratic in the worst case. We remark that many algorithms exist to compute a straight orientation of a PIG graph in time. In particular, the algorithm in [3] outputs as required by the algorithm above. Thus, when is a PIG graph represented with adjacency lists, a -dom can be computed in linear time.
5 Concluding remarks
In this note we developed an time algorithm for the total -dominating set problem on proper interval graphs, improving the previous time algorithm by Chiarelli et al. [2]. Both of these algorithms work by finding a shortest path on a weigthed digraph . The main difference between them is that in our model the edges of represent connected sets with a large diameter. The actual connected set represented by is the one that reaches farther in the input (model of the) graph . One of the consequences defining the edges of in this way is that some connected sets that can be a part of the solution when is weighted are not considered. Therefore, on the contrary to the algorithm by Chiarelli et al., our algorithm does not solve the problem when is weighted.
Our algorithm provides more evidence that the time required to solve problem of finding a total -dominating set on a (proper) interval graph, for , is . In our digraph , each edge goes from a pair to the another pair . Certainly, we can extend this model to -tuples; the idea would be to have an edge from a -tuple to a -tuple of weight when is the further tuple that can be reached with a “block” having vertices. Intuitively, such a -tuple should exist: if and are two “blocks” of a total -dominating set that begin with and neither of them is lexicographically larger than the other, then it should be possible to combine and into a new block beginning with that is lexicographically larger than both and . Thus, the tuple reaching further should exist. The problem, however, is how to compute when building . The case is easy because all the blocks have a peculiar structure. We conjecture that, by following these ideas, the problem can be solved in time.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Chang [1998] M.-S. Chang. Efficient algorithms for the domination problems on interval and circular-arc graphs. SIAM J. Comput. , 27(6):1671–1694, 1998. doi: 10.1137/S 0097539792238431 . · doi ↗
- 2Chiarelli et al. [2018] N. Chiarelli, T. R. Hartinger, V. A. Leoni, M. I. L. Pujato, and M. Milanic. Improved algorithms for k 𝑘 k -domination and total k 𝑘 k -domination in proper interval graphs. In J. Lee, G. Rinaldi, and A. R. Mahjoub, editors, Combinatorial Optimization. ISCO 2018 , vol. 10856 of Lecture Notes in Comput. Sci. , pp. 290–302. Springer, Cham, 2018. doi: 10.1007/978-3-319-96151-4_25 . · doi ↗
- 3Deng et al. [1996] X. Deng, P. Hell, and J. Huang. Linear-time representation algorithms for proper circular-arc graphs and proper interval graphs. SIAM J. Comput. , 25(2):390–403, 1996. doi: 10.1137/S 0097539792269095 . · doi ↗
- 4Kang et al. [2017] D. Y. Kang, O.-j. Kwon, T. J. F. Strø mme, and J. A. Telle. A width parameter useful for chordal and co-comparability graphs. Theoret. Comput. Sci. , 704:1–17, 2017. doi: 10.1016/j.tcs.2017.09.006 . · doi ↗
- 5Lan and Chang [2014] J. K. Lan and G. J. Chang. On the algorithmic complexity of k 𝑘 k -tuple total domination. Discrete Appl. Math. , 174:81–91, 2014. doi: 10.1016/j.dam.2014.04.007 . · doi ↗
- 6Laskar et al. [1984] R. Laskar, J. Pfaff, S. M. Hedetniemi, and S. T. Hedetniemi. On the algorithmic complexity of total domination. SIAM J. Algebraic Discrete Methods , 5(3):420–425, 1984. doi: 10.1137/0605040 . · doi ↗
- 7Pradhan [2012] D. Pradhan. Algorithmic aspects of k 𝑘 k -tuple total domination in graphs. Inform. Process. Lett. , 112(21):816–822, 2012. doi: 10.1016/j.ipl.2012.07.010 . · doi ↗
