Abstract

A radio labeling of a simple connected graph is a function such that , where diam is the diameter of graph and d(x, y) is the distance between the two vertices. The radio number of , denoted by rn, is the minimum span of a radio labeling for . In this study, the upper bounds for radio number of the triangular snake and the double triangular snake graphs are introduced. The computational results indicate that the presented upper bounds are better than the results of the mathematical model provided by Badr and Moussa in 2020. On the contrary, these proposed upper bounds are better than the results of algorithms presented by Saha and Panigrahi in 2012 and 2018.

1. Introduction

The field of graph theory assumes a crucial part in different fields. One of the significant regions in graph theory is graph labeling which is used in many applications such as coding theory, x-ray crystallography, radar, astronomy, circuit design, communication network addressing, data base management, and channel assignment problem. The channel assignment problem is the problem of assigning channels (nonnegative integers) to the stations in an optimal way such as the interference is avoided. In [1], Badr and Moussa proposed a work on upper bound of radio k-chromatic number for a given graph against the other which is due to Saha and Panigrahi [2]. Badr and Moussa proposed a new mathematical model for finding the upper bound of a graph [1]. In [3], Saha and Panigrahi introduced another algorithm (with time complexity O(n4)) for determining the upper bound of a graph. Ali et al. gave the upper bound for the radio number of generalized gear graph [4]. Fernandez et al. proved that the radio number of the n-gear is 4n + 2 [5]. Yao et al. were defined as a new graph radio labeling on trees, and the properties of trees labeling were shown [6]. Smitha and Thirusangu determined the radio mean number of double triangular snake graph and alternate double triangular snake graph [7]. If p&q is prime numbers, the radio numbers of zero divisor graphs were investigated by Ahmad and Haider [8].

For more details about how to formulate a problem to a mathematical model, the reader can refer to [911]. On the contrary, for more details about other labeling that are related to radio labeling such as radio mean, radio mean square, and radio geometric. The reader is referred to [10, 11].

In this current work, the upper bounds for radio number of the triangular snake and the double triangular snake graphs are introduced. The computational results indicate that the presented upper bounds are better than the results of the mathematical model provided by Badr and Moussa [1]. On the contrary, these proposed upper bounds are better than the results of algorithms presented by Saha and Panigrahi [2, 3].

2. Materials and Methods

In this section, we introduce some basic definitions before we prove the theorems that determine the upper bounds’ radio of the number for triangular snake and double triangular snake. On the contrary, we introduce the previous works which are related to the determining of the upper bound of radio number of a graph.

Definition 1. (see [12], diameter of graph). The diameter of is the greatest eccentricity among all vertices of and it is denoted by diam .

Definition 2. (see [13], triangular snake). A triangular snake (or -snake) is a connected graph in which all blocks are triangles and the block-cut-point graph is a path.

Definition 3. (see [7], double triangular snake). A double triangular snake D(Tn) is obtained from two triangular snakes with a common path.
In 2013, Algorithm 1 was introduced by Saha and Panigrahi [2] for determining the upper bound of the radio number of a given graph. Algorithm 1 has O(n3) time complexity such that n is the number of the vertices of G. In 2018, Saha and Panigrahi [2] proposed a new algorithm (Algorithm 2) for determining the upper bound of the radio number of a given graph. Algorithm 2 has O(n4) time complexity. On the contrary, in 2020, Badr and Moussa [1] proposed a novel mathematical model which finds the upper bound of the radio number of a given graph.

Input: be an n-vertex simple connected graph, k be a positive integer, and the adjacency matrix A[n][n] of
Output: A radio k-coloring of .
Begin
 Compute the distance matrix D[n][n] of using Floyed–Warshall’s algorithm and the adjacency matrix A[n][n] of .
 RadioNumber = ;
for l = 1 to n do
  for i = 1 to n do
   labeling [i] = 0;
  end
  for i = 1 to n do
    for j = 1 to n do
     c[i][j] = diam + 1 − D[i][j];
    end
    c[i][j] = ;
  end
  for i = 2 to n do
/find the minimum value m of the column with position p/
    [m, p] = min [c(l, :)];
    for j = 1 to n
      c[p][j] = c[p][j] + m
      if c[p][j] < c[l][j]
       c[p][j] = c[l][j]
      end
    end
    labeling [p] = m
    l = p
  end
   /find the max value of the labeling/
    Max_Value = max (labeling))
    if RadioNumber > Max_Value
     RadioNumber = Max_Value
    end
end
End
Input: be an -vertex graph, simple connected graph, and the diameter of .
Output: an upper bound of radio number of .
Begin
Step 1: choose a vertex and .
Step 2: .
Step 3: for all , compute
  .
Step 4: let .
Step 5: choose a vertex , such that .
Step 6: give .
Step 7:
Step 8: repeat Step 3 to Step 6 until all vertices are labeled.
Step 9: repeat Step 1 to Step 7 for every vertex .
End

3. Results and Discussion

Here, we introduce two theorems which determine the upper bounds for radio number of triangular snake and double triangular snake. The presented upper bounds (by Theorems 1 and 2) are better than the results of the mathematical model provided by Badr and Moussa [1]. On the contrary, these proposed upper bounds are better than the results of algorithms presented by Saha and Panigrahi [2, 3].

Theorem 1. Let G be a triangular snake graph with k blocks and n vertices, where ; then, the upper bound of the radio number of is defined as follows:

Proof. To prove this theorem, its suffices to give a distance labeling h of .
Let be a of length k, i.e., diameter of .
Define a function as the following cases.

Case 1. k is odd:Now, we are in a position to prove that the function h(x) is the distance labeling of .
For each ,Also, for each ,Suppose that .
If i = j,otherwise,

Case 2. k is even is similarly proved:We show that the function h(x) is the distance labeling of .
For each ,Also, for each ,Suppose that .
If i = j,otherwise,

Example 1. Figure 1 presents the labeling according to Theorem 1.

Theorem 2. Let be a double triangular snake graph with k blocks and n vertices; then, the upper bound of the radio number of double is defined as follows:

Proof. To prove this theorem, it suffices to give a distance labeling h of double . Notice that the diameter of double triangular snake is the same as the diameter of triangular snake graph. Let be a of length k, where the diameter of .
Define a function as the following cases:For k = 1, let the sufficed labeling For k = 2, let ,

Case 3. k is even and k > 2,We are in a position to prove that the function are the distance labeling of double .
For each ,For each ,Also, for each ,Now, suppose that :Suppose that :If i = 1 and j = 0,otherwise,If i = 0 and j = k − 1,otherwise,

Case 4. k is odd and k > 1:For each ,For each ,Also, for each ,Now, suppose that :otherwise,Suppose that :If i = 1 and j = k − 1,otherwise,Suppose that :If i = 0 and j = k − 1,otherwise,

Example 2. Figure 2 presents the labeling double triangular according to Theorem 2.

4. Computational Study

In order to evaluate the proposed upper bounds presented by Theorems 1 and 2, we make a numerical experiment between the proposed results and the results of [13]. This experiment applies on two graphs (triangular snake and double triangular snake). The description of the environment is as follows: MATLAB R2016a with default options and all runs were carried out under MS Windows 7 Professional system, having Intel® Core™ i3-3217U [email protected] GHz and 4 Gb RAM.

In Tables 1 and 2, the abbreviations Ub0, Ub1, Ub2, and Ub3 are used to denote upper bounds are due to the works of Saha and Panigrahi [2], Saha and Panigrahi [3], Badr and Moussa [1], and the proposed algorithm, respectively.

Table 1 and Figure 3 show that the proposed upper bound Ub3 overcomes the upper bound UB0 and UB2 which is due to the works of Saha and Panigrahi [2] and Badr and Moussa [1], respectively. On the contrary, the proposed upper bound Ub3 overcomes the upper bound UB1 (for k is odd only) which is due to the works of Saha and Panigrahi [2]. The upper bound (for k is even) of the UB3 and UB1 are equal.

Table 1 and Figure 4 explain that the proposed upper bounds outperform all results of UB0, UB1, and UB2 according to CPU time. On the contrary, the mathematical model UB2 [1] overcomes UB0 and UB1.

5. Conclusions

In this study, the upper bounds for the radio number of the triangular snake and the double triangular snake graphs are introduced. The computational results indicate that the presented upper bounds are better than the results of the mathematical model provided by Badr and Moussa [1]. On the contrary, these proposed upper bounds are better than the results of algorithms presented by Saha and Panigrahi [2, 3].

Data Availability

The data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

The authors extend their appreciation to the Deanship of Scientific Research at King Khalid University for funding this work through General Research Project under Grant no. R.G.P.1/258/43.