1. Introduction
A vertex v in a graph G is said to dominate itself and its neighbors. A set S of vertices in a graph G is said to be a dominating set for G if every vertex of G is dominated by at least one member of S. A set S of vertices in a graph G is said to be a perfect dominating set for G if every vertex of G is dominated by exactly one member of S. If a graph G with vertex set V has a perfect dominating set of
, then V can be partitioned into k subsets
,
, where
is the set of vertex
together with its neighbors, i.e.
. The concept of perfect domination set in a graph has wide range of applications. For example, resource allocation and placement in parallel computers [2] , code error detecting and correcting [3] . In social networking context, if G is the graph presentation of a social network and if G has a perfect dominating set S, then the members of S are independent influencers that will completely influence the entire network, and each non-influencing member of G will be influenced by exactly one influencer from S. For such a social network G, if we can identify one perfect dominating set S, we can focus on S instead of entire social network when we want to influence, do campaign for instance, on the entire network. In the context of a common UNIX file system in which we consider only directories, a rooted tree T can be used to completely represent the entire file system. If we can configure T so that T has a perfect dominating set S, then each node in S can be assigned an agent, these agents are independent and can carry out monitoring or security checks on entire system in very efficient manner.
A graph can have none, one or more than one perfect dominating sets. See Figure 1. In Figure 1, graph
has no perfect dominating set,
has one perfect dominating set {1, 4, 7} and
has two perfect dominating sets {1, 4, 7} and {2, 8, 6}.
For a graph G, three questions can be asked: “Does G have a perfect dominating set?” “If G has perfect dominating set(s), how many are there, what are they?” “What is the probability of one arbitrary graph G having a perfect dominating set?” The problem of determining if a graph has a perfect dominating set is NP-complete [4] [5] , and the problem remains NP-complete even if the graphs are restricted to 3-regular planar graphs. Thus the problem of determining if a graph has a perfect dominating set is quite difficult. The second question also seems very difficult. For the third question, in 1994 Yue [1] conjectured that almost all graphs do not have a perfect domination set.
For a given tree, Livingston and Stout have obtained linear algorithms to answer the first question and the second question [6] . In this paper, we will focus on and study trees (rooted and unrooted) by using combinatorial computational techniques to answer a part of the second question (how many perfect dominating sets) and the third question from completely different standpoint.
From onwards unless otherwise stated, the trees considered are rooted and unrooted.
We first compute the number of perfect dominating sets among all trees of
order n for each n up to 500 then we calculate the average number of perfect dominating sets per tree of order less than or equal to n for each n up to 500. Since a tree can have at most finite number of perfect dominating sets, if this average number is approaching zero as n gets bigger then we can say that it provides computation evidence of Yue’s conjecture being true for trees.
Unlike other graph counting problems, it appears impossible to obtain recursive formulas for the number of perfect dominating sets among all trees directly. So, instead of using a single generating function, we introduce four interrelated generating functions and obtain recursive formula for each, then we use these formulas to find the number of perfect dominating sets among all trees of order n for each n up to 500. We then calculate the number of trees of order n for each n up to 500 and finally calculate the average number of perfect dominating sets per tree of order less than or equal to n for each n up to 500.
The notation and terminology in this paper follow that in Harary and Palmer [7] and Chartrand [8] . In particular,
is the cycle index for the symmetric group
acting on n objects. This is a polynomial in n variables
. For any generating function
,
is a shorthand representing the substitution
in
.
For related results see [2] and [3] , for terminologies readers are referred to [7] [8] and [9] .
2. Generating Functions for Rooted Trees
In order to compute the number of perfect dominating sets among all rooted trees we would like introduce four generating functions. We let
be the generating function in which
is the number of perfect dominating sets among all rooted trees of order n. Unlike other graph counting problems, it is not possible to obtain recursive formulas for the number of perfect dominating sets among all trees directly, so we introduce other three interrelated generating functions.
Let
(1)
be the generating function in which
is the number of perfect dominating sets among all rooted trees of order n which have the root in the dominating set. (The root is dominated by itself.) We call these rooted trees as perfectly dominated rooted trees of type I.
Let
(2)
be the generating function in which
is the number of perfect dominating sets among all rooted trees of order n which have the root dominated by one of its children. (The root is dominated from inside.) We call these rooted trees as perfectly dominated rooted trees of type II.
We let the forth series be
(3)
In this series
, we would like to count sets that are nearly perfect dominating sets among all rooted trees of order n. For each such a rooted tree T, we should like to count the sets with the property that for each such a set S, with the exception of the root, every vertex is perfectly dominated by a unique vertex in the set S. But the root is neither in S nor is it dominated by any vertex in S. Such a tree T is not perfectly dominated, but it can be a branch in a larger perfectly dominated tree of type I. (The root is dominated from outside.) We call these branches as branches of type B.
Observe that the number of perfect dominating sets among all rooted trees of order n equals the sum of perfectly dominated rooted trees of type I of order n and perfectly dominated rooted trees of type II of order n, i.e.
, since for any perfect dominating set S, the root must either be in S or be dominated by one of its children.
Thus we have
(4)
It may seem that
is not involved in the process of counting the number of perfect dominating sets, but we shall soon see we need it to calculate
and
.
3. Functional Relations among the Counting Series
Our object is to find the number of perfect dominating sets among all rooted trees of order n. In the previous section we saw that this number is equal to
. We first find the functional relations among
and
then generate
and
for every n up to 500.
Theorem 1. For the functions introduced in (1), (2) and (3) the following equations hold:
(5)
(6)
(7)
Proof: First observe that for any rooted tree T, if T has a perfect dominating set, every branch of T must be one of perfectly dominated trees of type I, or perfectly dominated trees of type II or one branch of type B. Also observe that any rooted tree that is perfectly dominated tree of type I, perfectly dominated tree of type II or branch of type B must have the property that it is built by a root and some (maybe none) branches of perfectly dominated tree of type I, or some (maybe none) perfectly dominated tree of type II or some (maybe none) branch type B.
Now we would like to examine the structure of rooted trees of perfectly dominated tree of type I, perfectly dominated tree of type II and branch of type B respectively.
For perfectly dominated tree of type I, any branch of perfectly dominated tree of type I is invalid since otherwise both root of the tree and root of the branch will be in the dominating set, contradicting the property of perfectly dominating set. Any branch of perfectly dominated tree of type II is invalid since otherwise the root of the branch will be dominated twice, contradicting the property of perfectly dominating set. On the other hand, it can have any number of branches of type B. See Figure 2.
This allows us to deduce the Equation (5):
In this expression, the factor x accounts for the root. Each
allows for k branches of type B. Thus the structure shown in Figure 2 leads us to Equation (5).
For rooted trees of perfectly dominated tree of type II, it must have exactly one branch of perfectly dominated tree of type I and the rest of it must be a branch of type B. See Figure 3.
That gives us the Equation (6):
Figure 2. The structure of rooted of perfectly dominated tree of type I.
Figure 3. The structure of rooted of perfectly dominated tree of type II.
Figure 4. The structure of rooted tree of type B.
For a branch type B, any branch of perfectly dominated tree of type I is invalid since otherwise the root of the tree will be dominated, contradicting the property of branch of type B. It can have any number of branches of type type II. It cannot have any branch of type B since otherwise the root of the branch would not be dominated, contradicting the property of rooted tree of type B. See Figure 4.
So we have the Equation (7):
4. Recurrence Relations and Numerical Values for Rooted Trees
Although the following two equations can be derived from (5) and (7) (see [7] ), we would like to use combinatorial arguments to obtain them.
(8)
(9)
See Figure 2 again, we examine the following expression:
In this expression, x counts the root. The number 1 represents no branch of order k; the term
represents one branch of order k,
represents two branches of order k, and so on. The number
represents the number of ways to select a branch of type B of order k.
Then observe that the product of all these is, by the structure of perfectly dominated tree of type I,
. That is Equation (8). By similar arguments, we can get (9).
Knowing that
,
,
, theoretically these recurrence relations allow us to compute
,
,
for any particular n. For example if we want to calculate
,
,
, we only need to know
,
,
for each n up to
.
By using (8), (9) and (6) on on a 64bit-based PC with a CPU process of T4200 (Pentium(R) Dual-Core) and RAM of 4 GB we can determine
,
,
for each n up to 10 in 0.165 seconds, for each n up to 15 in 29.2 seconds and for each n up to 20 in 5719.8 seconds. At n equals 25, the same PC failed to manage the complexity of calculations. In order to determine
,
,
for each n up to 500 more efficiently we need to modify (8), (9) and (6).
In Equation (8) we rewrite the geometric series and then use the binomial theorem with negative exponents to get
Similarly, from (9) we have
Formally expanding the product of two series in (6) gives
To find out the formulas to calculate
,
,
for each n up to 500, we first introduce some notation. Let
be any power series, then
. For example
.
Now suppose we would like to find
and
, then
With the aid of the same computer and Mathematica, these three formulas provide
,
,and
for each n up to 500.
5. Equation and Numerical Values for Unrooted Trees
Now we are in the position to determine the number of perfect dominating sets among all unrooted trees of order p.
We have seen that (4):
is the generating function in which
is the number of perfect dominating sets among all rooted trees of order n.
We let
be the generating function in which
is the number of perfect dominating sets among all unrooted trees of order n.
Theorem 2. The counting series
satisfies
(10)
Proof: We will use the following Theorem (Dissimilarity characteristic theorem for trees) due to Otter [10] and presented in [7] .
For any tree T of order n
(11)
In the equation
is the number of dissimilar vertices of T, or more precisely, the number of equivalence classes of vertices of T under action of the symmetric group of
;
is the number of dissimilar edges of T, or more precisely, the number of equivalence classes of edges of T under action of the symmetric group of
; s is the number of symmetric edges of T under action of the symmetric group of
.
To illustrate the Theorem 2, we look the ordinary tree
and the ordinary tree
both of order 6 in Figure 5.
For tree
,
,
and
, so
. For tree
,
,
and
, hence
.
Observe that each unrooted tree T can give rise to exactly
different rooted trees and each unrooted tree T can be “rooted” at an edge in
different ways. Also observe that for any unrooted tree T, two end vertices of a symmetric edge (if there is any) must be in the center of T. So s equals 0 or 1.
Now we apply Theorem 2 to our tree problem. Sum (11) over all unrooted
Figure 6. Two valid ways of attaching two branches to an edge.
trees that have a perfect dominating set and that have exactly n vertices. The result is
but
and
. Furthermore,
is the number of perfect dominating sets among all trees that are rooted at an edge and have the order of n. There are six possible ways to attach two branches to an rooted edge, i.e.
and
but only two ways are valid. First, if one branch is type R then another branch must be type B. Secondly, if one branch is type C then another branch must be type also C. See Figure 6.
Hence we have
Observe that for a tree that is rooted at an edge and s equals 1, then the two branches attached to the rooted edge must be exactly same two branches of type C, so
Finally, we have
or
Recalling that
and
, we get (10):
We have
and
for every n up to 500 in hand, using (10) we can determine
for each n up to 500.
6. Enumeration Results
Enumeration results of
and
for each n up to 20 are presented in Table 1.
Using similar techniques we calculated the number rooted trees
of order n for each n up to 500 and the number of unrooted trees
of order n for each n up to 500. Then we calculated the average number of perfect dominating sets per rooted tree
of order n for each n up to 500 and the average number of perfect dominating sets per unrooted tree
of order n for each n up to 500.
Table 1. Results of
and
(
).
Let
,
,
,
be the total number of perfect dominating sets among all rooted trees of order less than or equal to n, the total number rooted trees of order less than or equal to n, the total number of perfect dominating sets among all unrooted trees of order less than or equal to n and the total number unrooted trees of order less than or equal to n respectively, if
is approaching zero as n getting larger then we may assert that it is the computational evidence of Yue’s conjecture being true for rooted trees. For the same reason, if
is approaching zero as n getting larger then we may assert that it is the computational evidence of Yue’s conjecture being true for unrooted trees.
We can prove that (see [9] [11] )
is approaching zero as n getting larger whenever
is approaching zero as n getting larger and that
is approaching zero as n getting larger whenever
is approaching zero as n getting larger. Hence if
is approaching zero as n getting larger then we can claim that it is the computational evidence of Yue’s conjecture being true for rooted trees and if
is approaching zero as n getting larger then we can claim that it is the computational evidence of Yue’s conjecture being true for unrooted trees. During the conversation with Paul Erdös, Erdös suggested to look at the nth roots of
and
since these two values can tell us the “rate” of
and
approaching zero.
Results of
,
,
and
for each various n are presented in Table 2.
7. Some Observations and Open Problems
From Table 2 we see
and
are approaching to about same value of 0.88 ... as n getting larger. Can we prove that they are actually convergent to the same limit? Can we find the limit?
We know for a perfect dominating set of rooted tree, the root is either dominated by itself or by one of its children, hence the number of perfect dominating sets among all rooted trees of order n is
(4). We may ask what is the contribution of
(or
) to
? The ratio of
measures the contribution of
to
.
We have seen the average number of perfect dominating sets per rooted tree
is somewhat bigger than the average number of perfect dominating sets per unrooted tree
. Another interesting question to ask is on what percentage
Table 2. Results of
,
,
and
for each various n.
Table 3. Results of
,
for each various n.
does one rooted tree can give rise to more perfect dominating sets than that of one unrooted tree? The ratio of
measures the difference.
Results of
,
for each various n are presented in Table 3. From Table 3 we see about 37% of perfect dominating sets for rooted trees in which the root is dominated by itself. On average per tree, rooted trees can give rise to about 7% more perfect dominating sets than unrooted trees.
In this paper, by introducing multiple interrelated generating function and using combinatorial computation techniques, we are able to compute the number of perfect dominating sets among all trees of order n for each n up to 500. As we observed earlier, a tree may have no perfect dominating set. We can define perfectly dominated tree to be a tree that has at least one perfect dominating set. Thus we can ask a question: “Can we develop an enumeration method to find the number of perfectly dominated trees of order n?” We also observed earlier, a tree may have more than one perfect dominating set. We can define maximal tree of order n to be a tree with largest possible number perfect dominating sets among all trees of order n. Then we can ask other questions: “Can we develop an algorithm to search maximal trees?” “What are characteristics a maximal trees?”