Next Article in Journal
A Stacking Learning Model Based on Multiple Similar Days for Short-Term Load Forecasting
Previous Article in Journal
Efficient and Secure Pairing Protocol for Devices with Unbalanced Computational Capabilities
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

On the Characterization of a Minimal Resolving Set for Power of Paths

1
Department of Mathematics, Balurghat College, Dakshin Dinajpur, Balurghat 733101, India
2
Department of Mathematics, Raiganj University, Raiganj 733134, India
3
Department of Mathematics, Sungkyunkwan University, Suwon 16419, Korea
4
Department of Computer and Information Sciences, Northumbria University, Newcastle NE1 8ST, UK
*
Authors to whom correspondence should be addressed.
Mathematics 2022, 10(14), 2445; https://doi.org/10.3390/math10142445
Submission received: 16 June 2022 / Revised: 5 July 2022 / Accepted: 11 July 2022 / Published: 13 July 2022

Abstract

:
For a simple connected graph G = ( V , E ) , an ordered set W V , is called a resolving set of G if for every pair of two distinct vertices u and v, there is an element w in W such that d ( u , w ) d ( v , w ) . A metric basis of G is a resolving set of G with minimum cardinality. The metric dimension of G is the cardinality of a metric basis and it is denoted by β ( G ) . In this article, we determine the metric dimension of power of finite paths and characterize all metric bases for the same.
MSC:
05C12; 05C20; 05C90

1. Introduction

The study of the metric dimension or the resolving set of a simple connected graph using the distance between vertices is very popular among research scholars as it is applicable to many areas such as networks, robotic navigation and drug design. The concept of the metric dimension of a graph was first introduced by Slater [1]. The introduction of this invariant was motivated by its application to the placement of a minimum number of sonar/loran detecting devices in a network so that the position of every vertex in the network can be uniquely described in terms of its distances to the devices in the set. They used a location set in place of a resolving set. Harary and Melter [2] in 1976 also introduced the same concept as a metric dimension rather than a location number.
Throughout this article, G = ( V , E ) denotes a simple connected graph with vertex set V and edge set E. The distance between two vertices u and v in G, denoted by d ( u , v ) , is the length of the shortest u v path. For an ordered subset W = { w 1 , w 2 , , w k } V and a vertex v of G, the distance code of v with respect to W is a k-vector given by
c o d e W ( v ) = ( d ( v , w 1 ) , d ( v , w 2 ) , , d ( v , w k ) ) .
If c o d e W ( u ) c o d e W ( v ) for all distinct vertices u and v, then W is called a resolving set for the graph G. Every simple connected graph G has a resolving set, as the vertex set V forms a resolving set. The metric dimension of graph G is the minimum cardinality of a resolving set for G and it is denoted by β ( G ) . A resolving set with cardinality β ( G ) is called a metric basis and elements of it are called basis elements. Several papers studied resolving sets and metric dimension in the literature [3,4,5,6,7,8,9,10,11,12]. Throughout this article, the distance code c o d e W ( v ) is simply denoted by c o d e ( v ) .
For a path P n with vertex set V ( P n ) = { v 0 , v 1 , , v n 1 } , the r -th power of P n , denoted by P n r , is a simple graph with the same vertex set V ( P n ) , and the two vertices v i and v j are adjacent if d P n ( v i , v j ) r . It is clear to observe that d P n r ( v i , v j ) = d P n ( v i , v j ) r = | i j | r . In this paper, we determine the metric dimension of power of finite paths and characterize all metric bases for the same.

2. Preliminaries

In this section, we give some basic definitions, lemmas and a proposition that will be used in the sequel. Note that the vertex set V ( P n r ) = { v 0 , v 1 , , v n 1 } . By the division algorithm, we can write n = r q + s for some positive integer q and s { 0 , 1 , , r 1 } . Keeping in mind this form of n, we partitioned V ( P n r ) into the sets B 0 , B 1 , , B n r 1 , where B i ’s are to be defined as:
(a)
B i = v i r + j V ( P n r ) : 0 j r 1 for 0 i n r 2 .
(b)
B n r 1 = v r n r 1 , , v n 1 or ∅ according to n 0 ( mod r ) or n 0 ( mod r ) .
We call the above B i ’s a block. For example, the vertex set of P 17 3 can be divided into six blocks, B 0 , B 1 , B 2 , B 3 , B 4 and B 5 , where B i = { v 3 i , v 3 i + 1 , v 3 i + 2 } for 0 i 4 and B 5 = { v 15 , v 16 } . Again, the vertex set of P 15 5 has three blocks, B 0 = { v 0 , v 1 , v 2 , v 3 , v 4 } , B 1 = { v 5 , v 6 , v 7 , v 8 , v 9 } and B 2 = { v 10 , v 11 , v 12 , v 13 , v 14 } .
Proposition 1.
For P n r , the blocks B i ’s have the following properties:
(a) 
For each i { 0 , 1 , , n r 2 } , the block B i consists r elements, namely, v i r , v i r + 1 , v i r + 2 , , v i r + ( r 1 ) . Moreover, the block B n r 1 consists r when n 0 ( mod r ) and consists of ℓ elements when n ( mod r ) with 0 .
(b) 
For each i 0 , 1 , , n r 1 , the induced subgraph of B i forms a clique.
Definition 1.
For an integer i satisfying 0 i r 1 , by a class [ i ] we mean the set [ i ] = { j : j i ( mod r ) , 0 j n 1 } . For 0 t r 1 , a vertex v k is called a t - c l a s s element if k [ t ] and v k is called the largest t - c l a s s element if k is the largest element in [ t ] . For example, v 2 , v 5 , v 8 and v 11 are the 2-class elements in P 13 3 , whereas v 11 is the largest 2-class element. From here onward, we denote the set of all t - c l a s s elements by S [ t ] . It is noted that V ( P n r ) = t = 0 r 1 S [ t ] and S [ x ] S [ y ] for x y .
Example 1.
For r = 4 and n = 23 , the classes [ 0 ] , [ 1 ] , [ 2 ] and [ 3 ] are given by [ 0 ] = { 0 , 4 , , 20 } , [ 1 ] = { 1 , 5 , , 21 } , [ 2 ] = { 2 , 6 , , 22 } and [ 3 ] = { 3 , 7 , , 19 } . From the definition, the largest [ 0 ] -class, [ 1 ] -class and [ 3 ] -class elements are v 20 , v 21 and v 19 , respectively. For P 23 4 , S [ 0 ] = { v 0 , v 4 , , v 20 } , S [ 1 ] = { v 1 , v 5 , , v 21 } , S [ 2 ] = { v 2 , v 6 , , v 22 } and S [ 3 ] = { v 3 , v 7 , , v 19 } . Note that S [ x ] S [ y ] for distinct x , y { 0 , 1 , 2 , 3 } and also S [ 0 ] S [ 1 ] S [ 2 ] S [ 3 ] = { v 0 , v 1 , , v 22 } = V P 23 4 .
Lemma 1.
For any two vertices u = v i r + r 1 and w = v j r + r 2 of P n r ,
d P n r ( u , w ) = | i j | i f r 2 r 1 ; | i j | + 1 o t h e r w i s e .
Proof. 
Without loss of generality, we assume that u is left of w, that is, i r + r 1 < j r + r 2 . If r 2 r 1 , then
d P n r ( u , v ) = j r + r 2 i r r 1 r = ( j i ) r + r 2 r 1 r = ( j i 1 ) r + r ( r 1 r 2 ) r = j i .
Otherwise, r 2 > r 1 . Then, d P n r ( u , v ) = ( j i ) r + ( r 2 r 1 ) r = j i + 1 . □
Remark 1.
For 0 s r 1 , d P n r ( v s , u ) = d P n r ( v s , w ) implies d P n r ( v i r + s , u ) = d P n r ( v i r + s , w ) .

3. Metric Dimension of P n r

In this section, we present a lower bound for the metric dimension of P n r and then we build up a resolving set with cardinality that is the same as that of the lower bound. It is noted that { v i , v i + 1 , , v i + r } forms a clique in P n r for every i { 0 , 1 , , n r 1 } . The following lemma represents an effective result to determine a lower bound for the metric dimension of P n r .
Lemma 2.
Let A { v i , v i + 1 , , v i + r } with | A | = for 2 r + 1 . If X resolves A then | X | 1 .
Proof. 
We prove this lemma by induction on . The result obviously is true for = 2 . Now we show that it is true for = k with an assumption that it holds for = k 1 . Let the elements of A in order be v i + a 1 , v i + a 2 , , v i + a k where 0 a 1 < a 2 < < a k r . As X resolves A, there is an element x X such that d ( x , v i + a 1 ) d ( x , v i + a 2 ) . If x = v i + a 2 , then d ( x , v i + a s ) = 1 for all s { 1 , 3 , , k } and hence X \ { x } resolves A \ { v i + a 2 } . Otherwise, x v i + a 2 . Then, d ( x , v i + a 2 ) = d ( x , v i + a s ) for all s { 2 , 3 , , k } and X \ { x } resolves A \ { v i + a 1 } . Thus, in both cases X \ { x } resolves a subset of { v i , v i + 1 , , v i + r } with cardinality k 1 . Therefore, by assumption, | X \ { x } | k 2 and hence | X | k 1 . □
With the help of Lemma 2, the following result represents a lower bound of β ( P r n ) for all values of n and r < n 2 .
Lemma 3.
For two integers n and r with r < n 2 , β ( P n r ) r .
Proof. 
Let B be a resolving set of P n r and v i B . Then, A = { v i + 1 , v i + 2 , , v i + r } is not resolved by v i as d ( v i , v i + s ) = 1 for all s { 1 , 2 , , r } . By Lemma 2, we obtain | B \ v i | r 1 and hence | B | r . □
Now our aim is to construct a resolving set for P n r with cardinality r.
Lemma 4.
Let i and ℓ be two integers such that 0 i < i + r 1 . Then, A = { v i , v i + 1 , , v i + } V ( P n r ) resolves the set j = 1 n r 1 { v j r + i , , v j r + i + + 1 } V ( P n r ) , that is, A resolves the set j = i i + + 1 S [ j ] .
Proof. 
To prove this lemma, it is sufficient to show that for any pair of vertices u , w j = 1 n r 1 { v j r + i , , v j r + i + + 1 } there exists at least one vertex x A such that d ( u , x ) d ( w , x ) . Let u , w j = 1 n r 1 { v j r + i , , v j r + i + + 1 } be two distinct vertices. Then, we may write u = v a r + r 1 and w = v b r + r 2 for some 0 a , b n r 1 and i r 1 , r 2 i + + 1 . Without loss of generality, we can assume that u is in the left side of w, that is, a r + r 1 < b r + r 2 . Now we take x = v r 1 A . Then, d ( v r 1 , u ) = a and d ( v r 1 , w ) = b or b + 1 according to r 2 r 1 or r 2 > r 1 . If r 2 > r 1 , then d ( u , v r 1 ) d ( w , v r 1 ) . Otherwise, r 2 r 1 . Then, d ( u , v r 1 ) d ( w , v r 1 ) , as a r + r 1 < b r + r 2 . Therefore, v r 1 A resolves u , w and hence A resolves j = 1 n r 1 { v j r + i , , v j r + i + + 1 } . □
By a similar argument as in Lemma 4, we have the following result.
Lemma 5.
Let i and ℓ be two integers such that 0 i < i + r 1 . Then B = { v n r + i , v n r + i + 1 , , v n r + i + } V ( P n r ) resolves the set j = 1 n r 1 { v n j r + i 1 , , v n j r + i + } V ( P n r ) , that is, B resolves the set j = i 1 i + S [ j ] .
The following theorem gives the exact value of the metric dimension of P n r for all values of n and r.
Theorem 1.
For two integers n and r with r < n 2 , β ( P n r ) = r .
Proof. 
From Lemma 3, we have β ( P n r ) r . Thus, to prove the theorem it is sufficient to construct a resolving set A with cardinality r. Consider A = { v 0 , v 1 , , v r 1 } to be the set of the first r consecutive vertices of P n r . Now we apply Lemma 4 to A, and then A resolves t = 0 r 1 S [ t ] = V ( P n r ) . Therefore, A is a resolving set for P n r with cardinality r and consequently, β ( P n r ) r . This completes the proof of the theorem. □
From the above theorem, it is clear that any metric basis B consists of r elements. A metric basis B may have a non-empty intersection with all S [ i ] or may have an empty intersection with some S [ i ] , where 0 i r 1 . In the next two sections we determine all metric bases. First, we characterize all metric bases B with B S [ i ] ϕ for all i { 0 , , r 1 } .

4. Metric Bases Consisting of Elements from All Classes

Definition 2.
For two distinct integers a , b with 0 a , b r 1 , by an intermediate class between [ a ] and [ b ] , we mean any one of the classes [ a + 1 ] , [ a + 2 ] , , [ b 1 ] if a < b and for a > b , we mean it by any class of [ a + 1 ] , [ a + 2 ] , , [ r 1 ] , [ 0 ] , [ 1 ] , , [ b 1 ] . We denote the set of all intermediate classes between [ a ] and [ b ] by I ( a , b ) . We also define I [ a , b ] = I ( a , b ) { [ a ] , [ b ] } , I [ a , b ) = I ( a , b ) { [ a ] } and I ( a , b ] = I ( a , b ) { [ b ] } . For better understanding, see Figure 1.
Definition 3.
For two vertices v a and v a + in P n r with 1 r 1 , we define W a , a + L to be the set of all left-side vertices of v a that resolve the vertices v a and v a + . Similarly, W a , a + R is the set of all right-side vertices of v a + that resolve the vertices v a and v a + .
Example 2.
We consider P 20 5 ( r = 5 , n = 20 ). Then it is clear that v 2 resolves the pair ( v 12 , v 15 ) as d ( v 2 , v 12 ) = 2 and d ( v 2 , v 15 ) = 3 . Therefore, v 2 W 12 , 15 L . Again, v 18 W 12 , 15 R as d ( v 18 , v 12 ) = 2 and d ( v 18 , v 15 ) = 1 .
The lemma below gives explicit forms for both W a , a + L and W a , a + R for any two vertices v a and v a + of P n r .
Lemma 6.
For any two vertices v a and v a + with 1 r 1 , the following hold:
(a) 
W a , a + L = v j : j { [ a ] , [ a + 1 ] , , [ a + 1 ] ,
(b) 
W a , a + R = v j : j { [ a + 1 ] , [ a + 2 ] , , [ a + ] .
Proof. 
(a)
Let v j V ( P n r ) with j a , that is, v j is a left-side vertex of v a . Then, the distances of the two vertices v a and v a + from v j are a j r and a j + r , respectively. Let a j = m r + r , where 0 r r 1 . Then, a j r a j + r implies that m r + r r m r + r + r and this is true only when r = 0 or r + 1 r + , that is, r { 0 , r + 1 , r + 2 , , r 1 } = S (say). Therefore,
W a , a + L = { v j : j a and a j r ( mod r ) , r S } = v j : j a and j { [ a ] , [ a + 1 ] , , [ a + 1 ] } .
(b)
Let v j V ( P n r ) with j a + , that is, v j is a right-side vertex of v a + . Then, d ( v j , v a ) = j a r and d ( v j , v a + ) = j a r . Let j a = m r + r , where 0 r r 1 . Then a j r a j + r implies m r + r r m r + r + r and this is true only when r { 0 , r + 1 , r + 2 , , r 1 } = S (say). Therefore,
W a , a + R = { v j : j a + and j a l r ( mod r ) , r S } = v j : j a + and j { [ a + 1 ] , [ a + 2 ] , , [ a + ] } .
 □
Example 3.
We consider P 29 5 . We now calculate W 12 , 15 L and W 12 , 15 R . Since [ 12 ] = [ 2 ] and [ 15 ] = [ 0 ] , W 12 , 15 L and W 12 , 15 R are given by:
W 12 , 15 L = { v j : j 12 and j { [ 12 ] , [ 13 ] , [ 14 ] } } = { v j : j 12 and j { [ 2 ] , [ 3 ] , [ 4 ] } } = { v 2 , v 7 , v 12 , v 3 , v 8 , v 4 , v 9 } , W 12 , 15 R = { v j : j 15 and j { [ 13 ] , [ 14 ] , [ 15 ] } } = { v j : j 15 and j { [ 3 ] , [ 4 ] , [ 0 ] } } = { v 15 , v 20 , v 25 , v 18 , v 23 , v 28 , v 19 , v 24 } .
Corollary 1.
For = 1 , Lemma 6 implies that W a , a + 1 L = { v j : j a and j [ a ] } and W a , a + 1 R = { v j : j a + 1 and j [ a + 1 ] } . For example, in P 29 5 , W 12 , 13 L = { v j : j 12 and j [ 12 ] } = { v j : j 12 and j [ 2 ] } = { v 2 , v 7 , v 12 } .
Remark 2.
If B is a metric basis such that B S [ a ] = ϕ and B does not contains any ( a + 1 ) -class element in the right side of v a + 1 , then v a + 1 B . Similarly, if a metric basis B with B S [ a + 1 ] = ϕ and B does not contain any a-class element in the left side of v a , then v a B .
Example 4.
If B be a matric basis of P 25 5 such that B S [ 0 ] = ϕ , then v 24 B , as there is no 24-class element, that is, a 4-class element in the right side of v 24 .
Using Lemma 6, we have the following corollaries.
Corollary 2.
For a α ( mod r ) , we have ( a ) W a , a + L = I [ α , ) and ( b ) W a , a + R = I ( α , ] .
Corollary 3.
For a + 0 ( mod r ) , we have ( a ) W a , a + L = I [ r , r ) and ( b ) W a , a + R = I ( r , r ] .
Lemma 7.
Let a and m be two positive integers such that 0 < a < a + m r 1 . Additionally, let B be a metric basis for P n r with | B S [ t ] | 1 for all t { a , , a + m } . Then, the following hold:
(a) 
If B S [ a + m ] = ϕ , then { v a , , v a + m 1 } B . Moreover, if a 2 then v a 1 B .
(b) 
If B S [ a ] = ϕ , then B must contain the largest s - class elements for all s { a + 1 , , a + m } . Moreover, if B S [ a + m + 1 ] ϕ , then B must contain the largest ( a + m + 1 ) - c l a s s element.
(c) 
Suppose that | B S [ s ] | = 1 for s { r 1 , r 2 , , t } . If B S [ 0 ] = ϕ , then { v t , v t + 1 , , v r 1 } B .
(d) 
Suppose that | B S [ s ] | = 1 for s { 0 , r 1 , r 2 , , t } . If B S [ 0 ] = { v 0 } , then { v t , v t + 1 , , v r 1 } B .
Proof. 
(a)
Since B S [ a + m ] = ϕ and there are no ( a + m 1 ) - c l a s s elements of V ( P n r ) in the left side of v a + m 1 , applying Remark 2, we have v a + m 1 B . Now we have to prove that { v a , , v a + m 1 } B . Assume to the contrary that there are at least one of v a , , v a + m 2 not in B . Let s be the largest positive integer such that v a + s B , where 0 s m 2 . Then, all v a + j B for all j { s + 1 , , m 1 } . Applying Lemma 6 to v a + s and v a + m , we have:
W a + s , a + m L = v j : [ j ] { [ a + s ] , , [ a + m 1 ] } and W a + s , a + m R = v j : [ j ] { [ a + s + 1 ] , , [ a + m ] } .
However, S = { v a + j : s + 1 j a + m 1 } B cannot resolve v a + s and v a + m as all the vertices of S { v a + s , v a + m } are in a same clique and | B S [ j ] | = 1 for all j { a + s + 1 , , a + m 1 } . Therefore, v a + s and v a + m will be resolved by B only if v a + s B or v a + m B , which is a contradiction. Hence, { v a , , v a + m 1 } B . Since there is no ( a 1 ) - c l a s s element to the left of v a 1 and B S [ a ] = { v a } , applying Corollary 1 to v a and v a + r and by a similar argument as above, one can easily see that v a 1 B .
(b)
Let n ( mod r ) . Here the last block contains elements from each class of [ 0 ] , , [ 1 ] . Now we consider three cases according to > a + m , a < < a + m and < a .
Case I. > a + m . In this case the last block B n r 1 contains the largest s - class element for each s { a , , a + m } . Since B S [ a ] = ϕ and there is no ( a + 1 ) - c l a s s element of V ( P n r ) in the right side of v n + a + 1 , applying Remark 2, we have v n + a + 1 B . Now we have to prove that { v n + a + 1 , , v n + a + m } B . Assume to the contrary that there is at least one of v n + a + 1 , , v n + a + m not in B . Let s be the smallest positive integer such that v n + a + s B , where 2 s m . Then, all v n + a + j B for all j { 1 , , s 1 } . Applying Lemma 6 to v n + a and v n + a + s , we have W n + a , n + a + s L = v j : [ j ] { [ a ] , , [ a + s 1 ] } and W n + a , n + a + s R = v j : [ j ] { [ a + 1 ] , , [ a + s ] } . However, S = { v n + a + j : 1 j s 1 } B cannot resolve v n + a and v n + a + s , as all of the vertices of S { v n + a , v n + a + s } are in a same clique and | B S [ j ] | = 1 for all j { a + 1 , , a + s 1 } . Therefore, v n + a and v n + a + s will be resolved by B only if v n + a B or v n + a + s B , which is a contradiction. Hence, { v n + a + 1 , , v n + a + m } B .
Case II. a < < a + m . Here the last block B n r 1 contains the largest s - class element for all s { a , , 1 } and the second-last block B n r 2 contains the largest s -class element for all s { , , a + m } . By a similar argument as in Case I, one can easily prove that { v n + a + 1 , , v n 1 } B . Now we have to prove that { v n r , , v n r + a + m } B . The two vertices v n r 1 and v n r cannot be resolved by { v n 1 } , as these three vertices are on the same clique. Again, since B S [ 1 ] = { v n 1 } and | B S [ 1 ] | = 1 , applying Corollary 1 to v n r 1 , v n r we have only v n r or a - c l a s s element to right the of v n r that can resolve v n r 1 and v n r . However, there is no - c l a s s element to the right of v n r . Thus, v n r B . Assume to the contrary that at least one of v n r + 1 , , v n r + a + m is not in B . Let s be the smallest positive integer such that v n r + s B , where + 1 s a + m . Then, all v n r + j B for all j { + 1 , , s 1 } . Applying Lemma 6 to v n r 1 and v n r + s , we have W n r 1 , n r + s L = v j : [ j ] { [ 1 ] , , [ s 1 ] } and W n r 1 , n r + s R = v j : [ j ] { [ ] , , [ s ] } . However, S = { v n r + j : j s 1 } { v n 1 } B cannot resolve v n r 1 and v n r + s , as all of these vertices are in the same clique and | B S [ j ] | = 1 for all j { 1 , , s } . Therefore, B cannot resolve v n r 1 and v n r + s , which is a contradiction. Hence, { v n r , , v n r + a + m } B .
Case III. < a . For all s { a , , a + m } , the largest s-class element is in block B n r 1 and by a similar argument as in Case I, one can easily prove that { v n r + a , v n r + a + 1 , , v n r + a + j } B .
Now we have to prove that if B S [ a + m + 1 ] ϕ , and then B must contain the largest ( a + m + 1 ) -class element. Since | B S [ a + m ] | 1 , the largest ( a + m + 1 ) -class element and the largest ( a + m ) -class element are resolved only by an ( a + m + 1 ) -class element, which is not to the left of the largest ( a + m ) -class element. Again, there is no ( a + m + 1 ) -class element to the right of the largest ( a + m ) -class element. Therefore, the largest ( a + m + 1 ) -class element must be in B .
(c)
As B S [ 0 ] = ϕ , applying Corollary 1 to vertices v r 1 and v r , we have only v r 1 or an ( r 1 ) -class element to the left of v r 1 that can resolve v r 1 and v r . However, there is no ( r 1 ) -class elements to the left of v r 1 . Thus, v r 1 B . Now we have to prove that { v t , v t + 1 , , v r 1 } B . Assume to the contrary that there is at least one of v t , , v r 1 not in B . Let s be the smallest positive integer such that v r 1 s B . Then, all v a + j B for all j { s + 1 , , m 1 } . Applying Lemma 6 to the vertices v r 1 s and v r , we have W r 1 s , r L = v j : [ j ] { [ r 1 s ] , , [ r 1 ] } and W r 1 s , r R = v j : [ j ] { [ r s ] , , [ r 1 ] , [ 0 ] } . However, S = { v j : r s j r 1 } cannot resolve v r 1 s and v r as all of the vertices of S { v r 1 s , v r } are in a same clique and | B S [ j ] | = 1 for all j { r s , , r 1 } . Therefore, v r 1 s and v r will be resolved by B only if v r 1 s B or v r B , which is a contradiction. Hence, { v t , v t + 1 , , v r 1 } B .
(d)
Similar proof as of (c).
 □
Lemma 8.
Let B be a basis of P n r such that | B S [ t ] | = 1 for all t { 0 , 1 , , r 1 } . In addition, let B S [ 0 ] = { v j r } and ℓ be a positive integer such that 1 r 1 .
(a) 
For s = 1 , 2 , S [ r s ] B t = 0 j B t .
(b) 
If S [ r s ] B t = 0 j B t for all s { 1 , , } , then S [ r 1 ] B t = 0 j B t .
Proof. 
(a)
First we have to prove that S [ r 1 ] B t = 0 j B t . By Corollary 1, for the two vertices v j r + r 1 and v j r + r , we have:
W j r + r 1 , j r + r L = v j : [ j ] { [ r 1 ] } and W j r + r 1 , j r + r R = v j : [ j ] { [ 0 ] } .
However, B is already taken in the 0-class element v j r and | B S [ 0 ] | = 1 , so to resolve v j r + r 1 , v j r + r , we have to take an element from W j r + r 1 , j r + r L , and hence S [ r 1 ] B t = 0 j B t .
We now prove that S [ r 2 ] B t = 0 j B t . Since S [ r 1 ] B t = 0 j B t , we have either S [ r 1 ] B t = 0 j 1 B t or S [ r 1 ] B = { v j r + r 1 } . If S [ r 1 ] B = { v j r + r 1 }, then the 0-class element v j r and the ( r 1 ) -class element v j r + r 1 cannot resolve v j r + r 2 , v j r + r due to the fact that these four vertices form a clique. By Corollary 3 to the vertices u = v j r + r 2 and w = v j r + r , the set of all vertices that can resolve u and w are W j r + r 1 , j r + r L W j r + r 1 , j r + r R . Thus, S [ r 2 ] B t = 0 j B t . Otherwise, S [ r 1 ] B t = 0 j 1 B t . Then, by a similar argument to the one above, the two vertices u = v j r + r 2 and w = v j r + r 1 can only be resolved by the ( r 2 ) -class element u and u R j r + r 2 , j r + r 1 L . Therefore, S [ r 2 ] B t = 0 j B t .
(b)
We have S [ r j ] B t = 0 j B t for all j { 1 , , } . Here we consider two cases.
Case I. S [ r i ] B = { v j r + r t } for all i { 1 , , } . Then, applying Corollary 3 to the vertices u = v j r + r and w = v j r + r 1 , we have W j r + r 1 , j r + r L = v j : [ j ] { [ r 1 ] , , [ r 1 ] } and W j r + r 1 , j r + r t R = v j : [ j ] { [ r ] , , [ r 1 ] , [ 0 ] } . Since | B S [ i ] | = 1 for all i { 0 , 1 , , r 1 } , and the two vertices u , w are not resolved by { v j r + r t : 1 t } as { u , v } { v j r + r t : 1 t } forms a clique. Therefore, either v j r + r 1 B , or an ( r 1 ) -class element that is to the left of v j r + r 1 must be in B . Thus, S [ r 1 ] B t = 0 j B t .
Case II. S [ r i ] B { v j r + r i } for at least one i { 1 , , } . Let m be the smallest positive integer such that S [ r m ] B t = 0 j 1 B t . Then, for each s { t + 1 , , } , S [ r s ] B B j . Now we consider the two vertices u = v j r + r t and w = v j r + r 1 . For each s { m + 1 , , } , these two vertices are resolved by the ( r s ) -class elements of B . By Corollary 3 to the vertices u and w, we have W j r + r 1 , j r + r t L = v j : [ j ] { [ r 1 ] , , [ r t 1 ] } and W j r + r 1 , j r + r t R = v j : [ j ] { [ r ] , , [ r t ] } . Since the ( r m ) -class elements of B are to the left of w and for each s { m + 1 , , } , [ r s ] cannot resolve u and w, we have from W j r + r 1 , j r + r t L and W j r + r 1 , j r + r t R that the ( r 1 ) -class element is needed to resolve u and w and this class element must be to the left of w. Therefore, S [ r 1 ] B t = 0 j B t whenever S [ r j ] B t = 0 j B t for all j { 1 , 2 , , } .
 □
Lemma 9.
Let B be a basis of P n r such that | B S [ t ] | = 1 for all t { 0 , 1 , , r 1 } and v j r B .
(a) 
For s = 1 , 2 , S [ s ] B t = j 1 n r B t .
(b) 
If S [ s ] B t = j 1 n r B t for all s { 1 , , 1 } , then S [ ] B t = j 1 n r B t .
Proof. 
(a)
First we prove that S [ 1 ] B t = j 1 n r B t . Applying Corollary 1 to the two vertices v ( j 1 ) r and v ( j 1 ) r + 1 , we have W ( j 1 ) r , ( j 1 ) r + 1 L = v j : [ j ] { [ 0 ] } and W ( j 1 ) r , ( j 1 ) r + 1 R = v j : [ j ] { [ 1 ] } . However, B has already taken the 0-class element v j r and | B S [ 0 ] | = 1 so to resolve v ( j 1 ) r and v ( j 1 ) r + 1 , we have to take an element from W ( j 1 ) r , ( j 1 ) r + 1 R . Thus, S [ 1 ] B t = j 1 n r B t . We now prove that S [ 2 ] B t = j 1 n r B t . Since S [ 1 ] B t = j 1 n r B t , we have either S [ 1 ] B = { v ( j 1 ) r + 1 } or S [ 1 ] B t = j n r B t . If S [ 1 ] B = { v ( j 1 ) r + 1 } , then the 0 - c l a s s element v j r and 1 - c l a s s element v ( j 1 ) r + 1 cannot resolve the two vertices u = v ( j 1 ) r and w = v ( j 1 ) r + 2 due to the fact that all four are in the same clique. Again, by Corollary 2, the two vertices u = v ( j 1 ) r and w = v ( j 1 ) r + 2 can only be resolved by { v ( j 1 ) r + 2 } or a 2-class element that is on the right of { v ( j 1 ) r + 2 } . Therefore, S [ 2 ] B t = j 1 n r B t . Otherwise, S [ 1 ] B t = j n r B t . Then, by a similar argument as above, the two vertices u = v ( j 1 ) r + 1 and w = v ( j 1 ) r + 2 can be resolved by either { v ( j 1 ) r + 2 } or a 2-class element that is on the right of { v ( j 1 ) r + 2 } . Therefore, S [ 2 ] B t = j 1 n r B t .
(b)
We have S [ j ] B t = j 1 n r B t for all j { 1 , , 1 } . Here we consider the two following cases.
Case I. S [ i ] B = { v ( j 1 ) r + i } for all i { 1 , , 1 } . Then, applying Corollary 2 to the vertices u = v ( j 1 ) r and w = v ( j 1 ) r + , we have W ( j 1 ) r , ( j 1 ) r + L = v j : [ j ] { [ 0 ] , , [ 1 ] } and W ( j 1 ) r , ( j 1 ) r + R = v j : [ j ] { [ 1 ] , , [ ] } . Since the two vertices u , w are not resolved by { v ( j 1 ) r + t : 1 1 } , therefore either { v ( j 1 ) r + } or an -class element to the right of { v ( j 1 ) r + } can resolve u , w and S [ ] B t = j 1 n r B t .
Case II. S [ i ] B { v ( j 1 ) r + i } for at least one i { 1 , , 1 } . Let m be the largest positive integer such that S [ m ] B t = j n r B t . Then, S [ s ] B = { v ( j 1 ) r + s } for all s { m + 1 , , 1 } . Now we consider the two vertices u = v ( j 1 ) r and w = v ( j 1 ) r + . Then, for each s { m + 1 , , 1 } , the two vertices u , w are not resolved by an s-class element of B . Applying Corollary 2 to u and w, we have W ( j 1 ) r + m , ( j 1 ) r + L = v j : [ j ] { [ m ] , , [ 1 ] } and W ( j 1 ) r + m , ( j 1 ) r + R = v j : [ j ] { [ m + ] , , [ 1 ] } . Therefore, u , w are resolved by either { v ( j 1 ) r + } or an -class element to the right of { v ( j 1 ) r + } and S [ ] B t = j 1 n r B t whenever S [ j ] B t = j 1 n r B t for all j { 1 , , 1 } .
 □
Theorem 2.
Let B be a metric basis of P n r with | B S [ i ] | = 1 for all i { 0 , , r 1 } . Then, B = { v 0 , v 1 , , v r 1 } or { v n r , v n r + 1 , , v n 1 } .
Proof. 
Since | B S [ i ] | = 1 for all i { 0 , , r 1 } , we can assume that v j r B for some j, 0 j n r 1 . Then, applying Lemmas 8 and 9, we have B t = 0 j B t and B t = j 1 n r B t . Therefore, B B j 1 B j = { v ( j 1 ) r , , v j r + r 1 } . Now our aim is to prove that the elements of B are consecutive vertices of P n r . If B = B j 1 or B = B j then we have nothing to prove. Again, since | B | = r , B does not contain all of the vertices in B j 1 B j . Let u = v ( j 1 ) r + α be the last vertex in B j 1 and w = v j r + β be the first vertex in B j such that both vertices are not in B . Then, { v ( j 1 ) r + α + 1 , , v ( j 1 ) r + r 1 , v j r , , v j r + β 1 } B and in this case the condition β = α + 1 is sufficient to show that basis elements are consecutive. Since v ( j 1 ) r + α + 1 B and B contains each class element exactly once, v j r + α + 1 B and hence β α + 1 . Assume to the contrary that β α . Then, applying Corollary 3 to vertices u and w, we have W ( j 1 ) r + α , j r + β L = { v j : [ j ] I [ α , β ) } and W ( j 1 ) r + α , j r + β R = { v j : [ j ] I ( α , β ] } . However, ( [ t ] I ( α , β ) S [ t ] ) B = { v ( j 1 ) r + α + 1 , , v ( j 1 ) r + r 1 , v j r , , v j r + β 1 } cannot resolve u and w. Therefore, there is an element x S [ α ] to the left of u or an element x S [ β ] that is to the right of w, and only they can resolve u and w. However, there is no such element in B , as B B j 1 B j and u , w B , which contradicts the fact that B is a metric basis. Therefore, β = α + 1 , and hence basis elements are consecutive, that is, B = { v a , v a + 1 , , v a + r 1 } for some a, 0 a n r . If a > 0 or a + r < n , then d ( u , v a 1 ) = d ( u , v a + r ) = 1 for all u B . Therefore, the codes of v a 1 and v a + r are the same. Thus, either a = 0 or a + r = n , but both cannot occur simultaneously (except for n = r and in this case we obtain a complete graph) as basis elements that are consecutive. Therefore, B = { v 0 , v 1 , , v r 1 } or B = { v n r , , v n 1 } according to a = 0 or a = n r , respectively. By Lemmas 4 and 5, we conclude that B forms a resolving set of P n r . □

5. Metric Bases with Missing Classes

In this section, we determine all metric bases of P n r that miss one or more classes. Throughout this section we assume that a metric basis B misses the classes [ α 1 ] , [ α 2 ] , , [ α k ] . Additionally, we denote B ( α 1 , , α k ) as a metric basis of P n r with missing classes [ α 1 ] , [ α 2 ] , , [ α k ] , where α 1 < < α k . A natural question arises: can any metric basis miss two consecutive classes? In the following lemma, we give an answer to this question and also determine the classes for which a metric basis consists of at least two elements from these classes.
Lemma 10.
Let B ( α 1 , , α k ) be a metric basis for P n r with missing classes α 1 , , α k , and let S [ β i ] denote the set of all β i - c l a s s elements of P n r . Then:
(a) 
α + 1 α 2 for { 1 , , k 1 } , provided that k 2 ;
(b) 
There exists only one class [ β t ] I ( α t , α t + 1 ) such that | B S [ β t ] | = 2 ;
(c) 
There exists only one class [ β k ] I ( α k , α 1 ) such that | B S [ β k ] | = 2 .
Proof. 
Since B ( α 1 , , α k ) is a metric basis for P n r with missing classes α 1 , , α k , B S [ α ] = ϕ for all { 1 , , k } , where S [ α ] denotes the set of all α - c l a s s elements of P n r .
(a)
Assume to the contrary that there exists a positive integer t such that B S [ α t ] = ϕ and B S [ α t + 1 ] = ϕ . Then, the codes of v α t and v α t + 1 are the same due to Corollary 1, which contradicts the fact that B is a metric basis. Again, assume to the contrary that B S [ r 1 ] = ϕ and B S [ 0 ] = ϕ . Again, by Corollary 1, codes of v r 1 and v r are the same and we arrive at a contradiction. Hence, B cannot miss two consecutive classes, that is, α + 1 α 2 .
(b)
Assume to the contrary that there exists no [ β i ] I ( α i , α i + 1 ) such that | B S [ β i ] | = 2 . Then, | B S [ t ] | = 1 for all t { α i + 1 , , α i + 1 1 } and | B S [ α i + 1 ] | = 0 . Applying Lemma 7 (a), we have v α i , v α i + 1 , v α i + 1 1 B , which contradicts the fact that B S [ α i ] = ϕ , and hence there is a β i such that | B [ β i ] | = 2 .
(c)
Assume to the contrary that there exists no [ β k ] I ( α k , α 1 ) such that | B S [ β k ] | = 2 . Then, | B S [ t ] | = 1 for all t { α k + 1 , , r 1 , 0 , , α 1 1 } with | B S [ α k ] | = 0 and | B S [ α 1 ] | = 0 . From ( a ) , [ α 1 ] and [ α k ] are not consecutive, that is, both cannot be in { [ 0 ] , [ r 1 ] } . Thus, we consider the following three cases:
Case I. α 1 = 0 . Then, α k r 1 . Since | B S [ t ] | 1 for all t { α k , , r 1 } and | B S [ 0 ] | = 0 , applying Lemma 7 (a), we have { v α k , v α k + 1 , , v r 1 } B , which contradicts the fact that B S [ α k ] = ϕ .
Case II. α k = r 1 . Then, α 1 0 . Here | B S [ t ] | 1 for all t { 0 , 1 , , α 1 1 } . From Lemma 7 ( a ) , we have { v 0 , v 1 , v α 1 1 } B . Then, v r 1 and v r can only be resolved by 0 - c l a s s elements that are to the right of v r , so | B S [ 0 ] | = 2 , which contradicts the fact that | B S [ 0 ] | = 1 .
Case III. α k r 1 and α 1 0 . We have | B S [ t ] | = 1 for all t { 0 , 1 , , α 1 1 } { α k + 1 , , r 1 } . Since B S [ α 1 ] = ϕ and | B S [ t ] | = 1 for all t { 0 , 1 , , α 1 1 } , applying Lemma 7 ( a ) , we have { v 0 , v 1 , v α 1 1 } B . Therefore, B S [ 0 ] = { v 0 } . Now applying Lemma 7 ( d ) , we have { v α k , v α k + 1 , v r 1 } B , which contradicts the fact that v α k B . Therefore, there exists a class [ β k ] with β k { 0 , 1 , , α 1 1 } { α k , , r 1 } such that | B S [ β k ] | = 2 .
Now we prove the uniqueness of β i where i { 1 , , k } . Since | B | = r and B miss exactly k classes and between every two missing classes [ α i ] and [ α i + 1 ] there exists a class [ β i ] with | B S [ β i ] | = 2 and two missing classes [ α k ] and [ α 1 ] , there exists a class [ β k ] such that | B S [ β k ] | = 2 . Hence, we conclude that each β i is unique (otherwise, | B | r + 1 ).
 □
Corollary 4.
Any metric basis cannot miss consecutive classes.
Theorem 3.
Let 0 α 1 < α 2 < < α k r 1 and [ β i ] be an intermediate class between [ α i ] and [ α i + 1 ] if there be any. Let X = v t : 0 t r 1 , [ t ] i = 1 k 1 I [ β i , α i + 1 ) I [ β k , α 1 ) and Y be the set of all largest s-class elements, where [ s ] i = 1 k 1 I ( α i , β i ] I ( α k , β k ] . Then, X Y forms a resolving for P n r .
Proof. 
Here, X { v 0 , , v r 1 } and Y { v n r , , v n 1 } , as Y contains all largest s-class elements. Let u and w be two distinct vertices from V ( P n r ) \ ( X Y ) . Then, we can write u = v a r + r 1 and w = v b r + r 2 for some 0 a , b n r 1 , 0 r 1 , r 2 r 1 . Without loss of generality, we can assume that u is in the left side of w, that is, a r + r 1 < b r + r 2 . If d ( u , w ) 2 , then b a 1 and equality occurs only when r 1 < r 2 . The distances of u and w from v β 1 are given by d ( u , v β 1 ) = a or a + 1 and d ( w , v β 1 ) = b or b + 1 according to r i β 1 or r i > β 1 , where i = 1 , 2 . Therefore, the equality, d ( u , v β 1 ) = d ( w , v β 1 ) gives b = a + 1 and r 2 β 1 < r 1 . This contradicts the fact that r 1 < r 2 and hence v β 1 resolves u and w when d ( u , w ) 2 . It remains to be shown that u and w are resolved by a vertex x X Y when d ( u , w ) = 1 . Now we consider the following three cases:
  • Case I. | I ( r 1 , r 2 ) | 2 . Since X Y does not miss two consecutive classes, there always exists at least [ r ] I ( r 1 , r 2 ) such that S [ r ] ( X Y ) ϕ . Let z S [ r ] ( X Y ) . If z X , then d ( z , w ) = d ( z , u ) + 1 = a + 1 , that is, z resolves u and w. Similarly, if z Y , then we can show that u and w are resolved by z. Therefore, u and w are resolved by z S [ r ] ( X Y ) .
  • Case II. | I ( r 1 , r 2 ) | = 1 . Let [ r ] I ( r 1 , r 2 ) . If S [ r ] ( X Y ) ϕ , then with a similar argument as in Case I, u and w are resolved by an element z S [ r ] ( X Y ) . Otherwise, S [ r ] ( X Y ) = ϕ . Then, S [ r 1 ] X = { v r 1 } and S [ r 2 ] Y ϕ . We have d ( v r 1 , w ) = d ( v r 1 , u ) + 1 = a + 1 . Therefore, u and w are resolved by v r 1 X .
  • Case III. | I ( r 1 , r 2 ) | = 0 . In this case u and w are consecutive vertices. From the construction of X and Y, we have S [ r 1 ] X ϕ or S [ r 2 ] Y ϕ . First we assume that S [ r 2 ] Y ϕ . Let z S [ r 2 ] Y . Then, d P n ( z , u ) = d P n ( z , w ) + 1 . Since both z , w S [ r 2 ] , d P n ( z , w ) 0 ( mod r ) and hence d ( z , u ) = d ( z , w ) + 1 in P n r . Thus, z resolves u and w. Next we assume that S [ r 1 ] X ϕ . Then, S [ r 1 ] X = { v r 1 } . By a similar argument as above it is clear that v r 1 resolves u and w.
Thus, from the above, it follows that X Y forms a resolving set for P n r . □
Corollary 5.
Let X be the set of all smallest s-class elements for all s { 0 , 1 , , α 1 1 } { β 1 , , r 1 } or s { β 1 , , α 1 1 } according to α 1 < β 1 r 1 or 0 β 1 < α 1 . Additionally, let Y be the set of all largest t-class elements for all t { α 1 + 1 , , β 1 } or t { α 1 + 1 , , r 1 } { 0 , , β 1 } according to α 1 < β 1 r 1 or 0 β 1 < α 1 , where 0 α 1 , β 1 r 1 . Then, X Y forms a resolving set for P n r .
Example 5.
For P 35 8 , we consider k = 2 , α 1 = 2 , α 2 = 5 , β 1 = 4 and β 2 = 7 . Then, applying Theorem 3, B = { v 0 , v 1 , v 4 , v 7 , v 27 , v 28 , v 30 , v 31 } forms a resolving set. Here X = { v 0 , v 1 , v 4 , v 7 } and Y = { v 27 , v 28 , v 30 , v 31 } .
Example 6.
For P 35 8 with α 1 = 2 , α 2 = 5 , β 1 = 3 , and β 2 = 1 , B = { v 1 , v 3 , v 4 , v 5 , v 27 , v 31 , v 32 , v 33 } forms a resolving set.
From Theorem 3, we see that for P n r , there is a resolving set that does not take an element from some S [ α i ] for i = 1 , 2 , , k . The following theorem gives all metric bases B with B S [ α i ] = ϕ .
Theorem 4.
Any metric basis B ( α 1 , , α k ) is of the form X Y , where X = v t : 0 t r 1 , [ t ] ( i = 1 k 1 I [ β i , α i + 1 ) ) I [ β k , α 1 ) and Y is the set of all largest s-class elements, where [ s ] i = 1 k I ( α i , β i ] for some [ β i ] I ( α i , α i + 1 ) with i = 1 , , k 1 and [ β k ] I ( α k , α 1 ) .
Proof. 
Here we consider two cases according to the position of β k .
Case I. α k < β k ( r 1 ) . Here B S [ α 1 ] = ϕ and | B S [ t ] | = 1 for all t { 0 , 1 , , α 1 1 } . Hence, applying Lemma 7, we have { v 0 , v 1 , , v α 1 1 } B if α 1 0 . Again, for every i { 1 , 2 , , k 1 } , B S [ α i + 1 ] = ϕ and | B S [ t ] | = 1 for all t { β i + 1 , , α i + 1 1 } , so applying Lemma 7, we have { v β i , , v α i + 1 1 } B and hence i = 1 k 1 { v β i , , v α i + 1 1 } B . Again, B S [ 0 ] = { v 0 } and | B S [ t ] | = 1 for all t { β k + 1 , , r 1 } , so applying Lemma 7, we have { v β k , , v r 1 } B . Therefore, X B , where X = { v 0 , , v α 1 1 } ( i = 1 k 1 { v β i , , v α i + 1 1 } ) { v β k , , v r 1 } , that is,
X = v t : 0 t r 1 , [ t ] ( i = 1 k 1 I [ β i , α i + 1 ) ) I [ β k , α 1 ) .
For every i { 1 , , k } , S [ α i ] B = ϕ and | S [ j ] B | = 1 , j = α i + 1 , , β i 1 , so applying Lemma 7, we have that B contains all largest s-class elements for all s { α i + 1 , , β i } , where i = 1 , , k . Therefore, Y B , where Y is the set of all largest s-class elements for all s { α i + 1 , , β i } , where i = 1 , , k .
Since X { v 0 , , v r 1 } , Y { v n r , , v n 1 } , and thus X Y = ϕ and | X Y | = | X | + | Y | = α 1 + i = 1 k 1 ( α i 1 β i ) + ( r β k ) + i = 1 k ( β i α i ) = r . Again, from Theorem 3, X Y forms a resolving set. Therefore, we write B = X Y .
Case II. 0 β k < α 1 . Here B [ α 1 ] = ϕ , | B [ t ] | = 1 for all t { β k + 1 , , α 1 1 } , so applying Lemma 7, we have { v β k , , v α 1 1 } B . Again, for every i { 1 , 2 , , k 1 } , B [ α i + 1 ] = ϕ and | B [ t ] | = 1 for all t { β i + 1 , , α i + 1 1 } , so applying Lemma 7, we have { v β i , , v α i + 1 1 } B for all i = { 1 , , k 1 } . Thus, i = 1 k 1 { v β i , , v α i + 1 1 } B . Therefore, X B , where X = { v β k , , v α 1 1 } ( i = 1 k 1 { v β i , , v α i + 1 1 } ) , that is,
X = v t : 0 t r 1 , [ t ] ( i = 1 k 1 I [ β i , α i + 1 ) ) I [ β k , α 1 ) .
For every i { 1 , , k 1 } , S [ α i ] B = ϕ and | S [ j ] B | = 1 for all j = α i + 1 , , β i 1 , so applying Lemma 7, we have that B contains all largest s-class elements for all s { α i + 1 , , β i } , where i = 1 , , k 1 . Additionally, B [ α k ] = ϕ , | B [ t ] | = 1 for all t { α k + 1 , , r 1 } { 0 , , β k } , so applying Lemma 7, we have that B contains all largest s-class elements for all s { α k + 1 , , r 1 } { 0 , , β k } . Therefore, Y B , where Y is the set of all largest s-class elements for all s { 0 , , β k } { α k + 1 , , r 1 } ( i = 1 k 1 { α i + 1 , , β i } ) , that is, Y is the set of all largest s-class elements, where [ s ] i = 1 k 1 I ( α i , β i ] I ( α k , β k ] .
Since X { v 0 , , v r 1 } , Y { v n r , , v n 1 } , so X Y = ϕ and | X Y | = | X | + | Y | = ( α 1 β k ) + i = 1 k 1 ( α i 1 β i ) + ( r α k + β k ) + i = 1 k 1 ( β i α i ) = r . Again, from Theorem 3, X Y forms a resolving set. Therefore, we write B = X Y . □

6. Conclusions

In this paper we have determined all metric bases for the power of any n-vertex path P n in the two main Theorems 2 and 4. Theorem 2 determines all metric bases that contain all class elements, whereas Theorem 4 gives the forms of all metric bases that miss one or more classes. Here we pose two related problems.
Problem 1.
A characterization of all metric bases for the power of any n-vertex cycle.
Problem 2.
A characterization of all metric bases for the power of any trees.

Author Contributions

Conceptualization, L.S., M.B., K.T., K.C.D. and Y.S.; investigation, L.S., M.B., K.T., K.C.D. and Y.S.; writing—original draft preparation, L.S., M.B., K.T., K.C.D. and Y.S.; writing—review and editing, L.S., M.B., K.T., K.C.D. and Y.S. All authors have read and agreed to the published version of the manuscript.

Funding

L.S. is supported by the Science and Engineering Research Board, DST, India (Grant No. CRG/2019/006909) and K.C.D. is supported by the National Research Foundation funded by the Korean government (Grant No. 2021R1F1A1050646).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Slater, P. Leaves of trees. In Proceedings of the 6th Southeastern Conference on Combinatorics, Graph Theory and Computing, Boca Raton, FL, USA, 17–20 February 1975; Volume 14, pp. 549–559. [Google Scholar]
  2. Harary, F.; Melter, R. On the metric dimension of a graph. Ars Comb. 1976, 2, 191–195. [Google Scholar]
  3. Adar, R.; Epstein, L. The weighted 2-metric dimension of trees in the non-landmarks model. Discret. Opt. 2015, 17, 123–135. [Google Scholar] [CrossRef]
  4. Bailey, R.F.; Cáceres, J.; Garijo, D.; González, A.; Márquez, A.; Meagher, K.; Puertas, M.L. Resolving sets for Johnson and Kneser graphs. Eur. J. Comb. 2013, 34, 736–751. [Google Scholar] [CrossRef] [Green Version]
  5. Ebrahimi, S.; Nikandish, R.; Tehranian, A.; Rasouli, H. On the Strong metric dimension of annihilator graphs of commutative rings. Bull. Malays. Math. Sci. Soc. 2021, 44, 2507–2517. [Google Scholar] [CrossRef]
  6. Fernau, H.; Heggernes, P.; Hof, P.V.; Meister, D.; Saei, R. Computing the metric dimension for chain graphs. Inf. Process. Lett. 2015, 115, 671–676. [Google Scholar] [CrossRef]
  7. Guo, J.; Wang, K.; Li, F. Metric dimension of some distance-regular graph. J. Comb. Optim. 2013, 26, 190–197. [Google Scholar] [CrossRef] [Green Version]
  8. Kuziak, D.; Yero, I.G.; Rodrguez-Velzquez, J.A. On the strong metric dimension of corona product graphs and join graphs. Discret. Appl. Math. 2013, 161, 1022–1027. [Google Scholar] [CrossRef] [Green Version]
  9. Pirzada, S.; Raja, R. On the metric dimension of a zero-divisor graph. Commun. Algebra 2017, 45, 1399–1408. [Google Scholar] [CrossRef]
  10. Saha, L.; Lama, R.; Tiwary, K.; Das, K.C.; Shang, Y. Fault-tolerant metric dimension of circulant graphs. Mathematics 2022, 10, 124. [Google Scholar] [CrossRef]
  11. Grigorious, C.; Kalinowski, T.; Ryan, J.; Stephen, S. The metric dimension of the circulant graph C(n, ±{1,2,3,4}). Australas. J. Comb. 2017, 69, 417–441. [Google Scholar]
  12. Khuller, S.; Raghavachari, B.; Rosenfeld, A. Landmarks in graphs. Discrete Appl. Math. 1996, 70, 217–229. [Google Scholar] [CrossRef] [Green Version]
Figure 1. Anyone of filled circles in the left figure represents an intermediate class between [ 1 ] and [ 5 ] ; and in the right figure filled circles represent the same from [ 6 ] to [ 2 ] .
Figure 1. Anyone of filled circles in the left figure represents an intermediate class between [ 1 ] and [ 5 ] ; and in the right figure filled circles represent the same from [ 6 ] to [ 2 ] .
Mathematics 10 02445 g001
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Saha, L.; Basak, M.; Tiwary, K.; Das, K.C.; Shang, Y. On the Characterization of a Minimal Resolving Set for Power of Paths. Mathematics 2022, 10, 2445. https://doi.org/10.3390/math10142445

AMA Style

Saha L, Basak M, Tiwary K, Das KC, Shang Y. On the Characterization of a Minimal Resolving Set for Power of Paths. Mathematics. 2022; 10(14):2445. https://doi.org/10.3390/math10142445

Chicago/Turabian Style

Saha, Laxman, Mithun Basak, Kalishankar Tiwary, Kinkar Chandra Das, and Yilun Shang. 2022. "On the Characterization of a Minimal Resolving Set for Power of Paths" Mathematics 10, no. 14: 2445. https://doi.org/10.3390/math10142445

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop