Next Article in Journal
Dynamical Analysis of the Covarying Coupling Constants in Scalar–Tensor Gravity
Previous Article in Journal
PREIUD: An Industrial Control Protocols Reverse Engineering Tool Based on Unsupervised Learning and Deep Neural Network Methods
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Constant Time Calculation of the Metric Dimension of the Join of Path Graphs

1
School of Mathematics and Big Data, Guizhou Normal College, Guiyang 550018, China
2
Department of Mathematics and Statistics, The University of Haripur, Haripur 22620, Pakistan
3
Department of Basic Sciences and Humanities, National University of Sciences and Technology, Islamabad 24090, Pakistan
4
Department of Mathematical Engineering, Polytechnic University of Tirana, 1001 Tirana, Albania
5
Department of Economics, Ibn e Haldun University, Istanbul 34480, Turkey
*
Author to whom correspondence should be addressed.
Symmetry 2023, 15(3), 708; https://doi.org/10.3390/sym15030708
Submission received: 26 January 2023 / Revised: 22 February 2023 / Accepted: 7 March 2023 / Published: 12 March 2023
(This article belongs to the Section Mathematics)

Abstract

:
The distance between two vertices of a simple connected graph G, denoted as d ( u , v ) , is the length of the shortest path from u to v and is always symmetrical. An ordered subset W = w 1 , w 2 , w 3 , , w k of V ( G ) is a resolving set for G, if for ∀ u , v V ( G ) , there exists w i W d ( u , w i ) d ( v , w i ) . A resolving set with minimal cardinality is called the metric basis. The metric dimension of G is the cardinality of metric basis of G and is denoted as d i m ( G ) . For the graph G 1 = ( V 1 , E 1 , ) and G 2 = ( V 2 , E 2 ) , their join is denoted by G 1 + G 2 . The vertex set of G 1 + G 2 is V 1 V 2 and the edge set is E = E 1 E 2 u v , u V 1 , v V 2 . In this article, we show that the metric dimension of the join of two path graphs is unbounded because of its dependence on the size of the paths. We also provide a general formula to determine this metric dimension. We also develop algorithms to obtain metric dimensions and a metric basis for the join of path graphs, with respect to its symmetries.
MSC:
05C35; 05C12; 05C99

1. Introduction

The study of metric dimension, d i m ( G ) , was first initiated by Slater and Peter [1,2]. They were studying the problem of determining the exact location of an intruder in a network. They used the terms “locating set” and “location number” to define their concepts. Independently, Hararay and Melter [3] studied the same concepts and used the term “metric dimension”. They calculated the metric dimensions of trees and grid graphs and gave a characterization of graphs with small metric dimensions.
In this article, we use the terminology developed by Hararay and Melter. The metric dimension is defined to be the cardinality of the smallest “resolving set” [3]. Chartrand et al. [4] used the term “metric basis” for the smallest resolving set. An ordered subset W = { w 1 , w 2 , , w k } V ( G ) is a metric basis for a simple graph G, and then the k-vector, d ( v , w 1 ) , d ( v , w 2 ) , , d ( v , w k ) , is termed as the representation of the vertex v with respect to the ordered subset W and is denoted as r ( v | W ) .
The concept of metric dimension in graphs has drawn a lot of interest from researchers. Chartrand et al. [4] calculated the metric dimensions of trees and unicyclic graphs. They also gave the characterization of graphs with metric dimensions 1, n 2 and n 1 . Klien and Yi [5] studied the metric dimensions of para-line graphs. They also compared the metric dimensions of graphs, line graphs and para-line graphs. Ahmed et al. [6] calculated the exact values for the metric dimensions of the kayak paddles graph. They also calculated the metric dimensions of cycles with a chord. Sedlar and Skrekovski [7] showed that the vertex and edge metric dimensions of unicyclic graphs obtain values from two particular consecutive integers, which can be determined from the structure of the graph. Abrishami et al. [8] calculated the local metric dimensions for graphs having small clique numbers. Hayat et al. [9] determined the exact values of metric dimensions of multi-partite graphs, effectively generalizing the already established results of bipartite graphs. For further studies on metric dimensions, we refer the reader to [10,11,12,13,14,15,16,17,18] and the references therein.
The metric basis and metric dimensions have also been studied under numerous graph operations. Cáceres et al. [19] studied the metric dimensions of the Cartesian product of graphs. They established that there is a family of graphs G with bounded metric dimensions such that the metric dimension of G × G is unbounded. Jiang and Polyanskii [20] showed that the metric dimensions of the Cartesian product of n copies of G of order q, is ( 2 + o ( 1 ) ) n / l o g q n . Fehr et al. [21] studied the metric dimensions of Cayley digraphs. Nazeer et al. [22] calculated the metric dimensions of path-related graphs for applications in network optimization. Eroh et al. [23] studied the effect on metric dimensions of a graph G when a vertex and/or edge is deleted from G. Sebő et al. [24] used the concept of metric dimensions, strong metric generators and isometric embedding to show that the existence of connected joins of graphs can be solved in polynomial time.
Metric dimensions of graphs have applications in robot navigation and drug discovery [4], combinatorial optimization [24] and strategies for the mastermind game [25]. It was observed by Khuller et al. in [26] that the metric dimension of an arbitrary n-vertex graph may be approximated in polynomial time. An obvious question is, can we reduce this calculation time for some special types of graphs? In this article, we try to answer this for the join of two path graphs.

1.1. Motivation

Metric dimension of the join of two graphs was studied by Shahida and Sunitha [27]. They considered two paths of lengths m and n and showed that
d i m ( P m + P n ) = 1 m = n = 1 2 2 m 3 m 2 + n 1 1 n , 4 m
If we consider m = 6 and n = 4 , then by Equation (1), d i m ( P 6 + P 4 ) = 6 . Let us assume that the vertices are labelled as { v 1 , v 2 , , v m + n } ; then it is an easy exercise to show that the set { v 2 , v 4 , v 7 , v 8 } is a resolving set for P 6 + P 4 , implying that d i m ( P 6 + P 4 ) 6 .
Rawat and Pradhan [28] improved the results of Shahida and Sunitha and calculated that
d i m ( P m + P n ) = 3 ; 2 m 5 and 2 n 3 , 4 ; 2 m 5 and n = 6 or 4 m 6 and n = 4 , 5 5 ; m = n = 6 n 2 ; 2 m 3 and 7 n n 2 + 1 ; 4 m 6 and 7 n m 2 + n 2 2 7 n and 7 m
Let us now consider m = 11 and n = 11 . Then, by Equation (2), d i m ( P 11 + P 11 ) = 10 . Again, assuming that the vertices are labeled as { v 1 , v 2 , , v m + n } , one can easily see that the set { v 2 , v 4 , v 7 , v 9 , v 13 , v 15 , v 18 , v 20 } is a resolving set for P 11 + P 11 . One can also verify that the above result does not hold whenever m 11 or n 11 .
The above discussion shows that there is an obvious vacuum in the literature for the calculation of metric dimension of join of two path graphs. Haryanto et al. [29] tried to fill this gap and calculated the metric dimensions of P 2 + P t . The question of d i m ( P s + P t ) is still open when s > 2 .
The present study was aimed at calculating the metric dimensions of P m + P n for all values of m and n. This enabled the calculation of d i m ( P m + P n ) in constant time. We also provide an algorithm of complexity O ( n ) to calculate the metric bases for P m + P n . Since the joining of graphs is a symmetric operation, we can see that P m + P n is siomorphic to P n + P m .

1.2. Preliminaries

Let G = ( V ( G ) , E ( G ) ) be a simple, connected and undirected graph. The number of vertices in a graph is said to be the order of the graph. The distance between two vertices u , v of a graph G, denoted by d ( u , v ) , is the length of the shortest path between them. It is clear that d ( u , v ) = d ( v , u ) , since the distance is always symmetrical. The representation of a vertex u V ( G ) with respect to an ordered set W = w 1 , w 2 , w 3 , , w k V ( G ) , denoted by r ( u | W ) , is the k-tuple ( d ( u , w 1 ) , d ( u , w 2 ) , , d ( u , w k ) ) . We say that W V ( G ) resolves the graph G, if for any two vertices u , v G , there exists at least one w i W such that d ( u , w i ) d ( v , w i ) ; equivalently, W resolves G if for any two vertices u , v G , we have, r ( u | W ) r ( v | W ) . A resolving set W of minimum cardinality is called the metric basis for the graph G, and W is the metric dimension of G.
Let G = ( V 1 , E 1 ) and H = ( V 2 , E 2 ) be simple, connected and non-trivial graphs. The join of these graphs, G + H , is a graph with V ( G + H ) = { V 1 V 2 } and E ( G + H ) = { E 1 E 2 { e = u v , u V 1 , v V 2 } } . From the definition of a join of graphs, we see that the join operation is a symmetric operation. We can also easily conclude that d ( u , v ) = 1 whenever u V 1 , v V 2 .
Two graphs G and H are said to be isomorphic, denoted as G H , if there exists a bijection, θ : V ( G ) V ( H ) , such that u v in G if and only if θ ( u ) θ ( v ) in H.
In what follows, for simplicity we will write W w to represent the union of a set and a single vertex.

2. Metric Dimension of the Join of Two Path Graphs

In this section we study the resolving set of the join of two path graphs. Let P s and P t be paths of order s and t respectively; then, the join of these two paths P s + P t is as given in the following.
V ( P s + P t ) = V ( P s ) V ( P t ) = { v i : 1 i s } { v j : s + 1 j s + t }
E ( P s + P t ) = E ( P s ) E ( P t ) { v i v j , 1 i s , s + 1 j s + t }
Note that for v i , v j P s , d ( v i , v j ) = 1 if i = j + 1 or i = j 1 (equivalently v i v j ), and d ( v i , v j ) = 2 otherwise. On the other hand, v i P s , v j P t , we have d ( v i , v j ) = 1 . We also consider s + t = n , whenever n is considered as an order of this graph. These concepts can be clarified from Figure 1. The join operation for graphs is a symmetric operation since V ( P s ) V ( P t ) = V ( P t ) V ( P s ) , and
E ( P t + P s ) = E ( P t ) E ( P s ) { v j v i , 1 i s , s + 1 j s + t } .
We provide a concrete short example of the symmetry at work in this operation.
Example 1. 
Let us consider the joins P s + P t and P t + P s when P s P 3 and P t P 4 . Their figure is provided below.
Symmetry 15 00708 i001
Let us define a mapping Φ : P s + P t P t + P s , where Φ ( v 1 ) = v 5 , Φ ( v 2 ) = v 6 , Φ ( v 3 ) = v 7 , Φ ( v 4 ) = v 1 , Φ ( v 5 ) = v 2 , Φ ( v 6 ) = v 3 , and Φ ( v 7 ) = v 4 .
It can be easily verified that P s + P t P t + P s under the mapping Φ. This ensures that P s + P t and P t + P s are the same graph with respect to their symmetry. It can also be concluded that if a set W is a resolving set for P s + P t , then Φ ( W ) is a resolving set for P t + P s , owing to the symmetry between them.
We now move on to state and prove our results for this section.
Theorem 1. 
For s = 1 , 2 , 3 , 6 and t 6
d i m ( P s + P t ) = 1 + s 2 s 5 t = 1 2 + s 2 s 5 2 t 5 3 + s 2 s 5 t = 6
Proof. 
For this proof, we will discuss all the cases of s and t separately. Note that the vertices are labeled as v 1 , v 2 , , v s , v s + 1 , v s + 2 , , v s + t .
Case 1. 
When s = 1 . For t = 1 and 2, the results are obvious, since P 1 + P 1 = P 2 and P 1 + P 2 = K 3 . We discuss the remaining cases of t in the following.
[a.]
t = 3 : From Equation (1), d i m ( P 1 + P 3 ) = 2 . Let W = v 1 , v 2 ; then, r ( v 3 | W ) = ( 1 , 1 ) and r ( v 4 | W ) = ( 1 , 2 ) , ‘indicating that W = v 1 , v 2 is a resolving set for P 1 + P 3 . Let us consider the set W { v 1 } . In that case, r ( v 1 | W ) = r ( v 3 | W ) = ( 1 ) , and if we consider the set W { v 2 } , we can see that r ( v 2 | W ) = r ( v 3 | W ) = r ( v 4 | W ) = ( 1 ) , implying that these two sets do not resolve P 1 + P 3 , and hence d i m ( P 1 + P 3 ) = 2 .
In the remaining cases, we only show that a resolving set of stated cardinality exists. These resolving sets are very small and well structured, and it can be easily shown that a smaller resolving set does not exist. We will omit this part of the proof from all other cases.
[b.]
t = 4 : Equation (1) d i m ( P 1 + P 4 ) = 2 . Let us take W = v 2 , v 3 as a resolving set; then, r ( v 1 | W ) = ( 1 , 1 ) , r ( v 4 | W ) = ( 2 , 1 ) and r ( v 5 | W ) = ( 2 , 2 ) , giving us d i m ( P 1 + P 4 ) = 2 .
[c.]
t = 5 : By Equation (1), d i m ( P 1 + P 5 ) = 2 . Let W = v 2 , v 6 ; then, r ( v 1 | W ) = ( 1 , 1 ) , r ( v 3 | W ) = ( 1 , 2 ) , r ( v 4 | W ) = ( 2 , 2 ) and r ( v 5 | W ) = ( 2 , 1 ) , implying that W = v 2 , v 6 is a resolving set.
[d.]
t = 6 : Again, with the help of Equation (1), d i m ( P 1 + P 6 ) = 3 . Let W = v 1 , v 3 , v 5 ; then, r ( v 2 | W ) = ( 1 , 1 , 2 ) , r ( v 4 | W ) = ( 1 , 1 , 1 ) , r ( v 6 | W ) = ( 1 , 2 , 1 ) and r ( v 7 | W ) = ( 1 , 2 , 2 ) , giving us, d i m ( P 1 + P 6 ) = 3 .
Case 2. 
When s = 2 . For t = 1 and 2, the results are again obvious, since P 2 + P 1 = K 3 and P 2 + P 2 = K 4 . Following the same pattern as above, we discuss the remaining cases of t as follows.
[a.]
t = 3 : d i m ( P 2 + P 3 ) = 3 by Equation (1). Let W = v 1 , v 2 , v 3 ; then, r ( v 4 | W ) = ( 1 , 1 , 1 ) and r ( v 5 | W ) = ( 1 , 1 , 2 ) d i m ( P 2 + P 3 ) = 3 .
[b.]
t = 4 : From Equation (1), d i m ( P 2 + P 4 ) = 3 . Let W = v 1 , v 3 , v 4 ; then, r ( v 2 | W ) = ( 1 , 1 , 1 ) , r ( v 5 | W ) = ( 1 , 2 , 1 ) , r ( v 6 | W ) = ( 1 , 2 , 2 ) ; hence, d i m ( P 2 + P 4 ) = 3 .
[c.]
t = 5 : d i m ( P 2 + P 5 ) = 3 by using Equation (1). Let W = v 1 , v 3 , v 7 ; then, r ( v 2 | W ) = ( 1 , 1 , 1 ) , r ( v 4 | W ) = ( 1 , 1 , 2 ) , r ( v 5 | W ) = ( 1 , 2 , 2 ) , r ( v 6 | W ) = ( 1 , 2 , 1 ) ; hence, d i m ( P 2 + P 5 ) = 3 .
[d.]
t = 6 : Equation (1) d i m ( P 2 + P 6 ) = 4 . Let W = v 1 , v 2 , v 4 , v 6 ; then, r ( v 3 | W ) = ( 1 , 1 , 1 , 2 ) , r ( v 5 | W ) = ( 1 , 1 , 1 , 1 ) , r ( v 7 | W ) = ( 1 , 1 , 2 , 1 ) and r ( v 8 | W ) = ( 1 , 1 , 2 , 2 ) , giving us the result.
Case 3. 
When s = 3 . When t = 1 , we obtain P 3 + P 1 , which is isomophic to P 1 + P 3 , and the result follows from Case 1.a. Similarly, when t = 2 , we have P 3 + P 2 P 2 + P 3 , and the result follows from Case 2.a. The remaining cases for different values of t are given in the following.
[a.]
t = 3 : d i m ( P 3 + P 3 ) = 3 by Equation (1). Let W = v 1 , v 2 , v 4 ; then, r ( v 3 | W ) = ( 2 , 1 , 1 ) , r ( v 5 | W ) = ( 1 , 1 , 1 ) and r ( v 6 | W ) = ( 1 , 1 , 2 ) . Hence, d i m ( P 3 + P 3 ) = 3 .
[b.]
t = 4 : Using Equation (1), we obtain d i m ( P 3 + P 4 ) = 3 . Let W = v 1 , v 4 , v 5 ; then, r ( v 2 | W ) = ( 1 , 1 , 1 ) , r ( v 3 | W ) = ( 2 , 1 , 1 ) , r ( v 6 | W ) = ( 1 , 2 , 1 ) , r ( v 7 | W ) = ( 1 , 2 , 2 ) d i m ( P 3 + P 4 ) = 3 .
[c.]
t = 5 : From Equation (1), d i m ( P 3 + P 5 ) = 3 . Let W = v 1 , v 4 , v 8 ; then, r ( v 2 | W ) = ( 1 , 1 , 1 ) , r ( v 3 | W ) = ( 2 , 1 , 1 ) , r ( v 5 | W ) = ( 1 , 1 , 2 ) , r ( v 6 | W ) = ( 1 , 2 , 2 ) , r ( v 7 | W ) = ( 1 , 2 , 1 ) , and hence d i m ( P 3 + P 5 ) = 3 .
[d.]
t = 6 : By Equation (1), d i m ( P 3 + P 6 ) = 4 . Let W = v 1 , v 2 , v 5 , v 7 ; then, r ( v 3 | W ) = ( 2 , 1 , 1 , 1 ) , r ( v 4 | W ) = ( 1 , 1 , 1 , 2 ) , r ( v 6 | W ) = ( 1 , 1 , 1 , 1 ) , r ( v 8 | W ) = ( 1 , 1 , 2 , 1 ) and r ( v 9 | W ) = ( 1 , 1 , 2 , 2 ) , implying d i m ( P 3 + P 6 ) = 4 .
Case 4. 
When s = 6 . When t = 1 , we obtain P 6 + P 1 , which is isomophic to P 1 + P 6 , and the result follows from Case 1.d. Similarly when t = 2 , we have P 6 + P 2 P 2 + P 6 (Case 2.d), and when t = 3 , we have P 6 + P 3 P 3 + P 6 , and d i m ( P 6 + P 3 ) is the same as in Case 3.d.
[a.]
t = 4 : Equation (1) d i m ( P 6 + P 4 ) = 4 . Let W = v 2 , v 4 , v 7 , v 8 ; then, r ( v 1 | W ) = ( 1 , 2 , 1 , 1 ) , r ( v 3 | W ) = ( 1 , 1 , 1 , 1 ) , r ( v 5 | W ) = ( 2 , 1 , 1 , 1 ) , r ( v 6 | W ) = ( 2 , 2 , 1 , 1 ) , r ( v 9 | W ) = ( 1 , 1 , 2 , 1 ) , r ( v 10 | W ) = ( 1 , 1 , 2 , 2 ) , and hence d i m ( P s + P t ) = 4 .
[b.]
t = 5 : By Equation (1), d i m ( P 6 + P 5 ) = 4 . Let W = v 2 , v 4 , v 7 , v 11 ; then, r ( v 1 | W ) = ( 1 , 2 , 1 , 1 ) , r ( v 3 | W ) = ( 1 , 1 , 1 , 1 ) , r ( v 5 | W ) = ( 2 , 1 , 1 , 1 ) , r ( v 6 | W ) = ( 2 , 2 , 1 , 1 ) , r ( v 8 | W ) = ( 1 , 1 , 1 , 2 ) , r ( v 9 | W ) = ( 1 , 1 , 2 , 2 ) , r ( v 10 | W ) = ( 1 , 1 , 2 , 1 ) ; hence, d i m ( P 6 + P 4 ) = 4 .
[c.]
t = 6 : From Equation (1), d i m ( P 6 + P 6 ) = 5 . Let W = v 1 , v 2 , v 4 , v 8 , v 10 ; then, r ( v 3 | W ) = ( 2 , 1 , 1 , 1 , 1 ) , r ( v 5 | W ) = ( 2 , 2 , 1 , 1 , 1 ) , r ( v 6 | W ) = ( 2 , 2 , 2 , 1 , 1 ) , r ( v 7 | W ) = ( 1 , 1 , 1 , 1 , 2 ) , r ( v 9 | W ) = ( 1 , 1 , 1 , 1 , 1 ) , r ( v 11 | W ) = ( 1 , 1 , 1 , 2 , 1 ) aand r ( v 12 | W ) = ( 1 , 1 , 1 , 2 , 2 ) , and hence, d i m ( P 6 + P 6 ) = 5 .
Theorem 2. 
When s = 4 , 5 and t 6 ; then,
d i m ( P s + P t ) = 2 t = 1 3 2 t 3 4 4 t 6
Proof. 
We again discuss this for all cases of s and t seperately.
Case 1. 
When s = 4 . When t = 1 , we obtain P 4 + P 1 , which is isomophic to P 1 + P 4 , and the result follows from Theorem 3.1 Case 1.b. Similarly, when t = 2 , we have P 4 + P 2 P 2 + P 4 (Theorem 1, Case 2.b), and t = 3 gives P 4 + P 3 P 3 + P 4 (Theorem 1, Case 3.b).
[a.]
t = 4 . From Equation (6), d i m ( P 4 + P 4 ) = 4 . Let W = v 1 , v 2 , v 5 , v 6 ; then, r ( v 3 | W ) = ( 2 , 1 , 1 , 1 ) , r ( v 4 | W ) = ( 2 , 2 , 1 , 1 ) , r ( v 7 | W ) = ( 1 , 1 , 2 , 1 ) and r ( v 8 | W ) = ( 1 , 1 , 2 , 2 ) , giving us d i m ( P 4 + P 4 ) = 4 .
[b.]
t = 5 . By Equation (6), d i m ( P 4 + P 5 ) = 4 . Let W = v 1 , v 2 , v 5 , v 7 ; then, r ( v 3 | W ) = ( 2 , 1 , 1 , 1 ) , r ( v 4 | W ) = ( 2 , 2 , 1 , 1 ) , r ( v 6 | W ) = ( 1 , 1 , 1 , 1 ) , r ( v 8 | W ) = ( 1 , 1 , 2 , 1 ) and r ( v 9 | W ) = ( 1 , 1 , 2 , 2 ) . Hence d i m ( P 4 + P 5 ) = 4 .
[c.]
t = 6 , Equation (6) d i m ( P 4 + P 6 ) = 4 . Let W = v 1 , v 2 , v 6 , v 8 ; then, r ( v 3 | W ) = ( 2 , 1 , 1 , 1 ) , r ( v 4 | W ) = ( 2 , 2 , 1 , 1 ) , r ( v 5 | W ) = ( 1 , 1 , 1 , 2 ) , r ( v 7 | W ) = ( 1 , 1 , 1 , 1 ) , r ( v 9 | W ) = ( 1 , 1 , 2 , 1 ) and r ( v 10 | W ) = ( 1 , 1 , 2 , 2 ) , and hence d i m ( P 4 + P 6 ) = 4 .
Case 2. 
When s = 5 . When t = 1 , we obtain P 5 + P 1 , which is isomophic to P 1 + P 5 , and the result follows from Theorem 1, Case 1.c. Similarly, when t = 2 , we have P 5 + P 2 P 2 + P 5 (Theorem 1, Case 2.c); when t = 3 , we have P 5 + P 3 P 3 + P 5 (Theorem 1, Case 3.c); when t = 4 , we obtain P 5 + P 4 P 4 + P 5 (Same Theorem, Case 1.b); and when t = 6 , we have P 5 + P 6 P 6 + P 5 (Theorem 1, Case 4.b).
[a.]
t = 5 , by Equation (6), d i m ( P 5 + P 5 ) = 4 . Let W = v 1 , v 3 , v 6 , v 10 ; then, r ( v 2 | W ) = ( 1 , 1 , 1 , 1 ) , r ( v 4 | W ) = ( 2 , 1 , 1 , 1 ) , r ( v 5 | W ) = ( 2 , 2 , 1 , 1 ) , r ( v 7 | W ) = ( 1 , 1 , 1 , 2 ) , r ( v 8 | W ) = ( 1 , 1 , 2 , 2 ) and r ( v 9 | W ) = ( 1 , 1 , 2 , 1 ) , implying d i m ( P 5 + P 5 ) = 4 .
We now move on to P s + P t when s 1 and t 7 . Before proceeding further, we define some new notation and concepts which will be used later on.
Let β x = ( x 1 ) and α x = β x mod 5 , where x Z + { 0 } . The term β x mod 5 is used for the remainder, when β x is divided by 5. Using these concepts, we partition the vertex set of P s from Figure 1 as follows:
S 1 = v 2 i 1 : i 1 , , α s 2 S 2 = v 2 i : i 1 , , α s 2
S 3 = v 5 i + α s : i 1 , , β s 5 S 4 = v 5 i + α s 1 : i 1 , , β s 5
S 5 = v 5 i + α s 2 : i 1 , , β s 5 S 6 = v 5 i + α s 3 : i 1 , , β s 5
S 7 = v 5 i + α s 4 : i 1 , , β s 5 + 1
We also partition the vertex set of P t from Figure 1 along the same lines. This partition is given in the following:
T 1 = v 2 i + β s : i 1 , , α t 2 T 2 = v 2 i + s : i 1 , , α t 2
T 3 = v 5 i + α s + α t + 5 β s 5 : i 1 , , β t 5
T 4 = v 5 i + α s + α t + 5 β s 5 1 : i 1 , , β t 5
T 5 = v 5 i + α s + α t + 5 β s 5 2 : i 1 , , β t 5
T 6 = v 5 i + α s + α t + 5 β s 5 3 : i 1 , , β t 5 + 1
T 7 = v 5 i + α s + α t + 5 β s 5 + 1 : i 1 , , β t 5
From the definition of S i , we can easily deduce certain properties which will be helpful later on. We provide them in the following.
(I)
When 1 s 5 , we obtain 0 β s 4 . This gives β s 5 = 0 , implying, S i = ϕ for i { 3 , 4 , 5 , 6 } .
(II)
For s > 5 , S i ϕ for i { 3 , 4 , 5 , 6 , 7 } .
(III)
When s mod 5 = 1 , we obtain α s = β s mod 5 = 0 S 1 = S 2 = ϕ .
(IV)
When s mod 5 = 2 , S 1 ϕ and S 2 = ϕ .
(V)
When s mod 5 = 0 , 3 , 4 , S 1 ϕ and S 2 ϕ .
Similarly, for the partitions T i , we list the following properties.
(VI)
Since t 7 , T i ϕ for i { 3 , 4 , 5 , 6 , 7 } .
(VII)
When t mod 5 = 1 , T 1 = T 2 = ϕ .
(VIII)
When t mod 5 = 2 , T 1 ϕ and T 2 = ϕ .
(IX)
When t mod 5 = 0 , 3 , 4 , T 1 ϕ and T 2 ϕ .
We also claim that v s S 7 . To realize this, we proceed as follows.
Since s Z + , β s Z + { 0 } . Now
β s mod 5 = r where 0 r 4 ( s 1 ) mod 5 = r : 0 r 4 s 1 = 5 q + r : 0 r 4 and q Z + { 0 } s 1 5 = q + r 5 : 0 r 4 and q Z + { 0 } s 1 5 = q : q Z + { 0 }
Next, we investigate the last vertex of S 7 , i.e., v 5 i + α s 4 , when i = β s 5 + 1 . Now,
5 i + α s 4 = 5 s 1 5 + 1 + ( s 1 ) mod 5 4 = 5 ( q + 1 ) + r 4 since s 1 5 = q and ( s 1 ) mod 5 = r = 5 q + r + 1 = s since 5 q + r = s 1 .
Hence, v s S 7 = v 5 i + α s 4 : i 1 , , β s 5 + 1 .
It is worthwhile to mention here that, at the end of this article, we provide an algorithm based on our results. The loops counters in the algorithm work in such a way that the above-stated properties of S i and T i are handled inherently, and the end user does not need to worry about these finer points of mathematics.
Armed with this knowledge, we now proceed to state and prove the main result of this article.
Theorem 3. 
For s 1 and t 7 (or vice versa), the metric dimension of P s + P t is
d i m ( P s + P t ) = 2 β s 5 + β t 5 + α s 2 + α t 2
Proof. 
This proof is completed in two parts. In part 1, we establish that we can in fact generate a resolving set W of P s + P t of the above cardinality. In part 2, we show that there does not exist any resolving set of P s + P t having fewer vertices than W.
Part I
Let W = W s W t . Here, W s V ( P s ) and W t V ( P t ) and W s = W s 1 W s 2 W s 3 and W t = W t 1 W t 2 W t 3 , where W s i and W t i are defined as:
W s 1 = S 1 = v 2 i 1 : i 1 , , α s 2
W s 2 = S 6 = v 5 i + α s 3 : i 1 , , β s 5
W s 3 = S 4 = v 5 i + α s 1 : i 1 , , β s 5
W t 1 = T 1 = v 2 i + β s : i 1 , , α t 2
W t 2 = T 5 = v 5 i + α s + α t + 5 β s 5 2 : i 1 , , β t 5
W t 3 = T 3 = v 5 i + α s + α t + 5 β s 5 : i 1 , , β t 5
It is easy to calculate that W = 2 β s 5 + β t 5 + α s 2 + α t 2 . We will prove that the set W, generated above, is indeed a resolving set for P s + P t . For this, we will show that, for any pair of distinct vertices v a , v b V ( G ) , there exists v w W , such that d ( v a , v w ) d ( v b , v w ) .
Let v a , v b V ( P s + P t ) , v a v b ; then, without loss of generality, 1 a < b s + t , since otherwise, we can just rename the indices to obtain the same. We only consider the case when v a , v b W . From the fact that v a W , it is obvious that v a enjoys any one of the following forms:
(1)
v a S 2 ; equivalently; v a v 2 i : i 1 , , α s 2
(2)
v a S 7 ; equivalently; v a v 5 i + α s 4 : i 1 , , β s 5 + 1
(3)
v a S 5 ; equivalently; v a v 5 i + α s 2 : i 1 , , β s 5
(4)
v a S 3 ; equivalently; v a v 5 i + α s : i 1 , , β s 5
(5)
v a T 2 ; equivalently; v a v s + 2 i : i 1 , , α t 2
(6)
v a T 6 ; equivalently; v a v 5 i + α s + α t + 5 β s 5 3 : i 1 , , β t 5 + 1
(7)
v a T 4 ; equivalently; v a v 5 i + α s + α t + 5 β s 5 1 : i 1 , , β t 5
(8)
v a T 7 ; equivalently; v a v 5 i + α s + α t + 5 β s 5 + 1 : i 1 , , β t 5
It should be noted that v b W ensures that v b also adheres to the above given forms, and since b > a , we will use the index j > i to denote different forms of v b .
The proof is divided into different cases. The proof for every case follows a set pattern, wherein for every v a , v b W , we find v w W , such that d ( v a , v w ) d ( v b , v w ) . This ensures that the representations r ( v a | W ) r ( v b | W ) .
Case 1. 
When v a , v b P s , since v a P s , v a can assume any one of the forms (1) to (4). We discuss all these cases separately.
[a.]
Suppose that v a is of the form as given in (1); then, v a v 2 i a = 2 i : i 1 , , α s 2 . Let us take w = a 1 = 2 i 1 v w v 2 i 1 ; then, d ( v a , v w ) = d ( v 2 i , v 2 i 1 ) = 1 .
Given that v b P s , it can assume any of the forms (1) to (4). For all of them, it is given that a < b , and we will be using this information to solve all four cases of v b in one go. We will not be repeating this information in all the other cases, but it is inherently present in there.
Now b > a > a 1 v b v a 1 = v w , and since v b , v w P s , we obtain d ( v b , v w ) = 2 .
[b.]
Let v a be of the form given in (2); then, v a v 5 i + α s 4 a = 5 i + α s 4 : i 1 , , β s 5 + 1 .
Now, if v b v 5 i + α s 2 , then by letting w = a + 1 = 5 i + α s 3 , we obtain v w = v 5 i + α s 3 . Since b 5 i + α s 4 ( b a ) and b 5 i + α s 2 , we obtain v b v w . Again, v b , v w V ( P s ) d ( v b , v w ) = 2 , while d ( v a , v w ) = 1 .
If v b v 5 i + α s 2 , then defining w as above gives us v b v w . For this case, let w = a + 3 = 5 i + α s 1 v w = v 5 i + α s 1 . From the structure of v a , v b , v w P s , it is clear that v a v w , while v b v w . Hence, d ( v b , v w ) = 1 , while d ( v a , v w ) = 2 .
[c.]
If v a is of the form given in (3), then v a v 5 i + α s 2 a = 5 i + α s 2 : i 1 , , β s 5 . Let w = a 1 = 5 i + α s 3 v w v 5 i + α s 3 . Now v a v w d ( v a , v w ) = 1 . Again, since w = a 1 < a < b and v w , v b P s , we obtain v b v w , giving us d ( v b , v w ) = 2 .
[d.]
If v a is of the form given in (4), then v a v 5 i + α s a = 5 i + α s : i 1 , , β s 5 . Let w = a 1 = 5 i + α s 1 v w v 5 i + α s 1 . We obtain d ( v a , v w ) = 1 . It is again an easy task to show that d ( v b , v w ) = 2 for all v b W and v b P s .
Case 2. 
When v a , v b P t , following the same proof techniques as in Case 1, it can be easily shown that there always exists a v w W , belonging to P t , such that d ( v a , v w ) d ( v b , v w ) .
Case 3. 
When v a P s and v b P t :
[a.]
Let v a be of the form as given in (1); then, v a v 2 i a = 2 i : i 1 , , α s 2 . From here, we obtain that a 2 α s 2 .
When s is odd, a 2 α s 2 a ( ( s 1 ) mod 5 ) = α s .
When s is even, a 2 α s 2 a ( ( s 1 ) mod 5 1 ) = α s 1 .
Let us consider the set W s 2 = v 5 j + α s 3 : j 1 , , β s 5 ; then, W s 2 v α s + 2 = v 5 + α s 3 v 5 j + α s 3 : j 1 , , β s 5 . The above argument ensures that the smallest element of the set W s 2 is v α s + 2 . Let v w = v α s + 2 ; then, d ( v a , v w ) = 2 , since a α s if s is odd, and a α s 1 if s is even.
On the other hand, since v b P t , d ( v b , v w ) = 1 , since v w P s .
[b.]
Let v a be of the form given in (2); then, v a v 5 i + α s 4 a = 5 i + α s 4 : i 1 , , β s 5 + 1 . Let w = a + 3 = 5 i + α s 1 ; then, by construction of v w , we obtain d ( v a , v w ) = 2 and d ( v b , v w ) = 1 for all v b P t .
[c.]
If v a is of the form given in (3); then, v a v 5 i + α s 2 a = 5 i + α s 2 : i 1 , , β s 5 . Let a = 5 j + α s 2 for some specific j 1 , , β s 5 . Let k 1 , , β s 5 such that k j . Consider the vertex v w = v 5 k + α s 3 W s 2 . Since k j , v 5 k + α s 3 v 5 j + α s 2 , giving us d ( v a , v w ) = 2 and d ( v b , v w ) = 1 for all v b P t .
[d.]
If v a is of the form given in (4), then v a v 5 i + α s a = 5 i + α s : i 1 , , β s 5 . Let w = a 3 = 5 i + α s 3 ; then, by construction of v w , we obtain d ( v a , v w ) = 2 and d ( v b , v w ) = 1 for all v b P t .
We have completed our argument to establish that W, as defined above, is indeed a resolving set for P s + P t . In the next part, we will show that W { v w : v w W } is not a resolving set. This will ensure that there does not exist a resolving set smaller than W and W is the metric dimension for P s + P t .
Part II
Since v s V 7 , we obtain v s W s . We now calculate the distance d ( v s , v w ) for all v w W s . Different cases arise for such a v w .
Case I. 
When v w W s 1 , depending on the value of s, W s 1 changes. We discuss these different cases in the following.
[a.]
When s mod 5 = 1 , we obtain W s 1 = , and there is no distance to calculate.
[b.]
When s mod 5 = 2 , then W s 1 = { v 1 } , i.e., v w = v 1 . If s = 2 , then d ( v w , v s ) = 1 ; otherwise, d ( v w , v s ) = 2 .
[c.]
When s mod 5 = 3 , again W s 1 = { v 1 } ; i.e., v w = v 1 and d ( v w , v s ) = 2 .
[d.]
When s mod 5 = 4 , we obtain, W s 1 = { v 1 , v 3 } ; i.e., v w = v 1 or v w = v 3 . If s = 4 , we obtain d ( v 1 , v s ) = 2 and d ( v 3 , v s ) = 1 , and d ( v w , v s ) = 2 for all other such values of s.
[e.]
When s mod 5 = 0 , we again see that W s 1 = { v 1 , v 3 } —i.e., v w = v 1 or v w = v 3 and d ( v w , v s ) = 2 —for all such values of s.
Case II. 
When v w W s 2 . Then, v w v 5 i + α s 3 : i 1 , , β s 5 . We claim that v s v w for all v w W s 2 . Contrarily, let us suppose that v s v w . Since v s is the last vertex of path P s and v w P s , we only have the possibility that the vertex with the largest index in W s 2 is adjacent to v s , implying
5 β s 5 + α s 3 + 1 = s 5 s 1 5 + ( ( s 1 ) mod 5 ) 2 = s
Using the values from the equation set 7, we obtain s 3 = s , which is a contradiction. Hence, v s v 5 β s 5 + α s 3 , implying v s v w for all v w W s 2 , giving us d ( v s , v w ) = 2 for all v w W s 2 .
Case III. 
When v w W s 3 . Then, v w v 5 i + α s 1 : i 1 , , β s 5 . We claim that v s v w for all v w W s 3 . On the contrary, let us suppose that v s v w . Since v s is the last vertex of path P s and v w P s , we only have the possibility that the vertex with the largest index in W s 3 is adjacent to v s , implying
5 β s 5 + α s 1 + 1 = s 5 s 1 5 + ( ( s 1 ) mod 5 ) = s
Again, using the values from equation set 7, we obtain s 1 = s , which is a contradiction. Hence, v s v 5 β s 5 + α s 1 , implying v s v w for all v w W s 3 , giving us d ( v s , v w ) = 2 for all v w W s 3 .
It is our aim to show that whenever we formulate the set W = W { v w : v w W } , there exists a vertex, say v a W , such that r ( v s | W ) = r ( v a | W ) . Again, different cases arise depending on v w .
Case A. 
When v w W s 1 , depending on the value of s, W s 1 changes. We discuss these different cases in the following.
[a.]
When s mod 5 = 1 , we obtain W s 1 = , and there is nothing to discuss.
[b.]
When s mod 5 = 2 , W s 1 = { v 1 } ; i.e., v w = v 1 .
If s = 2 , then r ( v s = v 2 | W ) = ( 1 , 1 , , 1 ) , since all elements of W are in W t . Since v w W , by letting v a = v w = v 1 , we see that r ( v a = v w | W ) = ( 1 , 1 , , 1 ) , since again, all elements of W are in W t . Hence, W is not a resolving set.
On the other hand, if s 2 and s mod 5 = 2 , we again see that W s 1 = { v 1 } . Let W = W v 1 . Then, by the argument in Cases II and III and by the fact that d ( v s , v b ) = 1 for all v b P t , we obtain
r ( v s | W ) = ( 2 , 2 , , 2 W s v w , 1 , 1 , , 1 W t ) .
Considering the vertex v a = v w = v 1 , since v 2 W , all elements of W occur after v 2 ; i.e., all elements of W v 1 occur after v 2 ; hence,
r ( v 1 | W ) = ( 2 , 2 , , 2 W s v w , 1 , 1 , , 1 W t ) .
Hence, W is not a resolving set.
[c.]
When s mod 5 = 3 , again W s 1 = { v 1 } . Considering the vertex v a = v 1 and proceeding in the same way as above, we see that, r ( v s | W ) = r ( v 1 | W ) .
[d.]
When s mod 5 = 4 , W s 1 = { v 1 , v 3 } ; i.e., v w = v 1 or v w = v 3 .
If s = 4 , we can formulate W in two ways; i.e., W = W v 1 or W = W v 3 . If W = W v 1 , by comparing r ( v 2 | W ) and r ( v 4 | W ) , we see that W is not a resolving set. On the other hand, if W = W v 3 , comparing r ( v 3 | W ) and r ( v 4 | W ) gives us that W is not a resolving set.
If s 4 but s mod 5 = 4 , letting v a = v w and comparing r ( v w | W ) and r ( v s | W ) gives us that W is not a resolving set.
[e.]
When s mod 5 = 0 , again, W s 1 = { v 1 , v 3 } —i.e., v w = v 1 or v w = v 3 . As in the case, s 4 and s mod 5 = 4 , by letting v a = v w and comparing the representations of v w and v s with respect to W = W v w , we see that W is not a resolving set.
Case B. 
When v w W s 2 , it is again an easy task to show that
r ( v w | W ) = ( 2 , 2 , , 2 W s v w , 1 , 1 , , 1 W t ) ,
where W = W v w . Similarly,
r ( v s | W ) = ( 2 , 2 , , 2 W s v w , 1 , 1 , , 1 W t ) .
This again shows that W is not a resolving set.
Case C. 
When v w W s 3 , considering the representations r ( v w | W ) and r ( v s | W ) , where W = W v w , we see that r ( v w | W ) = r ( v s | W ) , and again, W is not a resolving set.
For the part where W v w is not a resolving set for all v w W t , the procedure is the same as for W s .
This completes the second part of our theorem. Combining these two together, we see that W is indeed a resolving set with minimal cardinality. Hence, d i m ( P s + P t ) = W . This completes our result. □
The above results conclude that the metric dimension of P s + P t is not an exact number and increases with the size of both paths—i.e., the metric dimension of P s + P t is unbounded.

3. Algorithms for Metric Bases and Metric Dimensions of P s + P t

Theorems 1–3 enable us to calculate the metric dimensions of P s + P t in constant time. An algorithm is developed in the following.
Algorithm 1 Calculating the metric dimension of P s + P t for s 1 and t 1 .
Input s and t
1:
β s s 1
2:
α s ( s 1 ) mod 5
3:
β t t 1
4:
α t ( t 1 ) mod 5
5:
d i m 0
6:
if  t 6  then
7:
  if s { 1 , 2 , 3 , 6 } then
8:
    if  t = 1  then
9:
       d i m 1 + s 2 s 5
10:
    end if
11:
    if  2 t 5  then
12:
       d i m 2 + s 2 s 5
13:
    end if
14:
    if  t = 6  then
15:
       d i m 3 + s 2 s 5
16:
    end if
17:
  end if
18:
  if  s { 4 , 5 }  then
19:
    if  t = 1  then
20:
       d i m 2
21:
    end if
22:
    if  2 t 3  then
23:
       d i m 3
24:
    end if
25:
    if  4 t 6  then
26:
       d i m 4
27:
    end if
28:
  end if
29:
else  d i m 2 β s 5 + β t 5 + α s 2 + α t 2
30:
end if
Output d i m
It can be readily observed that the algorithm uses assignment and if–else statements only. Each of these steps has a complexity of O ( 1 ) . Combining their complexities together gives us a complexity of O ( 1 ) for the whole algorithm.
These theorems also provide us a way to calculate the metric bases for P s + P t . Theorems 1 and 2 establish that the metric bases for P s + P t can be calculated in constant time for 1 s , t 6 . Based on Theorem 3, we developed the following algorithm to calculate the metric bases for P s + P t when s 1 and t 7 .
Algorithm 2 Calculating the metric basis of P s + P t for s 1 and t 7 .
Input s and t
1:
β s s 1
2:
α s ( s 1 ) mod 5
3:
β t t 1
4:
α t ( t 1 ) mod 5
5:
W
6:
for  1 i α s 2  do
7:
W W v 2 i 1
8:
end for
9:
for  1 i β s 5  do
10:
W W v 5 i + α s 3 v 5 i + α s 1
11:
end for
12:
for  1 i α t 2  do
13:
W W v 2 i + β s
14:
end for
15:
for  1 i β s 5  do
16:
W W v 5 i + α s + α t + 5 β s 5 2 v 5 i + α s + α t + 5 β s 5
17:
end for
Output W
The first five statements of the above algorithm are assignments, each having a complexity of O ( 1 ) . Loops in steps 6, 9, 12 and 15 are not nested. The counter ensures that every loop runs less than n = s + t times, with a maximum complexity of O ( n ) . By adding these complexities together, we again obtain O ( n ) ; i.e., the algorithm runs in linear time.
The metric basis we calculated in the algorithm will work for both P s + P t and P t + P s because of isomorphism and symmetry. Let us use this algorithm to solve an example already mentioned in introduction.
Example 2. 
Let s = 11 and t = 11 ; then, β s = β t = 10 and β s 5 = β t 5 = 2 . Again, α s = α t = 0 and α s 2 = α t 2 = 0 . Loops in steps 6 and 12 do not satisfy the condition, and hence will not contribute anything to W. The loop in step 9 will run twice and will give us W = { v 2 , v 4 , v 7 , v 9 } . Similarly, the loop in step 15 will run twice, and we will then obtain W = { v 2 , v 4 , v 7 , v 9 , v 13 , v 15 , v 18 , v 20 } .

4. Conclusions

We considered the join of two path graphs P s and P t and calculated their metric dimensions and metric basis.
We also provided algorithms to calculate the metric dimensions and metric basis of P s + P t . We concluded that the metric-dimension algorithm has a complexity of O ( 1 ) , and the metric-basis algorithm runs with O ( n ) complexity.
Since the metric dimension of an arbitrary n-vertex graph can be approximated in polynomial time [26], we have effectively reduced a lot of computational complexity for the case of P s + P t , and by symmetry, that of P t + P s .

Author Contributions

Conceptualization, G.H., M.U.I.K.; formal analysis, C.Z., G.H., M.U.I.K., F.Y., K.H., A.U.I.K.; Funding acquisition, C.Z.; methodology, M.U.I.K., F.Y., K.H.; validation, C.Z., G.H., M.U.I.K., F.Y., K.H., A.U.I.K., writing—original draft preparation, G.H., M.U.I.K., F.Y.; writing—review and editing, C.Z., G.H., M.U.I.K., F.Y., K.H., A.U.I.K.; visualization, G.H., M.U.I.K., K.H.; supervision, M.U.I.K., K.H.; software, G.H., M.U.I.K., K.H. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Natural Science Research Projects of Department of Education of Guizhou Provincial (No. QianJiaoHe KY[2021]250), the Basic Research Programs of Guizhou Province (No. QianKeHe ZK[2023]279), the Social Science Research Base Project of Department of Education of Guizhou Provincial (No. 2021JD040), the Education Science Planning Project of Guizhou Province (No. 2020B196), the Doctoral Program of Guizhou Normal College in (No. 2022BS001).

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.J. Leaves of trees. Congr. Numer. 1975, 14, 37. [Google Scholar]
  2. Slater, P.J. Dominating and reference sets in a graph. J. Math. Phys. Sci 1988, 22, 445–455. [Google Scholar]
  3. Melter, F.; Harary, F. On the metric dimension of a graph. Ars. Combin. 1976, 2, 191–195. [Google Scholar]
  4. Chartrand, G.; Eroh, L.; Johnson, M.A.; Oellermann, O.R. Resolvability in graphs and the metric dimension of a graph. Discret. Appl. Math. 2000, 105, 99–113. [Google Scholar] [CrossRef] [Green Version]
  5. Klein, D.J.; Yi, E. A comparison on metric dimension of graphs, line graphs, and line graphs of the subdivision graphs. Eur. J. Pure Appl. Math. 2012, 5, 302–316. [Google Scholar]
  6. Ahmad, A.; Bača, M.; Sultan, S. Computing the metric dimension of kayak paddles graph and cycles with chord. Proyecciones (Antofagasta) 2020, 39, 287–300. [Google Scholar] [CrossRef]
  7. Sedlar, J.; Škrekovski, R. Bounds on metric dimensions of graphs with edge disjoint cycles. Appl. Math. Comput. 2021, 396, 125908. [Google Scholar] [CrossRef]
  8. Abrishami, G.; Henning, M.A.; Tavakoli, M. Local metric dimension for graphs with small clique numbers. Discret. Math. 2022, 345, 112763. [Google Scholar] [CrossRef]
  9. Hayat, S.; Khan, A.; Zhong, Y. On Resolvability—And Domination-Related Parameters of Complete Multipartite Graphs. Mathematics 2022, 10, 1815. [Google Scholar] [CrossRef]
  10. Bailey, R.F.; Meagher, K. On the metric dimension of Grassmann graphs. arXiv 2010, arXiv:1010.4495. [Google Scholar] [CrossRef]
  11. Feng, M.; Wang, K. On the metric dimension of bilinear forms graphs. Discret. Math. 2012, 312, 1266–1268. [Google Scholar] [CrossRef] [Green Version]
  12. Geneson, J.; Kaustav, S.; Labelle, A. Extremal results for graphs of bounded metric dimension. Discret. Appl. Math. 2022, 309, 123–129. [Google Scholar] [CrossRef]
  13. Mashkaria, S.; Odor, G.; Thiran, P. On the robustness of the metric dimension of grid graphs to adding a single edge. Discret. Appl. Math. 2022, 316, 1–27. [Google Scholar] [CrossRef]
  14. Rehman, S.U.; Imran, M.; Javaid, I. On the Metric Dimension of Arithmetic Graph of a Composite Number. Symmetry 2020, 12, 607. [Google Scholar] [CrossRef] [Green Version]
  15. Hussain, Z.; Munir, M.; Chaudhary, M.; Kang, S.M. Computing Metric Dimension and Metric Basis of 2D Lattice of Alpha-Boron Nanotubes. Symmetry 2018, 10, 300. [Google Scholar] [CrossRef] [Green Version]
  16. Knor, M.; Sedlar, J.; Škrekovski, R. Remarks on the Vertex and the Edge Metric Dimension of 2-Connected Graphs. Mathematics 2022, 10, 2411. [Google Scholar] [CrossRef]
  17. Barragán-Ramírez, G.A.; Estrada-Moreno, A.; Ramírez-Cruz, Y.; Rodríguez-Velázquez, J. The Simultaneous Local Metric Dimension of Graph Families. Symmetry 2017, 9, 132. [Google Scholar] [CrossRef] [Green Version]
  18. Imran, S.; Siddiqui, M.K.; Imran, M.; Hussain, M.; Bilal, H.M.; Cheema, I.Z.; Tabraiz, A.; Saleem, Z. Computing the Metric Dimension of Gear Graphs. Symmetry 2018, 10, 209. [Google Scholar] [CrossRef] [Green Version]
  19. Cáceres, J.; Hernando, C.; Mora, M.; Pelayo, I.M.; Puertas, M.L.; Seara, C.; Wood, D.R. On the metric dimension of cartesian products of graphs. SIAM J. Discret. Math. 2007, 21, 423–441. [Google Scholar] [CrossRef] [Green Version]
  20. Jiang, Z.; Polyanskii, N. On the metric dimension of Cartesian powers of a graph. J. Comb. Theory Ser. A 2019, 165, 1–14. [Google Scholar] [CrossRef] [Green Version]
  21. Fehr, M.; Gosselin, S.; Oellermann, O.R. The metric dimension of Cayley digraphs. Discret. Math. 2006, 306, 31–41. [Google Scholar] [CrossRef] [Green Version]
  22. Nazeer, S.; Hussain, M.; Alrawajeh, F.A.; Almotairi, S. Metric Dimension on Path-Related Graphs. Math. Probl. Eng. 2021, 2021, 2085778. [Google Scholar] [CrossRef]
  23. Eroh, L.; Feit, P.; Kang, C.X.; Yi, E. The effect of vertex or edge deletion on the metric dimension of graphs. J. Comb. 2015, 6, 433–444. [Google Scholar] [CrossRef]
  24. Sebo, A.; Tannier, E. On metric generators of graphs. Math. Oper. Res. 2004, 29, 383–393. [Google Scholar] [CrossRef]
  25. Chvátal, V. Mastermind. Combinatorica 1983, 3, 325–329. [Google Scholar] [CrossRef]
  26. Khuller, S.; Raghavachari, B.; Rosenfeld, A. Landmarks in graphs. Discret. Appl. Math. 1996, 70, 217–229. [Google Scholar] [CrossRef] [Green Version]
  27. Shahida, A.; Sunitha, M. On the metric dimension of joins of two graphs. Int. J. Sci. Eng. Res 2014, 5, 33–38. [Google Scholar]
  28. Rawat, B.; Pradhan, P. Metric dimension of some graphs under joint operation. Glob. J. Pure Appl. Math. 2017, 13, 3331–3348. [Google Scholar]
  29. Haryanto, L.; Nurdin, N.; Hasmawati, H. Metric Dimension of Graph Join P2 and Pt. J. Indones. Math. Soc. 2019, 25, 75–84. [Google Scholar] [CrossRef]
Figure 1. Join of P s and P t .
Figure 1. Join of P s and P t .
Symmetry 15 00708 g001
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Zhang, C.; Haidar, G.; Khan, M.U.I.; Yousafzai, F.; Hila, K.; Khan, A.U.I. Constant Time Calculation of the Metric Dimension of the Join of Path Graphs. Symmetry 2023, 15, 708. https://doi.org/10.3390/sym15030708

AMA Style

Zhang C, Haidar G, Khan MUI, Yousafzai F, Hila K, Khan AUI. Constant Time Calculation of the Metric Dimension of the Join of Path Graphs. Symmetry. 2023; 15(3):708. https://doi.org/10.3390/sym15030708

Chicago/Turabian Style

Zhang, Chuanjun, Ghulam Haidar, Murad Ul Islam Khan, Faisal Yousafzai, Kostaq Hila, and Asad Ul Islam Khan. 2023. "Constant Time Calculation of the Metric Dimension of the Join of Path Graphs" Symmetry 15, no. 3: 708. https://doi.org/10.3390/sym15030708

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