Identifying codes and locating-dominating sets on paths and cycles
††thanks: Supported in part by National Natural
Science Foundation of China (Nos. 60673048 and 10871166) and
Shanghai Leading Academic Discipline Project (No. B407).
**Chunxia Chen **
Changhong Lu111Correspond author. E-mail:
[email protected]
Department of Mathematics
East China Normal University, Shanghai, 200241,
China
**Zhengke Miao
**Department of Mathematics
Xuzhou Normal University, Xuzhou, 221116, China
Abstract
Let G=(V,E) be a graph and let r≥1 be an integer. For a set
D⊆V, define Nr[x]={y∈V:d(x,y)≤r} and
Dr(x)=Nr[x]∩D, where d(x,y) denotes the number of
edges in any shortest path between x and y. D is known as an
r-identifying code (r-locating-dominating set, respectively),
if for all vertices x∈V (x∈V\D, respectively),
Dr(x) are all nonempty and different. In this paper, we provide complete results for r-identifying codes
in paths and odd cycles; we also give complete results for
2-locating-dominating sets in cycles.
Keywords: r-identifying codes; r-locating-dominating sets; cycles; paths.
1 Introduction
We investigate the well-known identifying codes problem which
originated, for instance, from fault diagnosis in multiprocessor
systems. The purpose of fault diagnosis is to test the
multiprocessor system and locate faulty processors. A multiprocessor
system can be modeled as an undirected graph G=(V,E), where V
is the set of processors, E is the set of links in the system.
Specific detectors are executed on certain selected processors to
carry out diagnosis. The selection of these processors is done by
generating the code D that allows for unique identification of
faulty processors. Every processor corresponding to a codeword
vertex tests itself and the processors that are in some areas.
Hence, an optimal code(minimum number of codewords) minimizes the
amount of overhead required to implement fault diagnosis.
More precisely, let G=(V,E) be an undirected graph and let r≥1 be an integer. Assume that D is a subset of V at which we
place detectors. We define Nr[x]={y∈V:d(x,y)≤r}
and Dr(x)=Nr[x]∩D, where d(x,y) denotes the number of
edges in any shortest path between x and y. In this sense,
Dr[x] is the set of all detectors that can detect an attack at
x. We say that D is an r-identifying code (r-IC) in
G if Dr(x)=∅ for every vertex x∈V and
Dr(x)=Dr(y) whenever x=y. In an r-IC, the set of
detectors activated by an attack provides a unique signature that
allows us to determine where the attack took place. We denote the
minimum cardinality of an r-identifying code D of G by MrI(G). Note that not all graphs admit an r-identifying code. A necessary
and sufficient condition to admit an r-identifying code is that
for any pair of distinct vertices x and y we have Nr[x]=Nr[y] ([1]).
We define a closely related concept as follows. If for all vertices
x∈V\D, Dr(x) are all not empty and different,
then we say D is an r-locating-dominating set or r-LD set for short. The smallest d such that there is an r-LD
set of size d is denoted by MrLD(G). The concept was
introduces (for r=1) by Slater [20], motivated by nuclear
power plant safety. It can be used for fault detection in
distributed system. We also note that r-LD sets always exist,
since the entire vertex set of a graph is an r-LD set.
Identifying codes were introduced in [16], locating-dominating
sets in [12]. The literature about r-identifying codes and
r-locating-dominating sets has become quite extensive. There are
now numerous papers dealing with identifying codes and
local-dominating sets (see for instance [17] for an
up-to-date bibliography). The problems of finding optimal r-ICs
or r-LDs in a graph are NP-complete (see [6, 10, 11, 12]). On the other hand, many special graphs have been
investigated (see for instance,
[2, 3, 4, 5, 7, 9, 14, 15, 19]). In this paper we are
interested in studying r-IC for cycles and paths and and 2-LD
sets for cycles. This subject was already investigated in
[1, 13, 18, 20, 21]. Let Pn (Cn, respectively) be a path
(cycle, respectively) of n vertices. For r=1, the exact values
of M1I(Pn) and M1I(Cn) for even cycles was given by
[1]; Gravier et al. [13] gave the exact values of
M1I(Cn) for odd cycles. Its analogue for 1-LD sets was given
by Slater [20]. For r=2, complete solution for M2I(Cn)
and M2I(Pn) was provided in [18]. Bertand et al.
[1] provided complete results about M2LD(Pn) and gave
the exact value of M2LD(Cn) for n=6k. For all r≥1,
complete results about r-ICs for even cycles are provided in
[1]; Partial results about r-ICs for paths and odd cycles
can be found in [1, 13, 21].
The structure of this paper is the following. Motivated by the
method in [18], in Section 2 we give all values of
MrI(Cn) for odd cycle Cn.
In Section 3 we provide complete results for r-identifying codes
in paths. In Section 4 we find the values of M2LD(Cn).
2 r-identifying codes for odd cycle Cn
In the following, we assume that the vertices of Cn have labeled
consecutively as x1,x2,⋯,xn. When we are dealing with a
cycle, we also use addition and subtraction modulo n, so that, for
example, x5n+2 means x2. The case n even is solved in
[1], and it is obvious that MrI(Cn) is undefined for
n≤2r+1. Hence, we assume that n≥2r+3.
Lemma 1
Suppose graph G has maximum degree 2, y1,y2,⋯,y2r+2
is a path in G, and D is an r-IC for G. Then it is
impossible to have y1∈D and y2r+2∈D.
**Proof **
If y1∈D and y2r+2∈D, then
Dr(yr+1)=Dr(yr+2). □
Lemma 2
*If n≥4r+2, D is an r-IC for Cn if and only if
(1) xi∈D or xi+2r+1∈D for all i∈{1,⋯,n};
(2) there are no 2r+1 consecutive vertices none of which is in
D.*
**Proof **
(⇒:) As Dr(x)=∅ for all x∈V,
condition (2) is necessary. Necessity of condition (1) follows from
Lemma 1.
(⇐:) Condition 2 implies that Dr(x)=∅ for each x∈V.
Now we show that Dr(xi)=Dr(xj) whenever i=j.
Without loss of generality, we can assume that (A) i<j and the
distance from xi to xj is no larger in a clockwise direction
around the cycle than in a counterclockwise direction. xi−r=xi+r+1 since n≥4r+2 (In fact, n≥2r+2 is sufficient).
By condition (1), either xi−r∈D or xi+r+1∈D. If i+1≤j≤i+2r+1, this implies that Dr(xi)=Dr(xj). If
j>i+2r+1, apply condition (2) and (A), we know that
{xi−r,xi−r+1,⋯,xi,⋯,xi+r}∩D=∅, and hence Dr(xi)=Dr(xj).
□
Theorem 3
*For the cycle C2k+1, let k=(2r+1)p+q with p≥1 and q∈{0,1,⋯,2r}.
(a) MrI(C2k+1)=gcd(2r+1,2k+1)⌈2gcd(2r+1,2k+1)2k+1⌉ if gcd(2r+1,2k+1)=1;
(b) MrI(C2k+1)=k+2 if gcd(2r+1,2k+1)=1 and q=0, 2r;
(c) MrI(C2k+1)=k+1 if otherwise.*
**Proof **
By Lemma 2, we have the constraint xi∈D or xi+2r+1∈D for i=1,⋯,2k+1, then there are 2k+1 such
constraints and each xi is a term in exactly two of them. Thus,
if D has d vertices, at most 2d such constrains are satisfied.
It follows that D must have at least k+1 vertices, i.e.,
∣D∣≥k+1.
For notational convenience, we abbreviate xi by i and xi∈D or xj∈D by i∨j in the constraints. Choose i∈{1,⋯,2r+1}, consider the following stream of constraints,
which we call stream i:
[TABLE]
where i+gi(2r+1)≤2k+1<i+(gi+1)(2r+1)≡hi (mod(2k+1)) and hi∈{1,2,⋯,2r+1}.
Suppose k=(2r+1)p+q, where q∈{0,1,⋯,2r}. It is easy to know that h1=1 if and only if k=(2r+1)p+r.
Then stream 1 leads into stream h1, which leads into stream
hh1, and so on, end with last hi=1. For example, k=10 and
r=2, stream 1: 1∨6∨11∨16∨21∨5 which
leads into stream 5: 5∨10∨15∨20∨4, it leads into
stream 4, and so on, end with stream 1. When gcd(2r+1,2k+1)=1, putting the stream together in this order gives us
all constraints, and we call it full constraint stream. When
gcd(2r+1,2k+1)=1, it gives us a full stream, we call full
stream 1, which contains gcd(2r+1,2k+1)2k+1
constraints and gcd(2r+1,2k+1)2k+1+1 vertices (where
two 1s), similarly, we can get full stream 2, full stream 3,
⋯, full stream gcd(2r+1,2k+1). For example, if k=10 and
r=4, gcd(2r+1,2k+1)=3, full stream 3 is given by 3∨12∨21∨9∨18∨6∨15∨3.
Now we consider the case gcd(2r+1,2k+1)=1. In this case,
there are gcd(2r+1,n) full streams and each full stream has
gcd(2r+1,2k+1)2k+1 constraints, thus we need at least
⌈2gcd(2r+1,2k+1)2k+1⌉ vertices from each to be
put into D, which follows that ∣D∣≥gcd(2r+1,2k+1)⌈2gcd(2r+1,2k+1)2k+1⌉. Note that
gcd(2r+1,2k+1)2k+1 is odd, hence each full stream has
even vertices. Let us denote fij the j-th vertex of full
stream i for 1≤i≤gcd(2r+1,2k+1) and 1≤j≤gcd(2r+1,2k+1)2k+1+1. Let D={fij: 1≤i≤gcd(2r+1,2k+1), 1≤j≤gcd(2r+1,2k+1)2k+1+1, i+j
is odd }.
It is easy to check that D satisfies the conditions in Lemma
2, and hence D is an r-IC of C2k+1 with
gcd(2r+1,2k+1)⌈2gcd(2r+1,2k+1)2k+1⌉ vertices.
The proof of (a) is complete. In the following, we assume that
gcd(2r+1,2k+1)=1.
We first consider the case q=2r. In this case, the full
constraint stream consists of stream 1, stream 2, ⋯,
stream 2r+1 in turn.
Suppose D is an r-IC with ∣D∣=k+1. Since the full constraint
stream has 2k+1 constraints and each vertex is in exactly two
constraints, then if we can satisfy all the constraints with k+1
vertices of D, there must be exactly one constraint where both
vertices are in D, and all other constraints have exactly one of
their vertices in D. Without loss of generality, we assume that
1∈D and 1+(2r+1)∈D. Then, the rest of the membership of
D is forced upon us:
∙ from stream 1: use vertices 1 and 1+z(2r+1), z is odd;
∙ from stream i: use vertices i+z(2r+1), z is odd, for i=2,3,⋯,2r+1.
This satisfies condition (1) of Lemma 2 and uses k+1
vertices. However, when p≥1, condition (2) of Lemma 2
is violated, since then 1+2(2r+1),2+2(2r+1),⋯,(2r+1)+2(2r+1)
are
not in D. So, we conclude that MrI(C2k+1)≥k+2. Now we construct an r-IC with k+2 vertices as follows:
∙ stream i: select vertices i+z(2r+1), z is odd, i=r+1;
∙ stream r+1: select vertices r+1+z(2r+1), z is even;
∙ add vertices 1 and r+1+(2p+1)(2r+1).
We now turn to the case q=0. In this case, k=(2r+1)p and p≥1. The full constraint stream consists of stream 2r+1, stream
2r, ⋯, stream 1 in turn. Similar to the case q=2r, we
can prove that MrI(C2k+1)≥k+2. We construct an r-IC D with k+2 vertices as follows:
∙ stream i: select vertices i+z(2r+1), z is odd, i=1,2r+1;
∙ stream j: select vertices j+z(2r+1), z is even, j=2,3,⋯,2r.
∙ add vertices 1 and 1+2p(2r+1).
We now turn to the case 1≤q≤r−1. In this case, we just need to construct an r-IC D with ∣D∣=k+1. As
discussion above, if we select 1 and 1+(2r+1) into D, then
the other vertices of D are fixed. Now we prove that D satisfies
two conditions of Lemma 2, and hence D is an r-IC.
Obviously, it satisfies condition (1) of Lemma 2. We just
need to show it satisfies condition (2) of Lemma 2, i.e.
there are no 2r+1 consecutive vertices none of which is in D.
Suppose to the contrary that i+g(2r+1),i+1+g(2r+1),⋯,2r+1+g(2r+1),1+(g+1)(2r+1),⋯,i−1+(g+1)(2r+1)∈D
for some i∈{1,2,⋯,2r+1} and g∈{0,1,⋯,2p}. If
i=1, then 1+g(2r+1),2+g(2r+1),⋯,2r+1+g(2r+1)∈D. Since 1,1+(2r+1) are selected into D, then
1+z(2r+1)∈D for all odd z≤2p. So g must be even. On the
other hand, stream 1:1∨1+(2r+1)∨⋯∨1+2p(2r+1)∨2r−2q+1, leads into stream 2r−2q+1, and 2r−2q+1+z(2r+1)∈D
for all even z≤2p, it contradicts that g is even and
2r−2q+1+g(2r+1)∈D. So, i>1. Since 1+(g+1)(2r+1)∈D, hence g is odd.
As 2r−2q+1+z(2r+1)∈D for all even z≤2p, we know that
2r−2q+1≥i. If 2r−2q+1≤2q+1, then stream 2r−2q+1
leads into stream 4r−4q+1 and 4r−4q+1+z(2r+1)∈D for all odd
z≤2p, thus, 4r−4q+1<i. It contradicts that 2r−2q+1≥i.
So, 2r−2q+1>2q+1. Then stream 2r−2q+1 leads into stream 2r−4q
and 2r−4q+z(2r+1)∈D for all even z≤2p. Therefore, 2r−4q≥i. Similarly, we can show that 2r−4q>2q+1 and stream 2r−4q
leads into stream 2r−6q−1. Let m0 be the minimum integer such
that 2+2r−m0(2q+1)≤max{i,2q+1}.
We have that: stream 1⇒ stream 2r+2−(2q+1)⇒ stream 2r+2−2(2q+1)⇒⋯⇒
stream 2r+2−(m0−1)(2q+1)⇒ stream 2r+2−m0(2q+1). By
the selection of m0, we know that 2r+2−m(2q+1)+z(2r+1)∈D for
all 1≤m≤m0 and all even z≤2p. Hence,
2r+2−m0(2q+1)≥i and it implies that 2r+2−m0(2q+1)≤2q+1.
Therefore, stream 2r+2−m0(2q+1) leads into stream
4r−2q+2−m0(2q+1) and 4r−2q+2−m0(2q+1)+z(2r+1)∈D for all odd
z≤2p. So, we know that 4r−2q+2−m0(2q+1)<i. It contradicts
that 2r+2−m0(2q+1)≥i.
So, there are no 2r+1 consecutive vertices none of which is in
D, and hence D is an r-IC. Therefore, MrI(C2k+1)=k+1
in this case.
Note that gcd(2k+1,2r+1)=1 implies that q=r. At last, we
consider the case r+1≤q≤2r−1. In this case,
2k+1=(2p+1)(2r+1)+2(q−r). We just need to construct an r-IC D
with ∣D∣=k+1. As discussion above, if we select 2r+1 and
2r+1+(2r+1) into D, then the other vertices of D are fixed.
Obviously, D satisfies condition (1) of Lemma 2. We just
need to show that there are no 2r+1 consecutive vertices none of
which is in D. Suppose to the contrary that i+g(2r+1),i+1+g(2r+1),⋯,2r+1+g(2r+1),1+(g+1)(2r+1),⋯,i−1+(g+1)(2r+1)∈D for some i∈{1,2,⋯,2r+1} and g∈{0,1,⋯,2p+1}. Since 2r+1 and 2r+1+(2r+1) are selected
into D, 2r+1+z(2r+1)∈D for all odd z≤2p. Hence, g is
even.
If i=1, then 1+g(2r+1),2+g(2r+1),⋯,2r+1+g(2r+1)∈D. Consider stream 2r+1:2r+1∨2r+1+(2r+1)∨⋯∨2r+1+2p(2r+1)∨4r−2q+1, which leads into stream 4r−2q+1,
and 4r−2q+1+z(2r+1)∈D for all even z≤2p+1, it contradicts
that g is even and 4r−2q+1+g(2r+1)∈D. Hence i>1.
As 4r−2q+1+z(2r+1)∈D for all even z≤2p+1, we know that
4r−2q+1<i. If 4r−2q+1>2(q−r), then stream 4r−2q+1 leads
into stream 6r−4q+1 and 6r−4q+1+z(2r+1)∈D for all odd z≤2p+1, thus, 6r−4q+1≥i. It contradicts that 4r−2q+1<i. So,
4r−2q+1≤2(q−r), then stream 4r−2q+1 leads into stream
8r−4q+2 and 8r−4q+2+z(2r+1)∈D for all even z≤2p+1.
Therefore, 8r−4q+2<i. Similarly, we can show that 8r−4q+2≤2(q−r) and stream 8r−4q+2 leads into stream 12r−6q+3. The
following proof is similar to that of the case 1≤q≤r−1. The
detail is left to readers. □
Lemma 4
If 3r+2≤n≤4r+1, D is a r-IC for Cn if and only if
xi∈D or xi+2r+1∈D for all i∈{1,⋯,n}.
**Proof **
Necessity follows from Lemma 1. We shall now observe
sufficiency. Assume that Dr(xi)=∅ for some xi∈V.
Then, none of vertices in {xi−r,xi−r+1,⋯,xi+r} is in
D. As xi∈D or xi+2r+1∈D for all i∈{1,⋯,n}, it follows that these vertices
xi+r+1,xi+r+2,⋯,xi+3r+2 are all contained in D.
This contradicts that n≤4r+1. Hence, Dr(xi)=∅
for all xi∈Cn. The proof of Dr(xi)=Dr(xj) ( i=j) is same as that in Lemma 2, and hence omitted in here.
□
Using Lemma 4, we can prove the following theorem, which
has been shown by Gravier et al. (cf. Theorem 7 in [13]). The
proof is similar to partial proof of Theorem 3, and
omitted in here.
Theorem 5
(cf. Theorem 7 in
[13]) MrI(C2k+1)=gcd(2r+1,2k+1)⌈2gcd(2r+1,2k+1)2k+1⌉ for
3r+2≤2k+1≤4r+1.
Next, we discuss the value of MrI(Cn) for 2r+5≤n≤3r+1,
which is the remainder case in [1, 13, 21]. A lemma is given
firstly as follows.
Lemma 6
*If 2r+5≤n≤3r+1, let n=2r+1+q (4≤q≤r),
D is an r-IC for Cn if and only if
(1) xi∈D or xi+q∈D for all i∈{1,⋯,n};
(2) there is at most one set {xi+1,xi+2,⋯,xi+q}
such that none of which is in D.*
**Proof **
(⇒:) Suppose to the contrary that xi∈D and
xi+q∈D. Since Nr[xi−r−1]=V\{xi,xi+1,⋯,xi+q−1} and Nr[xi−r]=V\{xi+1,xi+2,⋯,xi+q}, this leads to the equality
Dr(xi−r−1)=Dr(xi−r), a contradiction. If there exist two
distinct sets {xi+1,xi+2,⋯,xi+q} and {xj+1,xi+2,⋯,xj+q} such that none of which is in D, then
Dr(xi−r)=Dr(xj−r), which follows from Nr[xi−r]=V\{xi+1,xi+2,⋯,xi+q} and Nr[xj−r]=V\{xj+1,xj+2,⋯,xj+q}.
(⇐:) For every vertex xi∈V, Nr[xi]={xi−r,xi−r+1,⋯,xi+r}. As q≤r, both xi and
xi+q are in Nr[xi], and by condition (1), we can conclude
that Dr(xi)=∅. For distinct vertices xi and
xj, without loss of generality, we assume that i<j and the
distance from xi to xj in a clockwise direction around the
cycle is no larger than in a counterclockwise direction. If i+1≤j≤i+q, we have xi+r+1∈Nr[xj]\Nr[xi] and xi+r+q+1∈Nr[xi]\Nr[xj]. Hence,
by condition (1), Dr(xi)=Dr(xj). Assume that j>i+q.
Let A={xi+r+1,xi+r+2,⋯,xi+r+q} and B={xj+r+1,xj+r+2,⋯,xj+r+q}. Then Nr[xi]=V\A and Nr[xj]=V\B. Since j>i+q and
the distance from xi to xj in a clockwise direction around
the cycle is no larger than in a counterclockwise direction, it
implies that A∩B=∅. By condition (2), either
A∩D=∅ or B∩D=∅ holds. Without
loss of generality, we assume that A∩D=∅ and
xi+r+t∈D for some t∈{1,2,⋯,q}. Then
xi+r+t∈Dr(xi), but xi+r+t∈Dr(xj) as
A∩B=∅.
Hence, we have that Dr(xi)=Dr(xj). □
Theorem 7
*For the cycle C2k+1 with 2r+5≤2k+1≤3r+1, let 2k+1=2r+1+q=lq+m, where l≥3 is an integer and m∈{0,1,⋯,q−1}, then
(1) MrI(C2k+1)=k+2 if l is odd, m=q−1, 2k+1≥5q or
l is even, m=1;
(2) MrI(C2k+1)=gcd(q,2k+1)⌈2gcd(q,2k+1)2k+1⌉ if otherwise.*
**Proof **
Since 2k+1=2r+1+q=lq+m, then q is even, and hence m is
odd. Let D be an r-IC for C2k+1, by Lemma 6, it
must satisfy 2k+1 constraints: xi∈D or xi+q∈D for
i=1,2,⋯,2k+1. Similarly, we abbreviate xi by i and
xi∈D or xj∈D by i∨j in the constraints. For i∈{1,2,⋯,q}, we define stream i as follows:
[TABLE]
where i+giq≤2k+1<i+(gi+1)q≡hi (mod(2k+1)) and hi∈{1,2,⋯,q}.
Then stream 1 leads into stream h1, which leads into stream
hh1, and so on, end with last hi=1. When gcd(q,2k+1)=1, it gives us a full stream, denoted by full stream 1,
which contains gcd(q,2k+1)2k+1 constrains and
gcd(q,2k+1)2k+1+1 vertices (where two 1s). Similarly,
we can get full stream 2, ⋯, full stream
gcd(q,2k+1). There are gcd(q,2k+1) full streams and each full
stream contains gcd(q,2k+1)2k+1 constrains and
gcd(q,2k+1)2k+1+1 vertices (where two is for 1≤i≤gcd(q,2k+1)). To satisfy all constrains, we need at least
2gcd(q,2k+1)2k+1 vertices from each full stream to be
put into D. This follows that ∣D∣≥gcd(q,2k+1)⌈2gcd(q,2k+1)2k+1⌉.
Let us denote fij the j-th vertex of full stream i for 1≤i≤gcd(q,2k+1) and 1≤j≤gcd(q,2k+1)2k+1+1.
Since 2k+1 is odd, thus each full stream has even vertices. Let
D={fij: 1≤i≤gcd(q,2k+1), 1≤j≤gcd(q,2k+1)2k+1+1, i+j is odd }. It is easy to see
that D satisfies conditions of Lemma 6. Hence, D is an
r-IC
with ∣D∣=gcd(q,2k+1)⌈2gcd(q,2k+1)2k+1⌉.
We now turn to the case gcd(q,2k+1)=1. gcd(q,2k+1)=1
implies that there is only one full stream, which contains 2k+1
constraints. We discuss it as the following cases.
Case 1. m=q−1, 2k+1=lq+q−1.
In this case, the full stream consists of stream 1, stream 2, ⋯, stream q in turn.
Suppose that D is an r-IC for C2k+1 with ∣D∣=k+1. Since there are
2k+1 constraints, there must be exactly one constraint where both
vertices are in D, and all other constraints have exactly one of
their vertices in D. Without loss of generality, we take 1 and
1+q in D, then the rest of the membership of D is forced upon
us. If l is even, the membership of D is just the following
vertices:
∙ from stream i: use vertices i+zq, where the parity of
i and z is the same, for i=1,2,⋯,q.
It is easy to check that there are no q consecutive vertices none
of which is in D. By Lemma 6, D is an r-IC with
∣D∣=k+1.
If l is odd, the membership of D is just the following
vertices:
∙ from stream i: use vertices i+zq, z is odd, i=1,2,3,⋯,q.
If l is odd and 2k+1<5q, i.e., 2k+1=4q−1, then D satisfies
conditions of lemma 6. Hence, D is also an r-IC with
∣D∣=k+1. However, when l is odd and 2k+1≥5q, condition (2)
of Lemma 6 is violated, there exist two sets {1+2q,2+2q,⋯,q+2q} and {1+4q,2+4q,⋯,q+4q} such that
none of which is in D. Then D is not an r-IC. So, we conclude
that MrI(C2k+1)≥k+2. Now we construct an r - IC with k+2 vertices as follows:
∙ from stream i: use vertices i+zq, z is odd and i=2q+1;
∙ from stream 2q+1: use vertices 2q+1+zq, z is even;
∙ add the vertex 2q+1+lq.
Case 2. m=1,2k+1=lq+1.
In this case, the full stream consists of stream q, stream q−1,
⋯, stream 1 in turn. We can also prove that
MrI(C2k+1)=k+1 if l is odd and MrI(C2k+1)≥k+2 if
l is even. The proof is analogous with case 1 and is omitted in
here. If l is even, we can construct an r-IC with k+2
vertices as follows:
∙ from stream i: use vertices i+zq, z is odd and i=2q+1;
∙ from stream 2q+1: use vertices 2q+1+zq, z is even.
Case 3. 1<m<q−1,2k+1=lq+m
Let D denote an r-IC for C2k+1 with k+1 vertices. When l is odd, without loss of generality, we
take q and 2q in D, the rest of the membership of D is
forced upon us, and condition (1) of Lemma 6 holds. Next,
we prove that there are no q consecutive vertices none of which
is in D. i.e., D satisfies a stronger property than condition
(2) of Lemma 6. Suppose to the contrary that i+pq,i+1+pq,⋯,q+pq,1+(p+1)q,2+(p+1)q,⋯,(i−1)+(p+1)q∈D for some i∈{1,2,⋯,q} and p∈{0,1,⋯l}. By
the selection of D, we know that q∈D and q+zq∈D for all
odd z≤l. So, p is an even positive integer. If i=1, it
implies that 1+pq,2+pq,⋯,q+pq∈D. Stream q:q∨2q∨⋯∨lq∨q−m, leads into stream q−m, and
q−m+zq∈D for all even z≤l, it contradicts that p is
even and q−m+pq∈D. Hence, i>1.
Since q−m+zq∈D for all even z≤l, then q−m≤i−1. If
q−m>m, then stream q−m leads into stream q−2m, and q−2m+zq∈D for all odd z≤l. Thus, q−2m≥i. It contradicts
that q−m≤i−1. Hence, q−m≤m. Then stream q−m leads
into stream 2q−2m, and 2q−2m+zq∈D for all even z≤l.
Therefore, 2q−2m≤i−1. Similarly, we have 2q−2m≤m and
stream 2q−2m leads into stream 3q−3m. Let t0 be the minimum
integer such that t0(q−m)>max{i−1,m}. We have that: stream q⇒ stream q−m⇒ stream 2(q−m))⇒
⋯⇒ stream (t0−1)(q−m)⇒ stream
t0(q−m). By the selection of t0, we know that t(q−m)+zq∈D
for all 1≤t≤t0 and all even z≤l. Hence, t0(q−m)≤i−1 and it implies that t0(q−m)>m. Therefore, stream t0(q−m)
leads into stream t0(q−m)−m and t0(q−m)−m+zq∈D for all odd
z≤l. So, we know that t0(q−m)−m≥i. It contradicts that
t0(q−m)≤i−1.
So, there are no q consecutive vertices none of which is in
D, and hence D is an r-IC with k+1 vertices.
When l is even, without loss of generality, we take 1 and 1+q
in D, the rest of the membership of D is forced upon us. The
remainder proof is analogous and is omitted in here.
\hfill□
The value of MrI(C2r+3) was first obtained in [13]. We
present them here for completeness.
Theorem 8
(cf Theorem 5 in [13])
MrI(C2r+3)=⌊34r+6⌋ for all r≥1.
**Proof **
Let D be an r-IC of C2r+3. For all i we have
DrI(xi−r−1)=D\{xi,xi+1}. Thus, the two
following assertions are true:
(a) there is at most a pair {xi,xi+1} such that xi∈D
and xi+1∈D;
(b) there is no pair {xi,xi+2} such that xi∈D and
xi+2∈D. (For otherwise,
DrI(xi−r−1)=DrI(xi−r)).
Let us then partition the vertices of C2r+3 into blocks of
three consecutive vertices, plus possibly one block consisting in
one or two vertices. If there is a pair {xi,xi+1} such that
xi∈D and xi+1∈D, then we can partition the
vertices such that xi and Xi+1 are not in the same block. By
(a) we know that there is at most one such pair. By (b), any
three-element block of the partition contains at least one vertex in
D. This leads to the inequality MrI(C2r+3)≥⌊34r+6⌋.
Now we construct an r-IC of C2r+3 to attaint this bound.
∙ 2r=0(mod 3), D={xi∣i=1(mod 3) or 2(mod 3)};
∙ 2r=1(mod 3), D={xi∣1≤i≤2r+2,i=1(mod 3) or
2(mod 3)};
∙ 2r=2(mod 3), D={xi∣1≤i≤2r+1,i=1(mod 3) or 2(mod 3)}∪{x2r+3}.
\hfill□
3 r-identifying codes for path Pn
We turn now to the path Pn. We assume that the vertices of
Pn have labeled consecutively as x1,x2,⋯,xn. First it
is easy to know that MrI(Pn) is undefined if and only if n≤2r. In the following, we assume that n≥2r+1.
Lemma 9
If D is an r-IC for Pn, then xr+2,xr+3,⋯,x2r+1∈D and xn−r−1,xn−r−2,⋯,xn−2r∈D.
**Proof **
For i=1,2,⋯,r, Dr(xi)=Dr(xi+1) implies that
xi+r+1∈D, and Dr(xn−i)=Dr(xn−i+1) implies that
xn−r−i∈D. \hfill□
Lemma 10
*If n≥2r+1, D is an r-IC for Pn if and only if the
following conditions holds:
(1) there are no 2r+2 consecutive vertices with the first and last
not in D;
(2) there are no 2r+1 consecutive vertices none of which is in
D;
(3) {xr+2,xr+3,⋯,x2r+1}⊆D and
{xn−r−1,xn−r−2,⋯,xn−2r}⊆D.
(4) {x1,x2,⋯,xr+1}∩D=∅ and
{xn,xn−1,⋯,xn−r}∩D=∅.*
**Proof **
(⇒:) Necessity of (1) follows from Lemma 1,
and necessity of (2) follows from Dr(x)=∅ for every
vertex x∈V. Necessity of (3) follows from Lemma 9, and
necessity of (4) follows from Dr(x1)=∅ and
Dr(xn)=∅.
(⇐:) By conditions (2), (3) and (4), Dr(x)=∅ for
every vertex x∈V. Consider xi and xj, without loss of
generality, we assume that i<j. If i+1≤j≤i+2r+1 and
i>r, by condition (1), either xi−r∈D or xi+r+1∈D holds, and hence Dr(xi)=Dr(xj). If i+1≤j≤i+2r+1 and i≤r, by condition (3), we have xi+r+1∈D,
and hence Dr(xi)=Dr(xj). If j>i+2r+1 and i>r, by
condition (2), {xi−r,xi−r+1,⋯,xi+r}∩D=∅, so Dr(xi)=Dr(xj). If j>i+2r+1 and i≤r, by condition (4), {x1,x2,⋯,xr+1}∩D=∅, so Dr(xi)=Dr(xj). \hfill□
Lemma 10 allows us to proceed for a path much as we did
with cycle. Constraint streams are again the focus of our argument.
Similarly, we use i as an abbreviation for vertex xi and we
modify the definition of constraint stream i to omit the last term
hi. i.e., we define stream i as follows:
[TABLE]
where i+gi(2r+1)≤n and 1≤i≤2r+1.
The following theorem gives all results for MrI(Pn).
Theorem 11
*Let n=(2r+1)p+q, p≥1, q∈{0,1,2,⋯,2r}.
(1) If q=0, then MrI(Pn)=2(2r+1)p+1 if p is
even; MrI(Pn)=2(2r+1)(p−1)+2r if p is odd.
(2) If 1≤q≤r+1, then MrI(Pn)=2(2r+1)p+q
if p is even; MrI(Pn)=2(2r+1)(p−1)+2r+1 if p is
odd.
(3) If r+2≤q≤2r, then MrI(Pn)=2(2r+1)p+q−1 if p is even; MrI(Pn)=2(2r+1)(p−1)+2r+1 if p is odd.*
**Proof **
Let D be an r-IC for Pn. We first discuss the case q=0.
(1) If q=0, then r+2,r+3,⋯,2r+1,1+(p−1)(2r+1),2+(p−1)(2r+1),⋯,r+(p−1)(2r+1)∈D, which follows from
condition (3) of Lemma 10. For i∈{1,2,⋯,2r+1}, the constraint stream i is given as follows: i∨i+(2r+1)∨⋯∨i+(p−1)(2r+1).
To satisfy condition (4) of Lemma 10, there are four possible cases:
(1A) r+1∈D and r+1+(p−1)(2r+1)∈D;
(1B) i∈D for some i∈{1,2,⋯,r} and r+1+(p−1)(2r+1)∈D;
(1C) r+1∈D and j+(p−1)(2r+1)∈D for some j∈{r+2,r+3,⋯,2r+1};
(1D) i∈D for some i∈{1,2,⋯,r} and j+(p−1)(2r+1)∈D
for some j∈{r+2,r+3,⋯,2r+1}.
First consider the case (1A). For each stream i (i∈{1,2,⋯,r}), we have already taken i+(p−1)(2r+1) into D,
satisfying the last constrain, and there are p−2 remaining
constraints. So, we need take at least
⌈2p−2⌉ vertices from each stream
i (i∈{1,2,⋯,r}) into D to satisfy the remaining
constraint. Turn to stream r+1, since r+1 and r+1+(p−1)(2r+1)
are already put in D, satisfying the first and last constraints in
stream r+1, so, we need at least ⌈2p−3⌉ to
satisfy the remaining constraints. Similarly, it requires at least
⌈2p−2⌉ vertices to satisfy the remaining
constraints in each stream i for i=r+2,r+3,⋯,2r+1. Hence,
we need at least
2r+2+⌈2p−3⌉+2r⌈2p−2⌉
vertices in all.
Now we consider the case (1B). For stream i, we have already taken
i and i+(p−1)(2r+1) into D, satisfying the first and the last
constrains, then we need at least ⌈2p−3⌉
vertices to satisfy the remaining constraints. For each of the
other streams, we need at least ⌈2p−2⌉ vertices
to satisfy the remaining constraints. Thus, we need at least
2r+2+⌈2p−3⌉+2r⌈2p−2⌉
vertices.
We now turn to the case (1C). For stream j, we have already taken
j and j+(p−1)(2r+1) into D, satisfying the first and the last
constrains, then we need at least ⌈2p−3⌉
vertices to satisfy the remaining constraints. For each of the
other streams, we need at least ⌈2p−2⌉ vertices
to satisfy the remaining constraints. Thus, we need at least
2r+2+⌈2p−3⌉+2r⌈2p−2⌉
vertices.
At last we consider the case (1D). For stream i, we have already taken i and i+(p−1)(2r+1) into D,
satisfying the first and the last constrains, then we need at least
⌈2p−3⌉ vertices to satisfy the remaining
constraints. For stream j, similarly, we need at least
⌈2p−3⌉ vertices to satisfy the remaining
constraints. For stream r+1, we need at leat
⌈2p−1⌉ vertices to satisfy its constrains. For
each of the other streams, we need at least
⌈2p−2⌉ vertices to satisfy the remaining
constraints. Hence, we need at least
2r+2+2⌈2p−3⌉+(2r−2)⌈2p−2⌉+⌈2p−1⌉
vertices.
Finally, comparing the required minimum number of D in
all four cases, we see that when p is even, the minimum is
2(2r+1)p+1, which is achieved in both cases (1A), (1B)
and (1C) and when p is odd, the minimum is
2(2r+1)(p−1)+2r, which is achieved in case (1D).
Next, we construct an r-IC, achieving the bound as follows:
When p is even,
∙ from stream i: use vertices i+z(2r+1), where z is even, for
i=1,r+2,r+3,⋯,2r+1;
∙ from stream j: use vertices j+z(2r+1), where
z is odd, for j=2,3,⋯,r+1;
∙ add the vertex 1+(p−1)(2r+1).
When p is odd,
∙ from stream i: use vertices i+z(2r+1), where z is even, for i=1,r+2,r+3,⋯,2r+1;
∙ from stream j: use vertices j+z(2r+1), where z is
odd, for j=2,3,⋯,r+1;
∙ add vertices i+(p−1)(2r+1) for i=2,3,⋯,r.
(2) If 1≤q≤r+1, then r+2,r+3,⋯,2r+1,q+1+(p−1)(2r+1),q+2+(p−1)(2r+1),⋯,q+r+(p−1)(2r+1)∈D,
which follows from condition (3) of Lemma 10. For i∈{1,2,⋯,q}, the constraint stream i is given as follows: i∨i+(2r+1)∨⋯∨i+p(2r+1). For i∈{q+1,⋯,2r+1}, the constraint stream i is given as follows: i∨i+(2r+1)∨⋯∨i+(p−1)(2r+1).
To satisfy condition (4) of Lemma 10, there are four possible cases:
(2A) i∈D for some i∈{1,⋯,q} and j+p(2r+1)∈D for some j∈{1,⋯,q};
(2B) i∈D for some i∈{1,⋯,q} and j+(p−1)(2r+1)∈D for some j∈{q+r+1,⋯,2r+1};
(2C) i∈D for some i∈{q+1,⋯,r+1} and j+p(2r+1)∈D for some j∈{1,⋯,q};
(2D) i∈D for some i∈{q+1,⋯,r+1} and j+(p−1)(2r+1)∈D for some j∈{q+r+1,⋯,2r+1}.
First consider the case (2A). We first discuss the situation i=j. For stream i, we have already taken i into D, satisfying
the first constrain in stream i, and hence we need take at least
⌈2p−1⌉ vertices from stream i to satisfy
remaining constraints. For stream j, we have already taken
j+p(2r+1) into D, satisfying the last constrain in stream j,
and hence we need take at least ⌈2p−1⌉
vertices from stream j to satisfy remaining constraints. For each
stream t with t∈{1,⋯,q}\{i,j}, we need
take at least
⌈2p⌉ vertices into D to satisfy its
constraint. For each stream t with t∈{q+1,⋯,r+1}, we
have already taken the vertex t+(p−1)(2r+1) into D, satisfying
the last constrain in stream t, and there are p−2 remaining
constraints. Hence, we need take at least ⌈2p−2⌉ vertices from stream t to satisfy remaining
constraints. For each stream t with t∈{r+2,⋯,r+q}, we
have already taken t and t+(p−1)(2r+1) into D, satisfying the
first and the last constrains in stream t, and there are p−3
remaining constraints. Hence, we need take at least ⌈2p−3⌉ vertices from stream t to satisfy remaining
constraints. For each stream t with t∈{r+q+1,⋯,2r+1},
we have already taken t into D, satisfying the first in stream
t. Hence, we need take at least ⌈2p−2⌉
vertices to satisfy remaining constraints. Therefore, we need at
least
2r+2+(q−2)⌈2p⌉+2⌈2p−1⌉+(2r−2q+2)⌈2p−2⌉+(q−1)⌈2p−3⌉ vertices in all.
We now discuss the situation i=j. For stream i, we have already
taken i and i+p(2r+1) into D, satisfying the first and the
last constrains in stream i, and hence we need take at least
⌈2p−2⌉ vertices from stream i to satisfy
remaining constraints. For each stream t with t∈{1,⋯,q}\{i}, we need take at least
⌈2p⌉ vertices into D to satisfy its
constraint. For each stream t with t∈{q+1,⋯,2r+1}, the
discussion is same as above. Therefore, we need at least
2r+2+(q−1)⌈2p⌉+(2r−2q+3)⌈2p−2⌉+(q−1)⌈2p−3⌉ vertices in all.
We now consider the case (2B). Similarly, we need at least
⌈2p−1⌉ vertices to satisfy the remaining
constrains in stream i. For each stream t with t∈{1,⋯,q}\{i}, we need at lest ⌈2p⌉
vertices to satisfy the remaining constrains. For each stream t
with t∈{q+1,⋯,r+1}, we need at lest
⌈2p−2⌉ vertices to satisfy the remaining
constrains. For each stream t with t∈{r+2,⋯,r+q}, we
need at least ⌈2p−3⌉ vertices to satisfy the
remaining constrains. For stream j, we need at least
⌈2p−3⌉ vertices to satisfy the remaining
constrains. For each stream t with t∈{q+r+1,⋯,2r+1}\{j}, we need at least
⌈2p−2⌉ vertices to satisfy the remaining
constrains. Therefore, we need at least
2r+2+(q−1)⌈2p⌉+⌈2p−1⌉+(2r−2q+1)⌈2p−2⌉+q⌈2p−3⌉ vertices in all.
We now turn to the case (2C). We need at least
⌈2p−1⌉ vertices to satisfy the remaining
constrains in stream j. For each stream t with t∈{1,⋯,q}\{j}, we need at least ⌈2p⌉
vertices to satisfy its constrains. For stream i, we need at least
⌈2p−3⌉ vertices to satisfy the remaining
constrains. For each stream t with t∈{q+1,⋯,r+1}\{i}, we need at least ⌈2p−2⌉
vertices to satisfy the remaining constrains. For each stream t
with t∈{r+2,⋯,r+q}, we need at least
⌈2p−3⌉ vertices to satisfy the remaining
constrains. For each stream t with t∈{r+q+1,⋯,2r+1},
we need at least ⌈2p−2⌉ vertices to satisfy the
remaining constrains. Therefore, we need at least
2r+2+(q−1)⌈2p⌉+⌈2p−1⌉+(2r−2q+1)⌈2p−2⌉+q⌈2p−3⌉ vertices in all.
At last we consider the case (2D). For each stream t with t∈{1,⋯,q}, we need at least ⌈2p⌉
vertices to satisfy its constrains. For stream i, we need at least
⌈2p−3⌉ vertices to satisfy its remaining
constrains. For each stream t with t∈{q+1,⋯,r+1}\{i}, we need at least ⌈2p−2⌉
vertices to satisfy its remaining constrains. For each stream
t with t∈{r+2,⋯,r+q}, we need at least
⌈2p−3⌉ vertices to satisfy the remaining
constrains. For stream j, we need at least
⌈2p−3⌉ vertices to satisfy its remaining
constrains. For each stream t with t∈{r+q+1,⋯,2r+1}\{j}, we need at least
⌈2p−2⌉ vertices to satisfy the remaining
constrains. Therefore, we need at least
2r+2+q⌈2p⌉+(2r−2q)⌈2p−2⌉+(q+1)⌈2p−3⌉ vertices in all.
Finally, comparing the required minimum number of D in all four
cases, we see that when p is even, the minimum is
2(2r+1)p+q, which is achieved in case (2A) under the
situation i=j, and when p is odd, the minimum is
2(2r+1)(p−1)+2r+1, which is achieved in cases (2C),(2D)
and case (2A) under the situation i=j.
Next, we construct an r-IC, achieving the bound as follows:
When p is even,
∙ from stream i: use vertices i+z(2r+1), where z is even, for
i=1,r+2,r+3,⋯,2r+1;
∙ from stream j: use vertices j+z(2r+1), where
z is odd, for j=2,3,⋯,r+1;
∙ add vertices i+(p−1)(2r+1) for i=r+2,r+3,⋯,r+q.
When p is odd,
∙ from stream i: use vertices i+z(2r+1), where z is odd, for i=1,2,⋯,q;
∙ from stream j: use vertices j+z(2r+1), where z is
even, for j=q+1,q+2,⋯,2r+1.
(3) The proof of (3) is analogous. We
simply include the instruction for how to achieve an optimal set D in this case.
When p is even,
∙ from stream i: use vertices i+z(2r+1), where z is
even, for i=1,r+2,r+3,⋯,2r+1;
∙ from stream j: use vertices j+z(2r+1), where z is
odd, for j=2,3,⋯,r+1;
∙ add vertices i+(p−1)(2r+1) for i=q+1,q+2,⋯,2r+1 and j+p(2r+1) for j=2,3,⋯,q−r−1.
When p is odd,
∙ from stream i: use vertices i+z(2r+1), where z
is odd, for i=1,2,⋯,r;
∙ from stream j: use vertices j+z(2r+1), where z is
even, for j=r+1,r+3,⋯,2r+1.
4 2-locating dominating sets for cycle Cn
Let A and B be two sets. Define A△B as (A−B)∪(B−A). For three vertices x,u,v, if x∈Dr(u)△Dr(v), then we say {u,v} are r-separated by x, or
x r-separates {u,v}. Let D be an r-LD for Cn.
Two different vertices x and y not in D are D-consecutive if ether {x+1,⋯,y−1}⊆D or
{y+1,⋯,x−1}⊆D holds. Note that a pair of
consecutive vertices {x,x+1} not in D are also
D-consecutive.
Lemma 12
*([1])
Let r≥1 be an integer. Suppose D is an r-LD for Cn.
For every vertex x in D, we have
(i) x can r-separate at most two pairs of consecutive
vertices;
(ii) x can r-separate at most two pairs of D-consecutive
vertices.*
**Proof **
(i) For every vertex x in D, it r-separates at most two pairs
of consecutive vertices {x−r−1,x−r} and {x+r,x+r+1}.
(ii) Let l and l′ be integers such that 0<l≤r and l′>r. x can at most r-separate the following two types of
D-consecutive vertices: (x±l,x+l′) and (x±l,x−l′).
\hfill□
Lemma 13
*([1])
For r≥2, n≥1, M2LD(Cn)≥⌈3n⌉.
**Proof **
Let D be an r-LD of Cn. By Lemma 12, and since there are n−∣D∣ pairs of D-consecutive
vertices, we have 2∣D∣≥n−∣D∣. \hfill□
In here, we focus on r=2. Our main results is the following
theorem.
Theorem 14
*Let Cn be a cycle with vertex set {x1,⋯xn}.
(1) M2LD(Cn)=n if n≤5;
(2) M2LD(Cn)=⌈3n⌉+1 if n=6 or
n=6k+3 (k≥1);
(3) M2LD(Cn)=⌈3n⌉ if otherwise.*
**Proof **
When n≤5, the distance of any two vertices in Cn is no
more than 2. Hence, M2LD(Cn)=n. As a set with size two has
only three nonempty subsets, we know that M2LD(C6)≥3. It
is easy to know that D={x1,x3,x5} is a 2-LD of C6.
Therefore, M2LD(C6)=3. In the following, we assume that
n≥7.
M2LD(Cn)≥⌈3n⌉ holds by Lemma
13, next we construct a 2-LD achieving the
lower bound in the following cases:
∙ n=6k, D={xi∣i=6p+4,p≥0}∪{xi∣i=6q,q≥1};
∙ n=6k+1 or 6k+2, D={xi∣i=6p+4,p≥0}∪{xi∣i=6q,q≥1}∪{xn};
∙ n=6k+4, D={xi∣i=6p+4,p≥0}∪{xi∣i=6q,q≥1}∪{xn−2};
∙ n=6k+5 and n>11, D={xi∣i=6p+2,0≤p≤k−2}∪{xi∣i=6q,1≤q≤k−1}∪{xn−8,xn−7,xn−2,xn−1};
∙ n=11, D={x1,x2,x5,x9}.
Now we turn to the case n=6k+3. By Lemma 13, we have known that M2LD(Cn)≥2k+1.
We first show that M2LD(Cn)≥2k+2.
Suppose to the contrary that D is a 2-LD for Cn with 2k+1
vertices. Then there are 4k+2 pairs of D-consecutive vertices,
and hence every vertex in D 2-separates exactly two pairs of
D-consecutive vertices, and they are disjoint. We have the following claims.
Claim 1: D contains at most two consecutive vertices in Cn.
Proof of Claim 1: Since each vertex in D 2-separates two
pairs of D-consecutive vertices, it follows that D contains at
most four consecutive vertices in Cn. Suppose that D contains
four consecutive vertices in Cn, without loss of generality, we
assume that {x1,x2,x3,x4}⊆D. Then both x1 and
x4 2-separate a pair of D-consecutive vertices {xn,x5},
a contradiction. If D contains three consecutive vertices in
Cn, without loss of generality, we assume that
{x1,x2,x3}⊆D, then both x1 and x3 2-separate
a pair of D-consecutive vertices {xn,x4}, a contradiction.
□
Assume that D={xi1,xi2,⋯,xi2k+1} with
i1<i2<⋯<i2k+1.
Claim 2: ∣ij−ij+1∣=2 or 4 for all j∈{1,⋯,2k+1}.
Proof of Claim 2:
Since D2(x)=∅ for any x∈D, it is easy to
know that ∣ij−ij+1∣≤5. If ∣ij−ij+1∣=5 for some
j∈{1,⋯,2k+1}, then xij,xij+1 both
2-separate the pair of consecutive vertices (xij+2,xij+3), a contradiction.
Suppose that ∣ij−ij+1∣=1 for some j∈{1,⋯,2k+1},
without loss of generality, we assume that x1∈D and x2∈D. By Claim 1, we know that x3∈D and xn∈D. If
x4∈D, then either {x3,x5} or {x3,x6} is a pair of
D-consecutive vertices. So, x1 and x2 2-separate the same
pair of D-consecutive vertices, a contradiction. Thus x4∈D. Similarly, xn−1∈D. If xn−2 and x5 are both
in D, then
they both 2-separate the pair of D-consecutive vertices {xn,x3}, a contradiction.
Without loss of generality, we take x5∈D. x6∈D implies that
the pair of D-consecutive vertices
{x3,x4} are 2-separated by both x1 and x6. It is a contradiction.
x7∈D implies that the pair of D-consecutive vertices
{x4,x5} are 2-separated by both x2 and x7. It is a contradiction.
Hence, x6 and x7 are both not in D. Thus, D2(x5)=∅, a contradiction.
Therefore, ∣ij−ij+1∣=1.
Suppose that ∣ij−ij+1∣=3 for some j∈{1,⋯,2k+1}, without loss of generality, we
assume that x1∈D and x4∈D. Then xn∈D or x5∈D, which follows from the pair of D-consecutive vertices {x2,x3} require to be 2-separated, however, it contradicts with
∣ij−ij+1∣≥2. □
Since Cn contains 6k+3 vertices and there are 2k+1 vertices
in D, thus by Claim 2, there must exist some j∈{1,⋯,2k+1} such that ∣ij−ij+1∣=∣ij−ij−1∣.
However, if ∣ij−ij+1∣=∣ij−ij−1∣=2, then xij−1,xij+1 both 2-separate {xij−1,xij+1};
if ∣ij−ij+1∣=∣ij−ij−1∣=4, then there is no vertex in D
2-separate {xij−1,xij+1}. Therefore, M2LD(Cn)≥2k+2.
Now, we construct a 2-LD for Cn with 2k+2 vertices as
follows: D={xi∣i=6p+1 or 6p+3,0≤p≤k−1}∪{xn−1,xn−2}. \hfill□
5 Conclusion
The main purpose of this paper is to give the exact value of
MrI(G) for paths and odd cycles for arbitrary positive integer
r, and of M2LD(Cn). It would be of interest to extend the
latter to r-LDs for r>2.