Manuscript Offprint
arXiv:2611.06482Computing Forest Degree Realizations with Minimum Cardinality Domination
Abstract
In the DEGREE REALIZATION problem with respect to a family of graphs the input is a non-increasing sequence of positive integers, and the goal is to decide whether there exists a simple undirected graph , whose degrees correspond to , i.e., such that . In this paper we consider the version of DEGREE REALIZATION in which the realization is required to be a forest (i.e., is the family of forests).
We consider optimized DEGREE REALIZATION in which the goal is to obtain a realization that minimizes an objective function . That is, the goal is to find a realization that minimizes among the realizations of the given input sequence. More specifically, we focus on the following functions: the size of an optimal vertex cover and the size of an optimal dominating set. We also consider the total and paired versions of both MIN VERTEX COVER and MIN DOMINATING SET. We provide characterizations and linear time realization algorithms for all the above-mentioned problems. Since MIN PAIRED VERTEX COVER is closely related to MIN EDGE DOMINATING SET, our results for DEGREE REALIZATION with respect to the former extend to the latter.
1 Introduction
In the DEGREE REALIZATION (DEGR) problem the input is a non-increasing sequence of positive integers, and the goal is to decide whether there exists a simple undirected graph , whose degrees correspond to , i.e., such that . If there exists such a graph , then is called graphic. Erdős and Gallai [13] gave necessary and sufficient conditions for the realizability of a given sequence, which imply a decision algorithm whose running time is . Havel [26] and Hakimi [23] presented an algorithm for finding a realization, whose running time depends linearly on the sum of all degrees, i.e., has running time .
Given a sequence , it is sometimes required that the realizing graph of has a certain property. For example, it may be the case that has to be bipartite. We formally define a property as the collection of graphs that satisfy the property. The problem of DEGR with respect to a graph family is similar to standard DEGR but with one more requirement, which is that the realization belongs to . Clearly, when , where is the collection of all graphs, we revert to regular DEGR. In this work, we are mainly interested in the family of forests. Gupta et al. [22] proved that a sequence is realizable by a tree if and only if
*Supported in part by a US-Israel BSF grant (2022205). †Department of Computer Science, City University of New York, USA; amotz@sci.brooklyn.cuny.edu ‡Department of Computer Science, Technion, Haifa, Israel; omri.kosary@campus.technion.ac.il §Department of Computer Science and Applied Mathematics, Weizmann Institute of Science, Rehovot, Israel; david.peleg@weizmann.ac.il ¶Faculty of Engineering, Bar Ilan University, Ramat-Gan, Israel; dror.rawitz@biu.ac.il
. This result readily extends to forests, namely a sequence can be realized using a forest if and only if is even and . Such a sequence is called forest-graphic or forestic. The above result is constructive and implies a realization algorithm for forests. In fact, it can be shown that a forestic sequence always has a realization consisting of a caterpillar and a matching (see, e.g., [1]).
A sequence may have several realizations, some of which are more desirable than others. Let be a function that assigns scores to graphs. We may prefer a realization, which minimizes or maximizes the score. Formally, given a sequence the goal is to find a realization of , which minimizes or maximizes . That is, to compute a realization optimizing the following function:
where opt and to provide a graph such that . Such problems are called optimized realization problems. For example, consider the size of a minimum cardinality dominating set in , which is denoted by . That is,
The optimized DEGR problem with respect to is to find a realization of with minimum size optimal dominating set among the realizations of . In this work we only consider minimization problems, thus we use instead of (e.g., instead of ). One may also add a property, constraining the realization to a graph family . For example, the optimized realization problem with respect to the family and the function , or with respect to , is to find a forest realization of with a minimum size optimal dominating set among the forest realizations of .
Given a graph , a dominating set (vertex cover) is called total if the induced subgraph does not contain isolated vertices. A dominating set (vertex cover) is called paired if contains a perfect matching. In this paper we consider DEGR by forests with respect to the following score functions:
• and – the sizes of an optimal vertex cover and dominating set.
• and – the sizes of an optimal total vertex cover and total dominating set.
• and – the sizes of an optimal paired vertex cover and paired dominating set.
The most relevant paper is by Gentner et al. [19], who worked on optimized degree realization with respect to and . They proved that a forestic sequence is realizable by a graph with a vertex cover of size if and only if . Hence,
Their proof is constructive in the sense that it can lead to a realization algorithm. They also provided the following condition for DEGR with respect to : If is a forestic sequence then
where
and is the multiplicity of 1 in and . (If is undefined, then .) It is important to note that the above characterizations were obtained due to a prefix lemma that states that, given a sequence , if there is a forest realization of with a dominating set (vertex cover) of size , then there is a realization with a dominating set (vertex cover) that consists of the highest degree vertices.
Our main tool for designing realization algorithms is a framework that works as follows. It starts with a star forest where the star centers constitute a dominating set (or a vertex cover). Then, it uses three simple operations that combine two trees into one: (i) merging two vertices, (ii) merging two edges, and (iii) adding an edge. We note that our results for the variants of MIN VERTEX COVER are used to obtain our results for the variants of MIN DOMINATING SET.
The above framework relies on the fact that the dominating set (vertex cover) is composed of vertices that correspond to a prefix of the given sequence. Our results for DEGR with respect to and rely on the prefix lemmas that were proven in [19]. We provide prefix lemmas for DEGR with respect to and .
We show that, given a forestic sequence , if is even, then , and that if is even, then . In fact, in this case our realization algorithms for the total versions compute a realization with a paired solution. In addition, we prove that if is odd, then . Similarly, we prove that if is odd, then . In this case, we show that one may add one vertex to a total solution in order to obtain a paired solution for the realizations that are computed by our algorithms. The added vertex is not arbitrary and should be chosen carefully. It is known that the minimum size of an edge dominating set equals the minimum size of a maximal matching. Moreover, , for every graph , where is the edge domination number (see Section 2 for more details). Hence, our results extend to DEGR with respect to .
Finally, in Appendix A we give a realization algorithm that is implied by the characterization of DEGR with respect to from [19] and show that it can be implemented to run in linear time.
1.2 Related Work
Rao [39] studied DEGR by a graph containing a clique of size (i.e., ), for any . He gave a characterization of sequences that are realizable with respect to this property. His result was based on a prefix lemma that showed that if there exists a realization with a , then there exists a realization such that the top degrees induce a . Corresponding realization algorithms were given in [40, 45] (see also [18]). These realization algorithms can be used for finding a realization with the largest clique, namely for solving the optimized realization problem with respect to , where is the clique number of . As noted in [18], the result for MAX CLIQUE implies a similar result for MAX INDEPENDENT SET, since , where is the independence number of . In addition, recall that , for every graph , where is the minimum vertex cover size of . It follows that , for any sequence , which means that the same result also applies to realization with respect to MIN VERTEX COVER. A general prefix lemma was given in [21] where it was shown that if a sequence has a realization with a subgraph with vertices, then there exists a realization such that is a subgraph of whose vertices correspond to the top degrees. A characterization for DEGR with respect to was given in [14], where is the matching number of , while a corresponding realization algorithm was provided in [2]. The latter result was based on a stronger version of the prefix lemma from [21]. Recently, a characterization and a realization algorithm for DEGR with respect to were given in [3]. These results were also based on a prefix lemma that was shown in [19].
Optimized DEGR was studied in several graph families. As mentioned above, DEGR with respect to was considered in [19]. Characterizations with respect to and were given in [18]. A characterization for DEGR with respect to , where is the family of trees, was given in [6]. The latter paper also contains a characterization and a realization algorithm for DEGR with respect to , where is the family of bipartite graphs, assuming that the input is a bi-sequence. The latter results were obtained using a strong and bipartite version of a prefix lemma. Also, these results imply a characterization and a realization algorithm with respect to and .
MIN VERTEX COVER cannot be approximated within a factor of , unless P = NP [32], and if the Unique Games Conjecture is true, then MIN VERTEX COVER cannot be approximated within any constant factor less than 2 [33]. On the other hand, it is known to be approximable within a factor of 2 [37, 4, 9, 29], and [5, 36, 24, 31]. It was shown that MIN TOTAL VERTEX COVER is APX-hard and that it has a 2-approximation algorithm in [16]. In [38] it was shown that MIN TOTAL VERTEX COVER is APX-hard even in connected sub-cubic graphs. MIN PAIRED VERTEX COVER is closely related to edge domination: Duarte et al. [11] showed that , for any graph . Hence, solving MIN PAIRED VERTEX COVER is equivalent to solving MIN EDGE DOMINATING SET. As for MIN EDGE DOMINATING SET, it is NP-hard [44], and it cannot be approximated within 1.18, unless P = NP [15]. Also, if the Unique Games Conjecture is true, it has no polynomial-time approximation with any constant ratio smaller than 2 [12]. A -approximation algorithm was given in [20].
MIN DOMINATING SET is not approximable within , unless P = NP [10]. Since MIN DOMINATING SET and MIN TOTAL DOMINATING SET are special cases of MIN SET COVER, they can be approximated within , where [30, 34, 8, 42]. MIN TOTAL DOMINATING SET is NP-hard to approximate within [43]. For more details on MIN TOTAL DOMINATING SET see [27, 28]. MIN PAIRED DOMINATING SET admits a -approximation, where is the maximum degree [7]. The problem is NP-hard to approximate within [43]. For further background, see [35].
2 Preliminaries
2.1 Definitions and Notation
Let be a simple graph, where . Let be the neighborhood of vertex , and let be the degree of , for every . The degree sequence of is defined as . In this paper we assume that a graph has no isolated vertices. Given subsets , let .
Let be a non-increasing sequence of positive integers. If there exists a graph such that , then it is said that realizes . A sequence that has a realization is called graphic. We refer to as the volume of . Observe that if is graphic, then a realization of has edges. Clearly, a degree of a vertex is at most and the sum of the degrees in a graph is even. Also, zero degree means an isolated vertex. Hence, it is enough to consider normal sequences, where a sequence is called normal if , for every , and the volume is even. Given a normal sequence let denote the multiplicity of in , namely . Also, define . For the sake of brevity, we use as a shorthand for a subsequence of consecutive 's (e.g., represents ).
A sequence that can be realized by a forest is called forestic. Given a sequence and a forest realizing , the number of trees in is .
2.2 Simple Observations
This section contains several simple observations that will be useful in the sequel.
Observation 1. A vertex cover of a graph (with no isolated vertices) is also a dominating set of .
Observation 2. A total (paired) vertex cover of a graph (with no isolated vertices) is also a total (paired) dominating set of .
Observation 3. A paired vertex cover (dominating set) of graph is also a total vertex cover (dominating set) of graph .
The next observation has to do with the size of a dominating set.
Observation 4. Let be a graphic sequence with a realization such that . A dominating set in satisfies .
A trivial condition on the size of a total dominating set is that it is at least 2. Another condition is given in the next observation.
Observation 5. Let be a graphic sequence with a realization such that . A total dominating set in satisfies .
Proof. A total dominating set must dominate all vertices not in , hence . Also, contains no isolated vertices, therefore . Since the sum of degrees is an even number we have that . Overall we get
Notice that . Observe that if , then , while . Hence, the above bound implies that .
The following is implied by Lemmas 2 and 5.
Observation 6. Let be a graphic sequence with a realization such that . A total vertex cover in satisfies .
Finally, we consider the connection between MIN PAIRED VERTEX COVER and MIN EDGE DOMINATING SET. Clearly, any maximal matching is also an edge dominating set. Yannakakis and Gavril [44] showed how to transform a minimum edge-dominating set into a maximal matching of the same cardinality (see also [25]). Duarte et al. [11] observed that the endpoints of a maximal matching induce a paired vertex cover and that the matching induced by a paired vertex cover is maximal.
Observation 7 ([11]). , for every simple graph .
3 Domination Framework
In this section, we describe a framework that, given a sequence , constructs a realization that attains an optimal solution to several domination problems.
The framework consists of three operations on graphs and a definition of a graph which serves as the starting point.

Figure 1: The initial star forest of with 3 stars.

(a) Edge merge operation.

(b) Leaf merge operation.

(c) Edge addition operation.
Figure 2: Examples of the three operations, each performed on the forest given in Figure 1.
3.1 The initial Forest: Star Forest
Given a subset , we define an initial star forest , which is composed of stars whose centers are the vertices of . More formally, given , define as follows:
Let , , and be the number of vertices, the degree sequence, and the number of trees of , respectively. An example is given in Figure 1.
Observation 8. , , and .
3.2 Edge Merge
Let be a forest containing at least two trees, and let . Also, let and be two leaves that belong to two different trees. Let be the respective unique neighbors of and . The edge merge operation merges with and with . An example is given in Figure 2a.
Algorithm 1: EdgeMerge
input :
output:
1
2
3 return
Observation 9. Let be a forest, and let be leaves that belong to two different trees. Let be the graph obtained by an EdgeMerge operation. Then, is a forest with trees, , , and , and , for every .
3.3 Leaf Merge
Let be a forest containing at least two trees, and let . Let be a leaf and let , such that and belong to two different trees. Let be the only neighbor of . The leaf merge operation merges into . An example is given in Figure 2b.
Algorithm 2: LeafMerge
input : output:
1
2
3 return
Observation 10. Let be a forest, and let be two vertices that belong to two different trees, such that is a leaf. Let be the graph obtained by a LeafMerge operation. Then, is a forest with trees, , and .
3.4 Edge Addition
Let be a forest containing at least two trees, and let . Let be a leaf and be either a leaf or a vertex such that and belong to two different trees. The edge addition operation connects with . An example is given in Figure 2c.
Algorithm 3: EdgeAddition
input : output:
1
2
3 return
Observation 11. Let be a forest, and let be two vertices that belong to two different trees, such that is a leaf. Let be the graph obtained by an edge addition operation. Then, is a forest with trees, , and .
4 Optimized Vertex Cover in Forests
In this section, we use our realization framework to design an efficient algorithm that, given a forestic sequence , computes a forest realization with a minimum vertex cover. More specifically, the algorithm is composed of two steps. The first step computes using the characterization given in [19]. Then, a realization is computed using our realization framework.
We provide an alternative proof of the characterization from [19]. In the next section we present a lower bound on the size of the minimum vertex cover, and the construction of our realization algorithm induces an equal upper bound.
4.1 Properties of Vertex Cover
Recall that, given a forestic sequence , is the minimum vertex cover size over all forest realizations of . Gentner et al. [19] proved the following theorem.
Theorem 1 ([19]). If is a forestic sequence then, .
The following is a necessary condition for the existence of a vertex cover of size . This lemma was previously proven in [19], and we provide a proof for the sake of completeness.
Lemma 12 ([19]). Let be a sequence of length and let be a forest realization of with a vertex cover of size . Then, .

(a)

(b) .

(c) .
Figure 3: An exchange in the VC Prefix Lemma for . Black vertices form the current cover. Here , , and . Replacing by preserves the forest; swapping the labels and then produces with the prefix cover .
Proof. Let D be a vertex cover of size t. It follows that
The next lemma shows that one may assume without loss of generality that a vertex cover is composed of vertices with the largest degrees, namely vertices that correspond to a prefix of the given sequence. This lemma was previously proven in [19] in MAX INDEPENDENT SET terms, and we provide a proof in MIN VERTEX COVER terms for the sake of completeness.
Lemma 13 (VC Prefix Lemma [19]). Let be a forestic sequence, and let be a forest realization of , where . Also, let be a vertex cover in , such that . Then, there exists a realization of , such that is a vertex cover.
Proof. Let and be a forest realization of and a vertex cover that maximizes . If , then we are done. Otherwise, there exist two vertices and , such that , , and . We show that can be modified into a forest such that the two vertices exchange their degrees and their labels, and is a vertex cover. This leads to a contradiction.
We obtain by transferring edges from to without creating cycles. Then we obtain our goal by switching labels between and . More formally, if and are not in the same tree of , then . Otherwise, there is a path . If or , observe that . If , then . (See example with in Figure 3a.) If the vertices are in the same tree, let such that . Otherwise, let such that .
Define: . Observe that no cycles were created, since the path from to remains as it was. Also, deleting splits a tree into two trees, and thus adding does not create a cycle. The realization is obtained by switching labels between and . (See example in Figure 3.) Clearly, is a realization of . Moreover, since is a vertex cover in , is a vertex cover in . Since , we have a contradiction.
Given a forestic sequence , Lemma 12 implies that . In the next section we rely on Lemma 13 in order to present an algorithm which computes a realization with a vertex cover whose size is equal to the above lower bound. Hence, this can be viewed as an alternative (and constructive) proof of an upper bound on .

(a) Initial star forest.

(b) After first loop.

(c) Final forest.
Figure 4: Construction of . In this case, and . Also, and .
4.2 Computing a Realization
Now we present our algorithm for finding a realization of , such that , which contains the vertex cover , where .
The input to Algorithm Realization-VC (Algorithm 4) consists of a sequence , a prefix size , and an initial forest . More specifically, and is the initial star forest with respect to and the vertex cover that corresponds to the prefix . The goal of the first while loop is to decrease the degree sum to and the number of leaves. This is done using EdgeMerge operations. After the first while loop, it remains to transform leaves into vertices with degrees . This is done using LeafMerge operations. Running examples of the algorithm are given in Figure 4 and Figure 5.
Algorithm 4: Realization-VC
input :
output:
1
2 while do
3
4
5 while do
6
7
8
9
10
In what follows we show that the algorithm computes a forest that realizes and that is a vertex cover in .
Let be the initial star forest. For the analysis, let be after the th operation (edge merges or leaf merges). Define , , and to be the number of vertices in , the degree sequence of , and the number of components in , respectively.


(a) Initial star forest.

(b) After first loop and final forest.
Figure 5: Construction of . In this case, , , and .
Observation 14. Let . If , then the initial star forest is already a realization of d with vertex cover D.
Proof. We know that . Since and due to minimality of and the parity of , it follows that . Lemma 8 implies that the initial star forest is a realization of .
As a first step, we show that the surplus in the degree sum is bounded from above by the surplus in the number of vertices. This also shows that we have enough trees in in order to perform the first while loop.
Lemma 15. .
Proof. Lemma 8 implies that
Also, since is the number of trees in , we have that
Next, we show that F remains a forest during and after the first while loop.
Lemma 16. is a forest throughout the execution of the first while loop such that
Proof. We prove that is a forest such that , by induction on the number of iterations of the first while loop. In the base case, is the initial star forest, and thus due to Lemma 15.
For the induction step, by the induction hypothesis is a forest such that in the beginning of the th iteration of the while loop. Since , it follows that . Since the first loop is being executed, Lemma 14 implies that . A component obtained from initial stars by edge merges retains at least leaves outside . Consequently, each of the at least two current components contains a suitable leaf, and the edge merge is well-defined. By Lemma 9, is a forest at the end of the iteration. In addition, and , while . Hence, holds at the end of the iteration.
Let be the number of iterations that are performed by first while loop. (Note that it may be the case that .)
Observation 17. (i) , (ii) , (iii) , (iv) , and (v) , for every .
Proof. This follows from Lemma 9.
It remains to show that the second while loop transforms leaves into vertices with degrees .
Observation 18. .
Proof. We have that . Also,
as required.
Lemma 19. If , then . Otherwise, if , then is a forest such that
for every , where .
Proof. If , then by Lemma 17. Otherwise, we prove the claim by induction on the number of iterations of the second while loop.
We first verify that every requested leaf merge is available. Since the second loop is executed, , and therefore every vertex in has degree at least two. At the beginning of the iteration that constructs , all previously assigned vertices outside also have degree at least two. Hence, every current tree has at least two leaves, and all of them are unassigned vertices outside . Moreover, by Lemma 18, the number of current trees is . Thus, one can select and perform the required leaf merges with leaves in distinct other trees.
In the base case, and in this case the claim follows from Lemma 17.
For the induction step, assume that the claim holds for . Due to Lemma 10 we know that remains a forest and that and decrease by in each iteration of the second while loop. Hence,
and
We are ready to state the main result of the section.
Theorem 2. Let be a forestic sequence and let . Algorithm 4 computes a forest realization of , such that is a vertex cover in . Moreover, is an independent set, if no edge merges are used.
Proof. Lemmas 16 and 19 show that both loops are well-defined, preserve the forest property, and terminate with degree sequence . Thus, is a forest realization of .
We prove by induction on that is a vertex cover of . Clearly, is a vertex cover of . For the induction step, assume that is a vertex cover of . An edge merge or a leaf merge does not add edges between vertices in , therefore is a vertex cover of . In its final step, the algorithm relabels the remaining leaves.
As for the running time, the initial star forest can be constructed in time. We describe how the algorithm chooses the vertices for its operations. The algorithm performs the merges by maintaining one large component and a set of stars. Initially is the star whose center is . We assume that the leaves of each vertex from are numbered, and that each one of these vertices holds an index of the next available leaf. When an edge merge is performed it is done on the next available leaf of , such that is minimal and on a leaf of , where is minimal. (For example, the first edge merge would involve and .) In the second while loop, the vertex is the next available leaf of , such that is minimal. In each iteration of the inner loop is chosen as a leaf adjacent to , where is minimal. Hence, each forest operation can be implemented to run in time. There are edge merges, and leaf merges. Hence, the total running time is .
5 Optimized Total Vertex Cover in Forests
In this section we consider the MIN TOTAL VERTEX COVER problem. We provide a characterization of the minimum size total vertex cover of a given sequence. We also present a realization algorithm that is based on a reduction to optimized MIN VERTEX COVER. We note that the reduction simplifies the analysis, but our algorithm can also be viewed as using our domination framework. We also show that a minor adaptation is needed to obtain a characterization and a realization algorithm for DEGR with respect to MIN PAIRED VERTEX COVER.
5.1 Properties of Total Vertex Cover
We start by obtaining necessary conditions for a total vertex cover.
Lemma 20. Let be a graphic sequence with a realization such that . A total vertex cover in satisfies .
Proof. Since is an independent set, it follows that . Also, contains no isolated vertices, therefore . Since the sum of degrees is an even number we have that . Overall we get
Observe that the last bound is stricter than the bound given in Lemma 6.
The following is a necessary condition on a sequence for the existence of a total vertex cover of size t.
Lemma 21. Let be a forestic sequence with a realization such that . Also, let be a total vertex cover in , such that . Then .
Proof. Let be a total vertex cover of size . Due to Lemma 20 we know that
Given a forestic sequence , Lemma 21 implies that
(1) where is the minimum total vertex cover size of any forest realization of sequence . In what follows we present an algorithm which computes a realization with a total vertex cover whose size is equal to the above lower bound.
We now show a prefix lemma for MIN TOTAL VERTEX COVER.
Lemma 22 (TotalVC Prefix Lemma). Let be a forestic sequence with a realization such that . Also, let be a total vertex cover in , such that . Then, there exists a realization of such that is a total vertex cover.
Proof. We use the same construction as in the proof of Lemma 13. Recall that in the proof of Lemma 13 we assume that there exist two vertices and , such that , , and . We obtain a forest from by transferring edges from to without creating cycles. Observe that the removed edges connect , which is not in the cover, with other vertices. Hence, is a subgraph of . It follows that does not contain isolated vertices.
Before presenting our realization algorithm, we treat one special case separately.
Lemma 23. Let be a forestic sequence such that . Then, there exists only one possible realization (up to isomorphism) whose optimal total vertex cover is of size .
Proof. First, the only possible realization of (up to isomorphism) is a star with leaves (i.e., ) and a matching. (If , then the star has only one leaf.) The total vertex cover must contain the center of the star, one of its leaves, and the endpoints of all matching edges. Hence, .
Notice that and are either both odd or both even, hence
It follows that .
Assuming that allows us to rely on the following bounds.
Lemma 24. Let be a forestic sequence such that . Then .
Proof. It is known that a forestic sequence can be realized by the union of a caterpillar graph and a matching (see, e.g., [1]). One possible total vertex cover for is the union of all the vertices in the central path of the caterpillar and all the matching vertices. Overall this total vertex cover contains vertices.
Observation 25. Let be a graphic sequence, such that . Then, . Also, if is odd, then .
Proof. First, implies . Next, assume that is odd, and . Then it must be that and . In this case, must be even. The two possible realizations in this case are either a and a matching or two copies of and a matching. In both cases, . A contradiction.
5.2 Computing a Realization
In this section we assume that is a forestic sequence such that . We provide an algorithm for computing a total vertex cover of size . This will prove that .
As a first step, we give a reduction from optimized MIN TOTAL VERTEX COVER to optimized MIN VERTEX COVER. Given a forestic sequence , let . We define a sequence and an integer as follows. Let , where
Next, define
where
Lemma 25 implies that , if is even, and that , if is odd. Moreover, observe that and that .
For example, given with then we get and .
Observation 26. Let . Then, is non-increasing.
Proof. We start with the prefix of . First, if , then we are done. Otherwise, since , if is odd, then by Lemma 25
for every .
Similarly, if is even, then
for every .
In addition, recall that . Hence, if or is even, we have that
Otherwise, .
We show that is forestic.
Observation 27. Let . If is a forestic sequence, then is a forestic sequence.
Proof. We show that is forestic by calculating the degree sum.
If , we have that by definition. Moreover, due to Lemma 24. It follows that . The latter inequality also holds, if . Hence, , for any value of . It follows that
Next, we show that the reduction is valid.
Lemma 28. if and only if .
Proof. If , then
If , then
Lemma 29. If , then .
Proof. Assume that . Hence, , and thus . First assume that . We have that
Since , we get that , in contradiction to the minimality of .
Next, assume . We have that
Since and , it follows that , again in contradiction to the minimality of .

(a) Forest for .

(b) Forest for .
Figure 6: Construction of with , , and .
Lemma 30. Let be a forestic sequence, such that , and let . Then there exists a forest that realizes with a total vertex cover .
Proof. Let and be the output of the reduction on and . We know that is non-increasing and forestic due to Lemmas 26 and 27. Lemma 29 implies that . Theorem 2 implies that there exists a forest realization of with vertex cover .
We construct a forest from by first splitting vertices and then adding a matching of size . The splits work as follows. If is even, then split into two connected vertices, for , where one vertex is connected to neighbors and the other to neighbors. If is odd and , then split into two connected vertices, where one is connected to neighbors and the other to neighbors. Otherwise, is split into a path of three vertices that are connected to , , and neighbors, respectively (Recall that , as we assumed ). Next, we add to a matching of size . Let be the set that contains the vertices that are obtained by the splitting process and the vertices of the matching. Observe that is a forest that realizes and is a total vertex cover of .
The following is implied by Lemmas 21, 23 and 30.
Corollary 3. If is a forestic sequence then .
The next result is a realization algorithm.
Theorem 4. Let be a forestic sequence and let . Then there is a linear time algorithm that computes a realization of with total vertex cover of size .
Proof. If , then applying Lemma 23 is enough to prove the theorem. Otherwise, we may assume that . The proof of Lemma 30 induces the following algorithm. Given a forestic sequence , compute , and . Next, execute Algorithm 4 on and the corresponding star forest to obtain a realization with vertex cover . Afterwards, construct a realization of and a total vertex cover as described in the proof of Lemma 30.
The correctness of the above algorithm is implied by Lemma 30. As for the running time, the computation of , and takes time. Since , Algorithm 4 also requires time. Finally, obtaining and from and takes time.
Running examples of the algorithm are given in Figure 6 and Figure 7. Note that the reduced sequence in Figure 6a is realized in Figure 4. Also, the reduced sequence in Figure 7a is realized in Figure 5.

(a) Forest for .

(b) Forest for .
Figure 7: Construction of with , , and .
5.3 Using the Domination Framework
In this section we show that the algorithm given in the previous section can be described using our domination framework.
Algorithm Realization-TVC is composed of two phases. In the first phase, the algorithm starts with the initial star forest and uses EdgeMerge operations in order to create a perfect matching on the covering vertices, if is even. If is odd, then one of the matching edges becomes a . In the second phase, it executes Realization-VC (Algorithm 4), but instead of starting with and the initial star forest, the input consists of the sequence , the prefix size , and the altered initial forest that was constructed in phase 1. Algorithm Realization-TVC simulates Algorithm Realization-VC on the forest such that each component with leaves is treated as a star with leaves. Observe that when , the execution of Realization-VC in Step 5 is redundant, and the correctness of Algorithm 5 is implied by Lemma 23.
Given a vertex v with a leaf neighbor, we denote by an arbitrary leaf of v.
Algorithm 5: Realization-TVC
input :
output:
1 Let be the initial star forest of and
2 for do
3
4 if is odd then
5 return Realization-VC
Observe that the preliminary edge merges that are performed in Lines 1-4 simulate the reduction from MIN TOTAL VERTEX COVER to MIN VERTEX COVER that was given above. Moreover, if the execution of Realization-VC in Algorithm 5 follows the same sequence of edge merges and leaf merges as the execution of Realization-VC in the algorithm which is given in Theorem 4, then the computed forest will be the same. By Theorem 4, the call to Algorithm 4 on is valid, and its vertex cover can be enlarged to the first vertices. Each subsequent merge on the reduced forest has a corresponding merge on the altered forest . Choosing these corresponding operations yields precisely the forest obtained by the splitting construction in the proof of Theorem 4.
We add running examples of the algorithm in Figure 8 and Figure 9.
5.4 Optimized Paired Vertex Cover
In this section we deal with DEGR in forests with respect to MIN PAIRED VERTEX COVER.
Theorem 5. Let be a forestic sequence. Then there is a linear time algorithm that computes a forest realization of with a paired vertex cover of size .

(a) Construction of .

(b) Construction of .

(c) Construction of .
Figure 8: Construction of with .

(a) Construction of .

(b) Construction of .

(c) Construction of .
Figure 9: Construction of with .
Proof. We have that due to Lemma 3. Moreover, since every paired vertex cover has even cardinality, we have that .
Recall the proof of Theorem 4. If is even, then the total vertex cover is also a paired vertex cover by construction. Otherwise, is odd. Let be the total vertex cover computed as described in the proof of Theorem 4. Also, recall that the path is contained in the realization . In this case we claim that there is a neighbor of that is not in . Assume towards contradiction that all neighbors of are in . Then, is also a total vertex cover, in contradiction to being a minimum size total vertex cover. Hence, there is a vertex . Observe that is a matching in . Therefore, is a minimum paired vertex cover. It follows that .
Corollary 6. Let be a forestic sequence. Then there is a linear time algorithm that computes a forest realization of with an edge dominating set of size .
6 Optimized Dominating Set in Forests
In this section we use our realization framework to design an efficient algorithm that given a forestic sequence computes a forest realization with a minimum dominating set. As in Section 4, the algorithm is composed of two steps. The first computes using an algorithm that is implied by the characterization given in [19]. Then, a realization is computed using our realization framework.
6.1 Properties of Dominating Set
Recall that, given a forest sequence is the minimum dominating set size over all forest realizations of d. Gentner et al. [19] showed that
Theorem 7 ([19]). Let be a forest sequence. Then, , where
Observation 31. If is well-defined, then .
In the next lemma we show that one may assume that an optimal dominating set in a forest is composed of vertices with the largest degrees. Gentner et al. [19] proved this lemma to obtain the characterization of . We provide a (different) proof for completeness.
Lemma 32 (DS Prefix Lemma [19]). Let be a forest sequence, and let be a forest realization of , where . Also, let be a dominating set in , such that . Then, there exists a realization of , such that is a dominating set.
Proof. Let and be a forest realization of and a dominating set that maximizes . If , then we are done. Otherwise, there exist two vertices and , such that , , and . We show that is a dominating set in some forest realization of , and this leads to a contradiction.
First, assume that is a leaf, and let be its only neighbor. If or , then we are done. If , and , we use . Otherwise, we obtain by transferring edges from to without creating cycles. Then we obtain our goal by switching labels between and .
Since is a forest, we have that . In addition, since there exists such that . If and are not in the same tree in , then . Let such that . If and belong to the same tree, then there is a path . (Note that it may be the case that .) Notice that is not a leaf, since otherwise , whose degree is at least 2, can replace in . Hence, we may assume that . Let , such that .
In both cases we define . Observe that no cycle was created, since the path from to remains as it was. The realization is obtained by switching labels between and . Clearly, is a realization of . Moreover, since is a dominating set in , is a dominating set in .
Lemma 33. Let be a forest sequence. Let be a forest realization of , and let be a dominating set of size . If , then .
Proof. By Lemma 32 assume that . Suppose toward contradiction that . In this case . Hence, . All degree-1 vertices must be neighbors of vertices in . Thus , and we get a contradiction.
As mentioned above, it was shown in [19] that . Next, we provide a simpler alternative proof. The next lemma describes a necessary condition for the existence of a forest realization with a dominating set of certain size.

Figure 10: The partition of into , and
Lemma 34 ([19]). Let be a forestic sequence. Let be a forest realization of , and let be a dominating set of size . Either , or
Proof. By Lemma 32 we assume that is composed of the highest degree vertices.
If , then we are done. Hence, we assume that .
We partition into three disjoint subsets: , , , where is the dominating set, and . , since due to Lemma 33.
All degree-1 vertices must be connected to a vertex in . Hence, . Each vertex in must also be connected to a vertex in . It follows that
See depiction in Figure 10. Since is a forest, it must be that . The lemma follows.
Looking at Lemma 34 and Lemma 4 we infer that:
In the next section we present an algorithm which computes a realization with a dominating set of size and this can be viewed as a constructive proof of an upper bound on . We note that the proof given in Gentner et al. [19] uses an existence claim based on a characterization of bi-sequence ranges by Gale and Ryser [17, 41]. One can design an algorithm that computes a realization of bi-sequence ranges by using a reduction to MAXIMUM FLOW with lower bounds. However, their proof is based on a realizing graph with minimum number of components, which is not guaranteed by the above-mentioned realization algorithm. Hence, as opposed to the case of VERTEX COVER, the characterization from [19] does not imply a realization algorithm.
6.2 Computing a Realization
We describe an algorithm that, given a forestic sequence , computes a forest realization with a dominating set of size .
The first step of our algorithm is to compute . First, consider the case where . In this case we can use our algorithm for VERTEX COVER.
Corollary 8. Let be a forestic sequence. If , then Algorithm 4 computes a realization of with a minimum dominating set . In addition, is an independent set.
Next we consider the case where is well-defined, and thus . We then change our framework to handle the situation. The key difference between this case and the previous one would be the sum of degrees. The difference between the sum of degrees of the initial star forest and the required sequence is:
In the case of this difference is non-negative, but in the case of it is negative. We deal with it by switching from EdgeMerge operations to EdgeAddition operations.
Algorithm 6 is our algorithm for DOMINATING SET for the case where . It is based on the framework given in Section 3. As Algorithm 4, it starts with the initial star forest whose star centers are in the set . As opposed to Algorithm 4, the goal of the first while loop is to increase the degree sum to . This is done using EdgeAddition operations. After the first while loop, the rest of the construction is done using LeafMerge operations. Starting with , the algorithm performs EdgeAddition operations in order to obtain a vertex with degree , where is the largest degree that requires realization. Notice that leaves that were used in EdgeAddition operations have degree two. Observe that some iterations of the first while loop do not use edge additions. This occurs when and there are already unassigned degree-2 vertices in the forest. Also notice that it may be the case that the first while loop terminates in the middle of realizing . In this case, the second while loop continues to work on .
Algorithm 6: Realization-DS
input : output:
1 2 3 while do 4 5 6 7 8 9 10
A running example of the algorithm is given in Figure 11 and Figure 12.

(a) Initial star forest.

(b) Forest after the first loop.

(c) Output forest.
Figure 11: Construction of , , , and . Also, and .
In what follows we show that the algorithm computes a forest that realizes and that is a dominating set in .
Let be the initial star forest that is created by the algorithm. For the analysis, let be after the th operation (EdgeAddition or LeafMerge). Define , , and to be the number of vertices in , the degree sequence of , and the number of components in , respectively.
Notice that and . As a first step, we observe that the degree deficit is bounded.
Observation 35. If is well-defined, then .
Proof. First, by the definition of . Also, since , we have that
The observation follows, since .
Next, we show that remains a forest during and after the first while loop. We classify EdgeAddition operations into two types, the first is when two leaves are connected by an edge, and the second is when a leaf is connected to a non-leaf. In the first iteration of the first while loop, is a leaf and it is connected to a leaf. Hence, the first operation of the while loop is always a leaf to leaf EdgeAddition. Afterwards, as long as , leaf to non-leaf EdgeAddition operations are performed. Then, as long as , leaf to leaf EdgeAddition operations are performed. Hence, there are three possible scenarios depending on the input sequence:
-
If , there is only one leaf to leaf edge addition (the first edge addition).
-
If , there are only leaf to leaf edge additions.
-
If and , then the first operation is a leaf to leaf edge addition, and it is followed by a sequence of leaf to non-leaf edge additions. Afterwards, there is a (possibly empty) sequence of leaf to leaf edge additions.
We define two parameters for counting the two types of edge additions throughout the first loop. Let be the number of non-leaf to leaf edge additions during the first loop, and let be the number of EdgeAddition operations throughout the first loop. If the loop terminates due to the condition of the while, then
We show that remains a forest during the first EdgeAddition operations (or iterations of the first inner while loop).

(a) The initial star forest. .

(b) The forest after realizing : .

(c) The forest after finishing the first loop and realizing : .

(d) The output forest of the algorithm: .
Figure 12: Construction of , , , and .
Lemma 36. Assume that is well-defined. During the first EdgeAddition operations of the first while loop, we have that (i) is a forest, (ii) , (iii) , and (iv) .
Proof. We prove the claims by induction on the number of EdgeAddition operations performed by the first while loop. Note that the first iteration is executed since .
The base case is after the first operation which connects two leaves. Lemmas 11 and 35 imply that is a forest with and . Also, due to Lemma 33, .
As for the induction step, assume that is a forest with non-leaves and trees. Now consider the th operation. Observe that . Lemmas 11 and 35 imply that
Lemma 11 implies that is a forest with trees. Since , the EdgeAddition operation is performed on a non-leaf and a leaf, which means that the number of non-leaves is increased by one, therefore . Also because and Lemma 34, we get that:
There are two possible scenarios after the first operations of the first while loop. In the first, we have reached that point where the degree deficit has become zero, namely
. In this case the algorithm exits the first while loop and continues to the second while loop.
This leads to one upper bound on .
Observation 37. .
Proof. An upper bound of is the maximum number of edge additions that can occur throughout the first loop, which is . Also there is a first leaf to leaf edge addition. Overall we get the bound.
Let be the value of immediately after the first while loop terminates, equivalently, immediately before the second while loop starts. Thus, all indices smaller than have been assigned. If the vertex processed in the last iteration was not assigned, then it is intended for index . Let .
The next lemma describes the sequence after the last iteration of the first loop assuming that .
Lemma 38. Assume that . Then , and after the first loop the sequence is
where .
Proof. First, due to Lemma 11.
Since , the operations consist of the initial leaf-to-leaf edge addition and exactly non-leaf-to-leaf edge additions. The first operation creates two new nonleaves, and each of the remaining operations creates one new non-leaf. Therefore,
The vertices assigned to the indices realize the corresponding degrees of . After such a vertex has degree 2, realizing degree uses exactly non-leaf-to-leaf edge additions. Consequently, after realizing these indices, the number of non-leaf-to-leaf edge additions not accounted for by them is .
If the vertex processed in the last iteration was not assigned, these remaining operations were applied to that vertex after it had degree 2. If it was assigned in the last iteration, the displayed difference is zero, and the next unassigned non-leaf has degree 2. In either case, the degree occupying position is
If the last processed vertex was not assigned, the selection rule and the inner-loop guard give . If it was assigned, then . Moreover, the other endpoint of the final edge addition is an unassigned degree-two vertex. Hence by Lemma 36, and therefore .
Apart from the first positions, the number of remaining nonleaves is , and all of them have degree 2, while the remaining vertices have degree 1. The lemma follows.
In the second scenario the first while loop moves to perform leaf to leaf edge additions. This happens when the degrees are realized, where is defined as follows. It is either the last index outside the dominating prefix whose value is at least 3, or , if the above index does not exist. Formally, . In this case the first while loop continues to realize starting from using leaf to leaf edge additions.
This leads to a second upper bound,
Observation 39. .
Proof. An upper bound on is the number of edge additions needed to realize all degrees in the subsequence minus the initial one. As mentioned before, the number of edge additions required to realize a degree , for is , because the initial degree of the vertex which is used to realize is two. On the other hand, the vertex realizing starts with a degree one. Hence,
Define
Observe that implies that . We note that in Figure 11 , , and thus holds, whereas in Figure 12 , , and thus holds. Indeed, in Figure 11 we have , , and . Lemma 38 gives , exactly as shown in the figure. Due to the termination condition of the first while loop, the last two observations lead to the following:
Observation 40. .
The next lemma deals with the second scenario where the first while loop performs leaf to leaf edge additions. In this case, . Notice that there may be iterations with no edge addition operations. This happens when . Leaf to leaf edge additions are done when and .
Lemma 41. Assume that . After the first operations of the first while loop, for , we have that (i) is a forest, (ii) , (iii) , and (iv) .
Proof. We prove the claims by induction on the number of operations performed by the first while loop. The base case, , is implied by Lemma 36.
As for the induction step, assume that is a forest with non-leaves and trees. Now consider the th operation. Observe that . Lemma 11 and Lemma 35 imply that
Lemma 11, implies that is a forest with trees. Since the edge addition operation is performed on two leaves, the number of non-leaves is increased by two,
Hence . Because , it follows that . By the definition of , we have that , and thus . Hence,
(3)
Therefore, .
The next lemma describes upon exiting the first while loop, for the case where . Recall that .
Lemma 42. Assume that . Then .
Proof. We recall that . Lemma 41 and (3) imply that
Before this phase, all target degrees greater than two have been realized. Each subsequent leaf-to-leaf edge addition creates two degree-two entries: the processed endpoint is assigned, while the other endpoint remains as an unassigned degree-two entry. Consequently, the first entries are , and all remaining entries are one.
We note that when , the final edge addition completes and assigns . This is the borderline between the two cases.
The next lemma is a first step towards proving the correctness after the second while loop.
Lemma 43. .
Proof. Since upon termination of the first while loop, we have that
First, assume that . In this case, Lemma 38, together with and the definition of , gives
and by the definition of , we have that
Next, assume that . Due to Lemma 42,
Recall that is the value of upon starting the second while loop. Consider the last iteration of the first while loop. If was assigned to (i.e., realized) during the last iteration, then , otherwise . If , then a leaf to leaf edge addition was performed in the last iteration, and thus .
The next lemma shows the correctness of the realization after termination of the algorithm.
Lemma 44. After iterations of the second while loop, is a forest such that
, and
where . At termination, for , we have that .
Proof. We prove the claim by induction on the number of iterations of the second while loop.
For the base case , observe that , hence the claim follows from either Lemmas 36 and 38 (if ) or Lemmas 41 and 42 (if ).
For the induction step, assume that the claim holds for . Consider iteration of the second while loop, and let . Iteration starts with selecting an unassigned vertex with the largest degree, such that . The iteration increases the selected vertex from degree to and deletes unassigned degree-1 vertices. At the end of the iteration is relabeled as . Note that iterations with zero operations are possible, in which the only action is the assignment of to . In such an iteration , we have .
The defining inequality in Theorem 7 implies that , which means that . Thus the leaf-availability argument in the proof of Lemma 19 applies. That is, every tree in the current forest, throughout iteration , has at least two leaves.
Lemma 10 and Lemma 43 imply that both and remain non-negative. Moreover, we know that remains a forest and that and decrease by in iteration of the second while loop. Hence, by the induction hypothesis
and
As for the third claim, , for every by the induction hypothesis. Since iteration does not change entries , for , this also holds for . In addition, iteration increases entry from to . The lemma follows.
Theorem 9. Let be a forestic sequence and let . There exists an algorithm that computes a forest realization of , such that is a dominating set in . Moreover, either is an independent set or is an independent set.
Proof. If , then the theorem follows from Theorem 8. In this case, is a vertex cover, and thus is an independent set.
Otherwise, assume that and let be the computed solution by Algorithm 6. is a forest due to Lemma 44. We prove that is an independent dominating set in by induction on . Clearly, is an independent dominating set of . For the induction step, assume that is an independent dominating set of . An edge addition or a leaf merge does not create newly uncovered vertices in , and also neither operation connects dominating vertices by edges, therefore is an independent dominating set of .
As for the running time of Algorithm 6, the initial star forest can be constructed in time. The algorithm performs the merges by maintaining one large component and a set of stars, similarly to the implementation of Algorithm 4. Recall that in leaf merge phase of Algorithm 4, the next available leaf of , such that is minimal, was chosen. Then, each iteration of the inner loop, a leaf of , where is minimal, merged into the chosen vertex. The same approach is taken here both for edge additions and leaf merges. However, in this algorithm the chosen vertex may be a vertex of degree 2. Hence, each forest operation can be implemented to run in time. In addition, there are edge additions, and leaf merges. Hence, the total running time is .
7 Optimized Total Dominating Set in Forests
In this section we consider DEGR with respect to MIN TOTAL DOMINATING SET. We provide a characterization of the minimum size total dominating set of a forest realization of a given sequence, and we also present a realization algorithm. Our realization algorithm is based on a reduction to optimized MIN DOMINATING SET. As in the case of MIN TOTAL VERTEX COVER, the reduction simplifies the analysis, but our algorithm can also be viewed as using our domination framework. As in Section 5, we show that a minor adaptation is needed to obtain a characterization and a realization algorithm for DEGR with respect to MIN PAIRED DOMINATING SET.
7.1 Properties of Total Dominating Set
This section contains several properties and necessary conditions for a total dominating set. We start with a prefix lemma for MIN TOTAL DOMINATING SET.
Lemma 45 (Total DS Prefix Lemma). Let be a forestic sequence with a realization such that . Also, let be a total dominating set in , such that . Then, there exists a realization of such that is a total dominating set.
Proof. We use an argument similar to the one used in the proof of Lemma 32. Recall that in the proof of Lemma 32 we assume that there exist two vertices and , such that , , and .
First, consider the case where and lie in the same tree. If , then has a unique neighbor , such that and . Since , it follows that . Let be the neighbor of on the unique path from to . If , then we are done (without relabeling). Otherwise . If , then the set is also a total dominating set of of size , and we are done (without relabeling). Else, (no relabeling) is a total dominating set of size .
Thus for the rest of the proof we assume that . The rest of the proof follows the proof of Lemma 32. We obtain a forest from F by transferring edges from to without creating cycles. Remember that we keep as a neighbor of . Observe that the removed edges connect , which is not in the dominating set, with other vertices. Hence, is a subgraph of . It follows that does not contain isolated vertices.
We give a necessary condition similar to Lemma 34 in Section 6.
Lemma 46. Let be a forestic sequence. Let be a forest realization of , and let be a total dominating set of size . Either , or
Proof. By Lemma 45 we assume that is composed of the highest degree vertices.
If , then we are done. Hence, we assume that .
We first claim that . Suppose that , then , which means that cannot be a total dominating set due to Lemma 5. A contradiction. It follows that .
We partition into three disjoint subsets as was done in the proof of Lemma 34: , , , where and . Notice that , since .
All degree-1 vertices must be connected to a vertex in . Hence, . Each vertex in must also be connected to a vertex in . In addition, there are at least edges connecting vertices of with each other. It follows that
See depiction in Figure 10. Since is a forest, it must be that . The lemma follows.
Putting together Lemma 2 and Lemma 46 we infer that:
where
Observation 47. If is well-defined, then .
Observation 48. If is well-defined, then .
Proof. If is well-defined, then .
7.2 Computing a Realization
In this section we describe an algorithm which, given a forestic sequence , computes a forest realization with a total dominating set of size . The correctness proof of this algorithm serves as a matching upper bound to (4) on . The first step of our algorithm is to compute .
First, consider the case where . In this case we can use our algorithm for TOTAL VERTEX COVER.
Corollary 10. Let be a forestic sequence. If , then by Theorem 4 there is an algorithm which computes a realization of with a minimum total dominating set . In addition, is an independent set.
Next we consider the case where is well-defined, and thus . As a first step, we recall the reduction from Section 5.2 and use it to reduce from optimized MIN TOTAL DOMINATING SET to optimized MIN DOMINATING SET. We use the reduction that is defined in Equation (2), where , , and are replaced by , , and 0, respectively. Here counts the contracted blocks. If is odd, the first three vertices form one block and the remaining vertices form pairs, so . That is,
where
Notice that due to Lemma 48. Since is non-increasing, every entry among is at least 2. Therefore, every contracted prefix entry is at least 2, i.e., , for . The suffix is unchanged, and hence ; consequently, . Moreover, observe that and that .
The proofs of the following observations are similar to those of Lemmas 26 and 27
Observation 49. is non-increasing.
Observation 50. If d is a forestic sequence, then is a forestic sequence.
We proceed to prove that the reduction is valid.
Lemma 51. if and only if .
Proof. If , then
If , then
Lemma 52. if and only if .
Proof. If , then
If , then
Lemma 53. Let be a forestic sequence for which is well-defined. Then, .
Proof. Let . By Lemmas 51 and 52, satisfies both conditions defining . Thus, is well-defined and . Assume toward a contradiction that .
We first show that also satisfies both conditions in the definition of . First,
Due to Lemma 52,
Also,
Next, we show that satisfies both conditions of . First,
Since and ,
We have that
Finally,
Hence satisfies both conditions of in contradiction to the minimality of .
Lemma 54. Let be a forestic sequence for which is well-defined, and let . Then there exists a forest that realizes with a total dominating set .
Proof. We know that is non-increasing and forestic due to Lemmas 49 and 50. Moreover, Lemma 53 implies that . Hence, by Theorem 9, there is a forest realization of with dominating set .
Construct by splitting every vertex of exactly as in Lemma 30, with , and let be the vertices created by these splits. Splitting vertices preserves the forest property, and the definition of the contracted degrees shows that realizes . Each two-vertex block induces an edge, while in the odd case the first block induces a three-vertex path, so has no isolated vertices. Every vertex outside corresponds to a vertex outside and retains an edge to a split vertex of . Hence, is a total dominating set of .
The following is implied by Equation (4), Theorems 3 and 10, and Lemma 54.
Corollary 11. If is a forestic sequence, then .
The next result is a realization algorithm.
Theorem 12. Let be a forestic sequence. Then there is a linear time algorithm that computes a realization of with total dominating set of size .
Proof. First, assume that . In this case, the proof follows from Theorem 10.
Otherwise, we can assume . The proof of Lemma 54 induces the following algorithm. Given , compute , the reduced sequence , and . Let be the corresponding initial star forest. Recall that by Lemma 53, . Execute Algorithm 6 on to obtain a realization of with dominating set . Then apply the splitting construction from Lemma 54 to obtain and .
The correctness of the above algorithm is implied by Lemma 54. As for the running time, the computation of , , and takes time. Since , Algorithm 6 requires time. Finally, obtaining F and D from and takes time.
7.3 Using the Domination Framework
In this section, similarly to Section 5, we present an algorithm which uses only framework operations. The algorithm in this subsection applies only when . If , we instead use Algorithm 5, as in Theorem 10. The algorithm follows the same steps as Algorithm 5. It first performs edge merges that imitate the reduction. It then runs Realization-DS on the resulting forest while treating the components as stars, that is each block of dominating vertices created by the preliminary edge merges is treated as a single center of the corresponding reduced



Figure 13: Construction of with .
star. After contraction, the resulting forest is exactly the initial star forest for and . Lemma 53 lets us run Realization-DS in Algorithm 7 in the correct manner.
Algorithm 7: Realization-TDS
input : output:
1 Let be the initial star forest of and 2 for do 3 4 if is odd then 5 return Realization-DS
Two running examples are shown in Figures 13 and 14. In each figure, the three subfigures show the initial star forest, the forest after the preliminary edge merges, and the output, respectively. For the first example, contracting the black matching edges in Figures 13b and 13c yields the initial and output forests, respectively, of the dominating-set construction in Figure 11 for the reduced sequence . For the second example, the total dominating set has odd size. The preliminary edge merges make the black vertices induce a matching of five edges and a , and contraction gives the reduced sequence . It then runs Realization-DS and it follows the same three edge additions and two leaf merges as shown in Figure 12.
We again note the fact that if the execution of Realization-DS (Algorithm 7) and the execution of Realization-DS in the algorithm which is given in Theorem 12 behave the same, then the computed forest will be the same.
7.4 Optimized Paired Dominating Set
In this section we give a characterization and realization algorithm for DEGR with respect to MIN PAIRED DOMINATING SET.
Theorem 13. Let be a forestic sequence. Then there is a linear time algorithm that computes a forest realization of with paired dominating set of size .
Proof. We have that due to Lemma 3. Since the size of a paired dominating set must be even we have that .
Let . First suppose that . By Theorem 5, there is a forest realization of with a paired vertex cover of size . By Lemma 2, the same set is a paired dominating set.
Next assume that . Recall the proof of Theorem 12. If is even, then the total dominating set is also a paired dominating set by construction. Otherwise, is odd. Let

(a) Construction of .
(b) Construction of .

(c) Construction of .
Figure 14: Construction of with .
be the total dominating set computed as described in the proof of Theorem 12. In this case we claim that there is a neighbor of that is not in . Assume towards contradiction that all neighbors of are in . Then, is also a total dominating set, in contradiction to being a minimum size total dominating set. Hence, there is a vertex . Observe that is a matching in . Therefore, is a paired dominating set, and it follows that .
Linear time follows from Theorems 5 and 12; in the odd case, u is found by scanning .
References
[1] A. Bar-Noy, T. Böhnlein, D. Peleg, Y. Ran, and D. Rawitz. Approximate realizations for outerplanaric degree sequences. J. Comput. Syst. Sci., 148:103588, 2025.
[2] A. Bar-Noy, I. Kalinichev, D. Peleg, and D. Rawitz. Degree realization with maximum matching. In 37th IWOCA, volume 16587 of LNCS, pages 103–117, 2026.
[3] A. Bar-Noy, I. Kalinichev, D. Peleg, and D. Rawitz. Degree realization with minimum dominating set. In 27th IPCO, volume 16588 of LNCS, pages 64–80, 2026.
[4] R. Bar-Yehuda and S. Even. A linear time approximation algorithm for the weighted vertex cover problem. J. Algorithms, 2:198–203, 1981.
[5] R. Bar-Yehuda and S. Even. A local-ratio theorem for approximating the weighted vertex cover problem. Annals of Discrete Mathematics, 25:27–46, 1985.
[6] F. Bock and D. Rautenbach. On matching numbers of tree and bipartite degree sequences. Discr. Math., 342(6):1687–1695, 2019.
[7] L. Chen, C. Lu, and Z. Zeng. Hardness results and approximation algorithms for (weighted) paired-domination in graphs. Theor. Comput. Sci., 410(47–49):5063–5071, 2009.
[8] V. Chvátal. A greedy heuristic for the set-covering problem. Mathematics of Operations Research, 4(3):233–235, 1979.
[9] K. Clarkson. A modification of the greedy algorithm for vertex cover. Inf. Process. Lett., 16:23–25, 1983.
[10] I. Dinur and D. Steurer. Analytical approach to parallel repetition. In 46th ACM STOC, pages 624–633, 2014.
[11] G. L. Duarte, M. de Oliveira Oliveira, and U. S. Souza. Co-degeneracy and co-treewidth: Using the complement to solve dense instances. In 46th MFCS, volume 202 of LIPIcs, pages 42:1–42:17, 2021.
[12] S. Dudycz, M. Lewandowski, and J. Marcinkowski. Tight approximation ratio for minimum maximal matching. In 20th IPCO, volume 11480 of LNCS, pages 181–193, 2019.
[13] P. Erdős and T. Gallai. Graphs with prescribed degrees of vertices [Hungarian]. Matematikai Lapok, 11:264–274, 1960.
[14] P. L. Erdős, S. R. Kharel, T. R. Mezei, and Z. Toroczkai. New results on graph matching from degree-preserving growth. Mathematics, 12(22), 2024.
[15] B. Escoffier, J. Monnot, V. T. Paschos, and M. Xiao. New results on polynomial inapproximability and fixed parameter approximability of edge dominating set. Theory Comput. Syst., 56(2):330–346, 2015.
[16] H. Fernau and D. F. Manlove. Vertex and edge covers with clustering properties: Complexity and algorithms. J. Discrete Algorithms, 7(2):149–167, 2009.
[17] D. Gale. A theorem on flows in networks. Pacific J. Math., 7:1073–1082, 1957.
[18] M. Gentner, M. A. Henning, and D. Rautenbach. Largest domination number and smallest independence number of forests with given degree sequence. Discr. Appl. Math., 206:181–187, 2016.
[19] M. Gentner, M. A. Henning, and D. Rautenbach. Smallest domination number and largest independence number of graphs and forests with given degree sequence. J. Graph Theory, 88(1):131–145, 2018.
[20] Z. Gotthilf, M. Lewenstein, and E. Rainshmidt. A approximation algorithm for the minimum maximal matching problem. In 6th WAOA, volume 5426 of LNCS, pages 267–278, 2008.
[21] R. J. Gould, M. S. Jacobson, and J. Lehel. Potentially g-graphical degree sequences. In Combinatorics, Graph Theory, and Algorithms, volume 1, pages 451–460, 1999.
[22] G. Gupta, P. Joshi, and A. Tripathi. Graphic sequences of trees and a problem of Frobenius. Czechoslovak Math. J., 57:49–52, 2007.
[23] S. L. Hakimi. On realizability of a set of integers as degrees of the vertices of a linear graph - I. SIAM J. Appl. Math., 10(3):496–506, 1962.
[24] E. Halperin. Improved approximation algorithms for the vertex cover problem in graphs and hypergraphs. SIAM J. Comput., 31(5):1608–1623, 2002.
[25] F. Harary. Graph Theory. Addison Wesley, 1969.
[26] V. Havel. A remark on the existence of finite graphs. Casopis Pest. Mat., 80:477–480, 1955.
[27] M. A. Henning. A survey of selected recent results on total domination in graphs. Discr. Math., 309(1):32–63, 2009.
[28] M. A. Henning and A. Yeo. Total Domination in Graphs. Springer, 2013.
[29] D. S. Hochbaum. Approximation algorithms for the set covering and vertex cover problems. SIAM J. Comput., 11(3):555–556, 1982.
[30] D. S. Johnson. Approximation algorithms for combinatorial problems. J. Comput. System Sci., 9:256–278, 1974.
[31] G. Karakostas. A better approximation ratio for the vertex cover problem. In 32nd ICALP, volume 3580 of LNCS, pages 1043–1050, 2005.
[32] S. Khot, D. Minzer, and M. Safra. On independent sets, 2-to-2 games, and Grassmann graphs. In 49th ACM STOC, pages 576–589, 2017.
[33] S. Khot and O. Regev. Vertex cover might be hard to approximate to within 2-epsilon. J. Comput. Syst. Sci., 74(3):335–349, 2008.
[34] L. Lovász. On the ratio of optimal integral and fractional covers. Discr. Math., 13:383–390, 1975.
[35] J. P. McCoy. Paired-Domination in Graphs. PhD thesis, University of Johannesburg, 2013.
[36] B. Monien and E. Speckenmeyer. Ramsey numbers and an approximation algorithm for the vertex cover problem. Acta Informatica, 22(1):115–123, 1985.
[37] G. L. Nemhauser and L. E. Trotter. Vertex packings: structural properties and algorithms. Mathematical Programming, 8:232–248, 1975.
[38] S.-H. Poon and W.-L. Wang. On complexity of total vertex cover on subcubic graphs. In 14th TAMC, volume 10185 of LNCS, pages 515–528, 2017.
[39] A. Rao. The clique number of a graph with a given degree sequence. In ISI Lect. Notes, volume 4, pages 251–267, 1979.
[40] A. Rao. An Erdős Gallai type result on the clique number of a realization of a degree sequence, 1979. Unpublished.
[41] H. Ryser. Combinatorial properties of matrices of zeros and ones. Canad. J. Math., 9:371–377, 1957.
[42] P. Slavík. A tight analysis of the greedy algorithm for set cover. In 28th ACM STOC, pages 435–441, 1996.
[43] P. Y. Wang, N. Kitamura, T. Izumi, and T. Masuzawa. Approximation hardness of domination problems on generalized convex graphs. Theor. Comput. Sci., 1028:115035, 2025.
[44] M. Yannakakis and F. Gavril. Edge dominating sets in graphs. SIAM Journal on Applied Mathematics, 38(3):364–372, 1980.
[45] J.-H. Yin. A short constructive proof of A. R. Rao's characterization of potentially -graphic sequences. Discr. Appl. Math., 160(3):352–354, 2012.
A Previous Result for Vertex Cover
Gentner et al. [19] gave a characterization for optimized DEGR with respect to MAX INDEPENDENT SET. In terms of MIN VERTEX COVER, they proved Theorem 1, which states that
To prove an upper bound on they used an induction on the volume . Their arguments are constructive and in this section we provide an explicit algorithm which is implied by this constructive proof. We also provide a running time analysis (that did not appear in [19]).
The following algorithm recursively constructs a forest realization of a given forestic sequence , such that . In the recursion base . Since is forestic, must be even, and it must be that . Hence, the algorithm returns a perfect matching.
Otherwise, each recursive call of the algorithm has two options.
-
If , the algorithm makes a Havel-Hakimi step using as a pivot. More specifically, the algorithm creates a new sequence by decreasing by 1, where , and removing . Upon returning from the recursion, the edge is added to the current realization.
-
If , the algorithm removes the vertices and replaces them by one vertex of degree . Upon returning from the recursion, is replaced by the star centered at with leaves , and its former incident edges are distributed equally among those leaves.
The following notation is used. Let .
Algorithm 8: Realization-VC-GHR
input : output:
1 if then return 2 if or then 3 4 5 6 7 Let be obtained by adding and the edge to . 8 return
9 else 10 , where 11 12 13 Label by 14 15 Partition into subsets , each with edges 16 for to do 17 18 return
The next lemma proves the correctness of Algorithm 8.
Lemma 55. Running Algorithm 8 with a forest sequence and such that returns a forest realization, , of in which is a vertex cover of .
Proof. We prove the lemma by induction on the depth of the recursion. In the base case . Since is forestic, must be even. Also, implies that . The algorithm returns the perfect matching , which realizes and is covered by .
As for the inductive step, there are two options. If or , then the algorithm constructs the sequence . is forestic, since
Also, notice that, if , then
Hence, by the induction hypothesis, realizes and is a vertex cover in . A forest that realizes is obtained by adding the edge to . Since , the set remains a vertex cover.
If , then the algorithm constructs . Observe that is forestic, since
We show that and that . Since is forestic and by the selection of , we have that
It follows that and that . Also, notice that
By induction, realizes on with the cover . Replace by the star centered at with leaves , distributing its incident edges equally among the leaves. This preserves acyclicity, since the removal of separates all its incident subtrees, and reconnecting them cannot create a cycle. The center and leaves have degree , and all other degrees are unchanged. The new and redistributed edges are covered by , and the remaining edges by . Thus, realizes with the required vertex cover.
It remains to bound the running time of the algorithm.
Lemma 56. The running time of Algorithm 8 is .
Proof. Let denote the running time of the algorithm on a sequence of volume . Hence, we have
The base case is reached only once, and its cost is bounded by the volume of the original input.
If one uses buckets to hold the sequence , it is possible to implement the first recursion step in time. (The initialization takes time.) Observe that if , we have that and . It follows that at least recursive calls of type 1 are executed after a call of type 2. For , the type-2 cost is already . The lemma follows.