1. Introduction
The distance between two vertices u and v, denoted by , is the length of the shortest  path in a simple, undirected, connected graph G with the vertex set  and the edge set . Whenever there is no possibility of confusion, we will simply write  instead of . A vertex z resolves two vertices x and y if . Let  be a set with m elements. The code of a vertex w with respect to S, denoted by , is the m-tuple :. A set S is a resolving set if distinct vertices have distinct codes, i.e., if  for all distinct . Equivalently, S is said to be a resolving set for G if for every pair of distinct vertices x and y, there is a  such that . The metric dimension of G is the number : and it is denoted by .
Slater [
1] and Harry et al. [
2] have introduced the metric dimension of graphs. A metric basis is a resolving set with the cardinality 
. Some times metric bases elements may be considered as censors, see [
3]. We will not have enough knowledge to deal with the attacker (fire, thief etc.) if one of the censors malfunctions. In order to overcome this kind of problems, Hernando et al. have proposed the concept of fault-tolerant metric dimension in [
4].
A resolving set S of a graph G is fault-tolerant if for each ,  is also a resolving set for G. The fault-tolerant metric dimension of G, denoted by , is the minimum cardinality of a fault-tolerant resolving set. A fault-tolerant metric basis is a fault-tolerant resolving set of order .
Determining a graph’s fault-tolerant metric dimension is a challenging combinatorial problem with potential applications in sensor networks. It has only been tested for a few simple graph families thus far. Hernendo et al. characterized the fault tolerant resolving sets in a tree 
T in their introductory paper [
4]. They have also furnished an upper bound for the fault-tolerant metric dimension of an arbitrary graph 
G as 
. Saha [
5] determined the fault-tolerant metric dimension of cube of paths, and Javaid et al. [
6] obtained 
, where 
 is a cycle of order 
n.
Let 
n and 
t be positive integers with 
. An undirected graph with the set of vertices 
 and the set of edges 
 is called a 
circulant graph and is denoted by 
. Note that 
 is isomorphic to a complete graph on 
n vertices. Javaid et al. [
7] found 
, in [
8], Imran et al. only bounded the metric dimension of 
 and 
, and then Borchert and Gosselin [
9] extended their results and determined the exact metric dimension of these two families of circulants for all 
n.
In this article, we extend the results of Basak et al. [
10] to the graph 
 and obtain the exact value of 
 for all 
. It is worth noting that the fault-tolerant problem for circulant graphs has also been studied in the context of network robustness [
11], which is different from the current setting.
  3. Lower Bound for Fault-Tolerant Metric Dimension of 
In this section, we show that any fault-tolerant resolving set F of  contains at least eight elements. Moreover, for , we show that one more element should be added in F for it to be a fault-tolerant resolving set.
Lemma 3. For two positive integers a and j,  implies  or  according as  or .
 Proof.  First we assume that 
. Then there exists positive integers 
q and 
r such that 
 with 
. Then
        
From the above two results, we conclude that 
 if 
, that is, if 
 provided 
.
Next we assume that 
 and let 
 for some positive integer 
q and 
 Then
        
From the above two results, we conclude that 
 if 
, that is, if 
 provided 
. □
 Using Lemma 3, we have the following result.
Lemma 4. Let  be a positive integer. Let  be two distinct integers. Then  implies  or  according as  or .
 Notation 2. Recall that a vertex u resolve two vertices v and w if . We denote the set of all vertices which resolve two consecutive vertices  and  by .
 The lemma below gives an explicit form of  for each . From here to onward, a non-negative integer , we mean .
Lemma 5. Let  for some positive integer k and . For any two consecutive vertices  and  of , the following are hold:
If , then .
If , then .
 Proof.  It is clear that 
 when 
 and for 
,
        
 Let 
 resolve the vertices 
 and 
. Then 
. Now the distances of 
 and 
 from 
 are given by
        
Since 
 resolve 
 and 
, 
, and when 
, applying Lemma 3, we have 
 or 
 according as 
 or 
. Again if 
, then 
 as 
 and hence applying Lemma 4, we have 
. Hence, proof of part 
 is complete. For part 
, proof will be similar.    □
 Corollary 1. Let  for some fixed . Then for each ℓ there exists an element  such that  and  are resolved by , provided both  and  are not in .
 Corollary 2. For , .
 Proof.  Let 
 for some positive integer 
k. Note that
        
        where the indices of vertices are taken to be modulo 
n. First we take 
. Then from Lemma 5
, we have 
. Therefore, the result is true if 
. Again if 
, then 
 and hence from Lemma 5
, we have 
. Therefore the result is true.    □
 Lemma 6. Let , where k being a positive integer and . Let  be a clique in . Then for every pair of vertices  in  with , we have the following.
When , then 
 Proof.  For symmetry of 
, we prove the result for a 
 with 
. Then from Lemma 5, we obtain
        
By putting the different values of 
r and on simple calculations, we get the required result.    □
 Example 2. Let  and let us take  in the circulant graph . Then we have the followingHere we see that  for , whereas  for .  Definition 3. Let U and S be two subsets of vertices of . We call the set U an S-block, if all vertices of U are at equal distance from every vertex of S, or equivalently,  for .
 In the lemma below, we give the least number of elements that should be included in a fault-tolerant resolving set F to resolve a clique  for .
Lemma 7. Let F be a fault-tolerant resolving set of , where . Let S be a subset of F and  denotes the set of intermediate vertices of . If there exists a clique  in  such that  and  is an S-block, then .
 Proof.  For symmetricity of , it is sufficient to show that the result is true for a clique  with . Let . Since  is an S-block,  for every pair of vertices . Again, as F is a fault-tolerant resolving set of , applying Lemma 1, we have  for each . Again, since , so from Lemma 6, we have  for distinct . Therefore, , that is, .    □
 Lemma 8. Let F be a fault-tolerant resolving set of , where . If there exists a clique  in  such that  and , then .
 Proof.  Since F is a fault-tolerant resolving, applying Lemma 1,  for every a with . If F is a fault-tolerant resolving set of  such that  and , then applying Lemma 6, we have  for distinct a and b in . Thus .    □
 Lemma 9. Let  and F be a fault-tolerant resolving set of . Then for every clique  in ,  where  denotes the set of intermediate vertices of .
 Proof.  From the symmetries of , we assume  and let . For a fault-tolerant resolving set F with ,  due to Lemma 7 with . Since F is a fault-tolerant resolving set of ,  for every a with  and in particular, . Let . In view of the values of ℓ, we consider the following three cases.
Case 1: . Suppose  for some . Let . First we assume that . Since  for all  and  for , we have  and  for . As , so applying Lemma 6, we have  for distinct . Therefore,  and hence  as . Similarly, we obtain  when . Again, if we take , then by a similar argument, one can easily prove that  as in this case ,  and . Therefore, the result holds when .
Case 2: . First we assume that . Let . Then by a similar argument as in Case 1, we have  and  as in this case none of  and  are in . Therefore  and hence . By a similar argument, we can prove the result when . Next, we assume that . Let . Then, by a similar argument as in Case 1, we have  for all . Thus, we have  and consequently, . So, in this case, the result is true.
Case 3: . Here . Let . Then,  and  and hence , and consequently, 
On account of the above three cases, we have .    □
 Using a similar argument of Lemma 9, we have the following results.
Lemma 10. Let  and F be a fault-tolerant resolving set of , where . Then, for every clique  in ,  where  denotes the set of intermediate vertices of .
 Lemma 11. Let  and F be a fault-tolerant resolving set of . Let . Then, for every clique  in  with  as an S-block,  where  denotes the set of intermediate vertices of .
 Theorem 1. For  and ,  Proof.  Let F be an arbitrary fault-tolerant resolving set of . Let  for some positive integers k and r, where . We consider the following three cases.
Case 1: 
. Since 
 and 
, so in this case, we have 
. If there exists a clique 
 such that 
 and 
, then applying Lemma 7, we get 
. So, we assume 
 or 
 for every 
i satisfying 
, that is, 
 for all 
. Without loss of generality, we can assume that 
. Recall that 
 and 
. Now, from 
, we obtain
        
(extra one is here as 
). Since 
, the sets
        
are disjoint for 
 and 
. Thus
        
        and hence we obtain the result.
Case 2: 
. In this case, 
n is of the form 
 for some positive integer 
k. Since 
 and 
, so in this case 
. We prove the result for 
. The proof for 
 will be similar. Note that 
 and 
 for all 
i. Thus, if there exists an 
i such that 
 and 
, then applying Lemma 7, we get 
. So, we assume that at least one of 
 and 
 is non-empty, that is, for all 
,
        
Let 
 for 
. Then 
. Our claim is
        
        for every 
i. Since (
1) holds for every 
i, we have the following
        
Note that all 
, 
 and 
 are empty set. Also we have 
, 
. Thus if 
, then the sets 
, 
 and 
 are mutually disjoint and hence (
2) holds. Again if 
, then (
2) is also true because 
 and 
 with 
. Thus our claim (
2) is true for every 
i. Without loss of generality, we can assume that 
. Since 
 and hence 
, so by virtue of inequality (
2) with 
 and (
1) with 
, we have the following
        
Since 
, above inequalities imply that 
.
Case 3: . If there exists a clique  such that , then applying Lemma 9, we get . So we can assume that  for all i, . Without loss of generality, we can assume that . Note that , provided . Thus    (extra one is added as ). Since  and , we have . Therefore . Now we prove the theorem for . Assume to the contrary that there is a fault-tolerant resolving set F with . Without loss of generality, we can assume that . Note that . Let  and . Since , so applying Lemma 11 to the clique  and  with , we get  and , respectively.
It is clear that  and . Note that for every ,  for all  because the elements of  are the common antipodal vertices of three vertices  and . Similarly, for each ,  for all . Now our aim is to show  and , where  and  are defined as  and . As , applying Lemma 11 to the clique  with , we have  (as ). Again applying the same lemma to the clique  with , we get .
Claim 1.  and  for .
Proof of Claim 1.  From the above, we have  and  for each . First we show that the claim is true for . Here  and . Assume to the contrary that . Since  and , we have . By applying Lemma 11 to  with , we obtain , a contradiction. Hence . Similarly, if , then applying the same lemma to  with , we have , a contradiction. Therefore, .
 Now we prove the claim for . If , then applying Lemma 11 to  with , we obtain , a contradiction (as ). Hence . Again if , then we apply Lemma 11 to  with  and we get , a contradiction. Hence . This finishes the proof of the Claim 1.
Since 
 and the sets 
 are mutually disjoint, we obtain
        
By Claim 1, we obtain
        
Hence 
. This completes the proof of the theorem.    □
   4. Upper Bound for 
In this section, we determine optimal fault-tolerant resolving set for .
Lemma 12. Let ℓ and m be two integers in . If , then  and  are resolved by at least two elements of . Moreover, if , then  and  are resolved by at least one element of .
 Proof.  Let 
. Suppose that 
. Without loss of generality, we can assume that 
. Let 
, where 
. First we suppose that 
 Then 
. Now 
, 
 and 
. Therefore, 
 for 
. Next we suppose that 
, that is, 
. We now calculate the distances of 
 and 
 from 
 and 
:
        
Therefore, 
 and 
 are resolved by both vertices 
 and 
. Hence 
 and 
 are resolved by at least two elements of 
 provided 
.
Now we suppose that  Without loss of generality, we can assume that . Let . Then  and . Hence  and  are resolved by  when , where .    □
 Lemma 13. Let  be an ordered set and ℓ be an integer with . Then  and  are reverse to each other.
 Proof.  The distances of  and  from , where , are  and , respectively. Now the j-th coordinate in  and  are  and , respectively, where . Now  and  are in reverse order only if i-th element in  is equal to -th element in  for each . The -th element in  is , which is equal to the i-th element in  for each . Hence the result is proved.    □
 Corollary 3.  only if .
 From Lemmas 12 and 13, we have the following result.
Lemma 14. Let  be two integers. If , then  and  are resolved by at least two elements of . Moreover, if , then  and  are resolved by at least one element of .
 Lemma 15. Let  and . If  and , then  and  are resolved by at least one element of . Moreover, the result is also true for  if we add an extra vertex  to .
 Proof.  Let us assume , where . Let  and . To prove the result, we show that there exist  such that  and  for , where  denotes the set of all antipodal vertices of . Recall that . First, we take  so that  is at least four. Now  and , where the indices of vertices in  are to be taken modulo n. Here the set  is contained in  or  according as  or ; and the set  is contained in both  and . Moreover, we have  and . Therefore,  and  for each , where  and .
Now the remaining case is . As , the set  transfer to . Since  and ,  for all , where  or  according as  or .    □
 Lemma 16. Let  and . If  and , then  and  are resolved by at least one element of .
 Proof.  Let , where k being a positive integer. Then . Note that every vertex u has two antipodal vertices. It is easy to see that  and . Thus the result is true if  and . Now if  and  − , then  and . So  and  are resolved by  when  and . Similarly, if  and , then we can prove that  and  are resolved by . Now we search for an element  that resolve  and  when . Note that  and  for . Moreover,  &  are adjacent, and  &  are non-adjacent. Therefore  and  are resolved by an element of  when  On accounts of all cases considered here the lemma is proved.    □
 Lemma 17. Let  and . If  and , then  and  are resolved by at least one element of .
 Proof.  Let , where k being a positive integer. Then  and  If  and , then  and  are resolved by  as , . So we consider  and . Note that the antipodal vertex of an element  is , where . Therefore, if , then  and  for . Thus the lemma is also true for  and . Now take . For  and , we have  and . Again if  and ,  and . Moreover,  and . Therefore, the only remaining case is  and . In this case  and  can be resolved by .    □
 Lemma 18. Let , where  with  and m be an integer from the set . Then there are at least two elements in  that resolve the vertices  and , provided both  and  are not in . Moreover, if  and , then  and  are also resolved by at least two elements from .
 Proof.  Now we calculate the distances of 
 from the vertices 
:
        
		Now the distances of 
 from the vertices 
 are given by
        
		For 
 with 
, we obtain
        
		Thus if 
, then 
 and 
 are resolved by 
 and 
. For 
 with 
, we obtain
        
Therefore, if 
, then 
 and 
 are resolved by 
 and 
. So the lemma is true when 
 with 
 and 
.    □
 Theorem 2. For , the set  is a fault tolerant resolving set of . Moreover,  is a fault tolerant resolving set of , when .
 Proof.  First we take , where k is a positive integer and . Let  and . Then  is a disjoint union of F. Here we show that any two distinct vertices x and y of  are resolved by at least two elements of F. As :, we assume  and  for some ℓ and m with . If both , there is nothing to prove. Otherwise, we consider the following cases.
Case 1: Exactly one of  and  belongs to F. Suppose . Without loss of generality, we can assume that . Since , then  and  are resolved by . Again from Lemma 15,  and  are resolved by at least one element of . Therefore,  and  are resolved by at least two element of F.
Case 2: Neither  nor  is in F. Let  and . Since , then .
Case  2.1: Both ℓ and m are from S or T. If  and  are two consecutive vertices, then from Corollary 1,  and  are resolved by two elements of F, one from  and another from . Otherwise,  and  are not consecutive. Then applying Lemma 12 accordingly  or , we have  and  are resolved by at least two vertices of .
Case 2.2: 
One of ℓ and m is in S and another is in T. Here we take 
 and 
. We may write 
 for some integers 
q and 
r, where 
. If 
, then by Lemma 18, 
 and 
 are resolved by at least two elements from 
. Now we determine the codes of remaining vertices with respect to 
F, that is, for 
 and 
, where 
 and 
. The codes of 
 and 
 with respect to 
 are given by
        
        and
        
Let k be the diameter of  and denote  by b. With this notation of , the codes of  and  with respect to  are listed in below for different values of n.
Thus  and  for respective values of r and s, are different by at least two places.
Finally, we take 
, that is, 
 for some positive integer 
k. Here it is sufficient to show that codes of 
 and 
 with respect to 
 are differ by at least two positions, where 
 and 
. For these values of 
ℓ and 
m, codes are listed in below. In these codes 
b stands for 
.
        
      
        
      
      
      
      
     Thus from the above it is easy to verify that 
 and 
 are differ by at least two positions. This completes the proof of the theorem.    □
 Theorem 3. For , the set  forms a fault-tolerant resolving set of .
 Proof.  Let 
 for some positive integer 
k. Suppose 
 and 
 be arbitrary two vertices of 
. For 
, we are done. So we consider the following cases. If exactly one of 
 and 
 is in 
F, then using Lemma 15 and by a similar argument as in Case  1 of Theorem 2, we get that 
 and 
 are resolved by at least two elements of 
F. Therefore we assume that none of 
 and 
 are in 
F. Then 
, where 
 and 
. If both 
 and 
 are in 
S or in 
T, then by a similar argument as in Case  2.1 of Theorem 2, we obtained that 
 and 
 are resolved by at least two elements of 
F. Otherwise, we assume that 
 and 
. Let 
, where 
. If 
, then we obtain the result due to Lemma 18. Now we calculate the codes of the remaining vertices with respect to 
F, that is, for 
 and 
, where 
 and 
. For 
 and 
, it is easy to see that 
 and 
 are resolved by both 
 and 
. Now we calculate codes of 
, 
, where 
. In the following codes 
b stands for 
.
        
        and
        
Thus  and  are differ by at least two positions. This completes the proof of the theorem.    □
 Theorem 4. For ,  is a fault-tolerant resolving set of .
 Proof.  Let 
. Suppose 
 and 
 be arbitrary two vertices of 
. Let 
 and 
. Also let 
, where 
. We prove this theorem only for 
 and 
; because we can prove the theorem for other values of 
ℓ and 
m using similar arguments of Theorems 2 and 3. The codes of 
 and 
 are listed as below for 
 and 
. In these codes 
.
        
        and
        
Thus  and  are differ by at least two positions. Now we take  and . Then it is easy to see that  and  are resolved by both  and . Hence the theorem.    □
 Theorem 5. For the circulant graph  with  and ,Moreover, if , then .  Proof.  The first part follows immediately from Theorems 1–4. Now we have to prove that if 
, then 
. Here 
n is of the form 
 with 
 and 
. We prove the result for 
. The proof will be similar for 
. Let 
F be an arbitrary fault-tolerant resolving set of 
. Note that 
 and 
. If 
 for some clique 
, then applying Lemma 10, we get 
. Thus we assume 
 for every 
i. Without loss of generality, we can assume that 
. Then we have
        
Since 
 and 
, so from the above inequalities, we have 
 for 
. Reader can verify that the sets 
, 
 and 
 are fault-tolerant resolving sets of 
, 
 and 
, respectively. By a similar argument as described in above, it can be shown that 
 when 
. Also it is easy to verify that the sets 
 and 
 are resolving sets of 
 and 
, respectively.    □