Next Article in Journal
Gaussian Process with Vine Copula-Based Context Modeling for Contextual Multi-Armed Bandits
Previous Article in Journal
On the Limiting Distribution of the Spectra of Random Block Matrices
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Radio Mean Labeling Algorithm, Its Complexity and Existence Results

1
Department of Mathematics, School of Physical Sciences, Amrita Vishwa Vidyapeetham, Kochi 682024, India
2
Department of Mathematics, Amrita School of Engineering, Amrita Vishwa Vidyapeetham, Bengaluru 560035, India
3
School of Information and Physical Sciences, College of Engineering, Science and Environment, The University of Newcastle, Callaghan, NSW 2308, Australia
4
School of Sciences, Jimei University, Xiamen 361021, China
*
Author to whom correspondence should be addressed.
Mathematics 2025, 13(13), 2057; https://doi.org/10.3390/math13132057
Submission received: 11 March 2025 / Revised: 24 May 2025 / Accepted: 27 May 2025 / Published: 20 June 2025
(This article belongs to the Section E1: Mathematics and Computer Science)

Abstract

Radio mean labeling of a connected graph G is an assignment of distinct positive integers to the vertices of G satisfying a mathematical constraint called radio mean condition. The maximum label assigned to any vertex of G is called the s p a n of the radio mean labeling. The minimum s p a n of all feasible radio mean labelings of G is the radio mean number of G, denoted by r m n ( G ) . In our previous study, we proved that if G has order n, then r m n ( G ) [ n , r m n ( P n ) ] where P n is a path of order n. All graphs of diameters 1, 2 and 3 have the radio mean number equal to order n. However, they are not the only graphs on n vertices with radio mean number n. Graphs isomorphic to path P n are the graphs having the maximum diameter among the set of all graphs of order n and they possess the maximum feasible radio mean number. In this paper, we show that, for any integer in the range of achievable radio mean numbers, there always exists a graph of order n with the given integer as its radio mean number. This is approached by introducing a special type of tree whose construction is detailed in the article. The task of assigning radio mean labels to a graph can be considered as an optimization problem. This paper critiques the limitations of existing Integer Linear Programming (ILP) models for assigning radio mean labeling to graphs and proposes a new ILP model. The existing ILP model does not guarantee that the vertex labels are distinct, positive and satisfy the radio mean condition, prompting the need for an improved approach. We propose a new ILP model which involves n 2 constraints is the input graph’s order is n. We obtain a radio mean labeling of cycle of order 10 using the new ILP. In our previous study, we showed that, for any graph G, we can extend the radio mean labelings of its diametral paths to the vertex set of G and obtain radio mean labelings of G. This insight forms the basis for an algorithm presented in this paper to obtain radio mean labels for a given graph G with n vertices and diameter d. The correctness and complexity of this algorithm are analyzed in detail. Radio mean labelings have been proposed for cryptographic key generation in previous works, and the algorithm presented in this paper is general enough to support similar applications across various graph structures.

1. Introduction

For graphs and their associated theoretical concepts, we refer the reader to [1,2]. For graph labeling and its associated theoretical concepts, we refer the reader to [3,4]. graph labeling refers to assigning labels, which are elements of a particular set, to the elements of a graph G. Typically, this involves labeling the vertices, edges or both of G based on certain mathematical constraints. When only the vertices of G are assigned labels, G is called a vertex-labeled graph. When only the edges of G are labeled, G is called edge-labeled graph. Specifically, for a graph G, a vertex labeling of G is a function l : V ( G ) S and an edge labeling of G is a function l : E ( G ) S , for some sets S and S . The combinatorial interest in the problem of graph labeling often arises from the mathematical constraints that are inherent in its definition.
The radio channel assignment problem is one of the most significant applications of vertex labeling of graphs with non-negative integers. The problem is to find a way to assign radio channels to transmitters, so neighboring channels have significant frequency differences, where channels far from one another might have minor frequency differences. This problem of radio channel assignment can be easily converted into a graph labeling problem by considering the radio network as a graph. In this case, the vertices correspond to transmitter locations, and two vertices are made adjacent if the locations of the radio stations corresponding to these vertices are close. The maximum interference occurs among transmitters represented by adjacent vertices. Assignment of frequencies to transmitters means the assignment of labels to vertices. The problem is to label (with colors or integers) the vertices of the graph so that the labels of adjacent vertices differ by a threshold, while the constrain does not hold for non-adjacent vertices. This concept has given rise to numerous distance-constrained graph coloring and labeling problems with varying constraints, whose primary goal is to minimize the maximum label assigned.
An early type of coloring inspired by the above concept is L ( h , k ) -coloring where h , k are non-negative integers [5].
Definition 1
([5]). For a graph G, a  L ( h , k ) -coloring is a function λ from V ( G ) to a set of colors such that
1. 
if  d ( u , v ) = 1 , | λ ( u ) λ ( v ) | h
2. 
if  d ( u , v ) = 2 , | λ ( u ) λ ( v ) | k .
u , v V ( G ) and some h , k Z + . The s p a n of λ is max u , v V ( G ) | λ ( u ) λ ( v ) | . The minimum s p a n of all L ( h , k ) - colorings of G is called the L s p a n of G.
In 2001, Chartrand et al. [5,6] defined k radio coloring of graphs as follows:
Definition 2
([5,6]). For a connected graph G with diameter d and k Z + , 1 k d , a radio k coloring (labeling) is a one-to-one function ϕ from V ( G ) to Z + , where
d ( u , v ) + | ϕ ( u ) ϕ ( v ) | 1 + k , u , v V ( G ) .
The maximum color (integer) assigned to any vertex of G by λ is denoted by r c k ( λ ) . The minimum r c k ( λ ) taken over all radio k colorings of G is called the k radio number of G.
The radio 1-coloring is a proper vertex coloring of G [5] and radio 2-coloring is an L ( 2 , 1 ) coloring of G. The radio d coloring is called a radio labeling of G, defined as follows:
Definition 3
([6]). For a connected graph G with diameter d, a radio labeling is a one-to-one function ϕ from V ( G ) to Z + , where
d ( u , v ) + | ϕ ( u ) ϕ ( v ) | 1 + d , u , v V ( G ) .
The inequality (2) is called the radio condition.
The radio number of ϕ , r n ( ϕ ) , is the maximum number assigned to any vertex of G. The radio number of G, r n ( G ) , is the minimum value of r n ( ϕ ) taken over all radio labelings ϕ of G. Graphs for which the largest label used is the same as the order of the graph are called radio graceful graphs. The combinatorial problem of Radio mean labeling of a graph was proposed by R. Ponraj, S. Sathish Narayanan and R. Kala in [7].
Definition 4.
For a connected graph G with diameter d, a radio mean labeling is a one-to-one function γ from V ( G ) to Z + , where for every pair of vertices u , v
d ( u , v ) + γ ( u ) + γ ( v ) 2 1 + d .
The inequality (3) is called the radio mean condition. The  s p a n of γ is the maximum integer assigned to any v V ( G ) by γ . Furthermore, the radio mean number of G, denoted by r m n ( G ) , is the smallest s p a n of all feasible radio mean labelings of G. It is obvious by the definition that r m n ( G ) | V ( G ) | . If  r m n ( G ) = | V ( G ) | , then G is called a radio mean graceful graph [8]. See Figure 1 for some examples.
The radio mean number of subdivision of complete bipartite, corona complete graph with path and one point union of cycle C 6 were obtained in [9]. The radio mean number of corona product of wheel with path, the graph obtained from the wheels W m and W n by joining the rim vertices of the two wheels with an edge and the graph obtained from a wheel by subdividing each spoke by a vertex were obtained in [10]. The article [11] gave the radio mean number of the subdivisions of the graphs, namely star, wheel, join of K 2 and m copies of K 1 , bistar and complete bipartite graph, corona product of complete bipartite graph with path, and friendship graph. In [12], the radio mean number of jelly fish graph and its subdivision, book with pentagonal pages, graphs obtained by taking m disjoint copies of S 1 , n and joining a new vertex to the centers of the m copies of S 1 , n were studied. K. Palani, S. S. Sabarina Subi and V. Maheswari [13] proved that the path union of graphs like star and its subdivision, globe and fan are radio mean graceful. They also obtained the radio mean number double fan graph. In [14], radio mean labeling of subdivisions of various graphs were discussed. The article [15] dealt with the radio mean numbers of splitting graph of graphs like path, star and Y-tree. In [16], K. Sunitha, C. David Raj and A. Subramanian studied the radio mean labelings of triangular ladder graph, corona product of path with K 2 ¯ , corona product of complete graph with K 2 ¯ and corona product of wheel with K 2 ¯ . The radio mean labelings of degree splitting of certain graphs are studied in [17,18]. Upper bounds on the radio mean number of honeycomb and honeycomb torus networks were derived in [19]. In [20], M.S. Aasi, M. Asif, T. Iqbal and M. Ibrahim determined the radio mean number of lexicographic product of P p with P q , where p = 2 , 3 . A Python program was also developed to compute the same. The authors of [21] proposed an integer linear programming model for the problem of radio mean labeling of graphs. They also put forward an algorithm to find an upper bound on the radio mean number of any graph. The radio mean numbers of path and cycle were also determined in [21]. Unfortunately, the authors of [21] made mistakes in this regard. Refs. [22,23] identified these inaccuracies and provided upper bounds on the radio mean number for cycles and paths. All the above-mentioned articles mostly focus on the combinatorial aspect of radio mean labeling, but articles [24,25,26] explored another side of it. They talked about different roles of graphs in cryptosystems: as a mode of data presentation and as a key generator.

1.1. Motivation of This Study

Finding a vertex labeling satisfying (3) for a graph is a challenging task, and so is labeling the graph with minimum s p a n . Article [27] discussed the maximum and minimum achievable radio mean number of graphs of order n. In [27], it is proved that, if G is a connected graph on n vertices,
n r m n ( G ) r m n ( P n )
where P n is path on n vertices. An open question here is
Question 1.
For any given  n Z +  and for every integer  r [ n , r m n ( P n ) ] , does there exist some graph G of order n such that  r m n ( G ) = r ?
In this article, we will provide answers to the above question.
Radio mean labeling of graphs typically involves defining a function on the vertex set that adheres to the radio mean condition. However, for graphs with a large order or diameter, this can be quite difficult. The real challenge in finding a radio mean labeling of a graph, then, becomes finding one with the smallest possible s p a n . The next question that we attempt to solve in this article is as follows:  
Question 2.
What are the alternative methods for obtaining a radio mean labeling of a graph, instead of the traditional approach of defining a function on the vertex set, which can be time-consuming?
Radio mean labeling of a graph can be framed as an optimization problem involving positive integer variables subject to radio mean constraints. This article investigates the limitations of existing Integer Linear Programming (ILP) models, particularly their inability to ensure that the vertex labels are distinct, positive and satisfy the radio mean condition. We propose a new ILP model that involves n 2 constraints, where n is the order of the input graph. For any graph G, the radio mean labeling of its diametral paths can be extended to the entire vertex set to produce a valid labeling for G. This insight forms the foundation of the algorithm presented in this paper, which computes radio mean labelings for a graph G with n vertices and diameter d.

1.2. Organization of the Paper

The subsequent sections of this article are organized as follows. In Section 2, we show that every integer in the range of achievable radio mean numbers of connected graphs of order n is the radio mean number of some graph of order n. In Section 3, we propose two alternative methods for obtaining a radio mean labeling of any graph. We show in Section 3.1 that the problem of radio mean labeling of graphs can be formulated as an Integer Linear Program (ILP). Furthermore, in Section 3.2, we provide an algorithm for finding a radio mean labeling and study its complexity.

2. There Is No Gap in the Radio Mean Number Line

The r m n ( G ) = | V ( G ) | , for any graph G with 1 d i a m ( G ) 3 . Hence, all graphs of diameters 1, 2 and 3 are radio mean graceful. However, these are not the only graphs on n vertices with radio mean number n. Characterization of such graphs is an open problem. Path P n on n vertices is the graph having maximum diameter among the set of all graphs of order n and they possess the maximum feasible radio mean number. In this section, we attempt to answer Question (1) using a particular type of tree whose construction is described below.
Let T n , d be a tree with vertex set V ( T n , d ) = { v i : 1 i n } with n 3 and diameter d > 1 . Let P : v 1 v 2 v d + 1 , 2 d n 1 be a central or diametral path of T n , d . Note that the central or diametral path denotes the longest path contained within the graph. It is the path whose length matches the diameter of the graph. The vertices in V ( T n , d ) V ( P ) are made adjacent to v 2 . Then, T n , d is a Caterpillar tree as each v V ( T n , d ) V ( P ) is within distance 1 of P. See Figure 2 for an illustration.
Note that T n , 2 is isomorphic to the star S n and T n , n 1 is isomorphic to the path P n .
Let us now define an radio mean label for T n , d . If L denotes a function that assigns labels to vertices of T n , d , then following are the conditions the vertex labels must satisfy:
(i)
L ( v i ) + L ( v j ) 2 d + 1 d ( v i , v j ) , 1 i , j d + 1
(ii)
L ( v i ) + L ( v j ) 2 d 1 , d + 2 i < j n
(iii)
L ( v i ) + L ( v j ) 2 d d ( v i , v 2 ) , 1 i d + 1 , d + 2 j n
As graphs of diameter 2 and 3 are radio mean graceful, above labelling for T n , d , d { 2 , 3 } is a graceful radio mean labeling and so r m n ( T n , d ) = n .
Results on radio mean labeling of paths have been presented in [22] and we apply them here. Suppose d 4 . First, the diametral path P of T n , d is radio mean labeled with minimum span. Based on the results in [22], let l be a radio mean labeling of P such that s p a n ( l ) = r m n ( P ) . Let S be the set of all positive integers which are less than or equal to r m n ( P ) but do not belong to the range set R l of l. i.e., S = { 1 , 2 , , r m n ( P ) } R l .
If d = 4 , i.e., the order of P is 5, then P has a graceful radio mean labeling and r m n ( P ) = 5 . Then, S is empty.
If d = 5 , i.e., the order of P is 6, then r m n ( P ) = 7 . We can easily verify that if r is any radio mean labeling of P with r ( v ) = 1 for some v V ( P ) , then s p a n ( r ) > 7 . Also, if l is any radio mean labeling of P with minimum s p a n , then R l = { 2 , 3 , , 7 } . Also, note that, in such a labeling l, if  v i and v j of P receive labels 2 and 3, then d ( v i , v j ) must be 5 to satisfy the radio mean condition. Here, S = { 1 } . However, 1 cannot be assigned to any of the remaining unlabeled vertices of T n , 5 satisfying the radio mean condition.
In a similar way, when d 6 , we can see that if l is a radio mean labeling of P of minimum s p a n , then S is non empty but none of the elements of S can be assigned to any of the vertices of T n , d V ( P ) satisfying the radio mean condition.
So, we define L : V ( T n , d ) Z + by
L ( v j ) = l ( v j ) : 1 j d + 1 , r + j d 1 : d + 2 j n , r = r m n ( P ) .
Let { y 1 , y 2 , , y n } be an ordering of vertices of T n , d such that L ( y i ) < L ( y j ) whenever i < j . By the definition of L, it is clear that y i V ( P ) when 1 i d + 1 .
Consider the pair of vertices ( y i , y j ) where 1 i < j d + 1 .
L ( y i ) + L ( y j ) 2 + d ( y i , y j ) = l ( y i ) + l ( y j ) 2 + d ( y i , y j ) d + 1 .
Consider the pair of vertices ( y i , y j ) where d + 2 i < j n .
L ( y i ) + L ( y j ) 2 + d ( y i , y j ) = r + i + j 2 d 1 + 2 > d + 1 .
Consider the pair of vertices ( y i , y j ) where 1 i d + 1 and d + 2 j n .
L ( y i ) + L ( y j ) 2 + d ( y i , y j ) L ( y 1 ) + r + j d 1 2 + d ( y 1 , y j ) l ( y 1 ) + l ( y d + 1 ) 2 + j d 1 2 1 + 2 = l ( y 1 ) + l ( y d + 1 ) 2 + j d 1 2 + 1 d + 2 + j d 1 2 > d + 1 , as j d + 2 .
Thus L is a radio mean labeling with s p a n ( L ) = r m n ( P ) + n d 1 . Hence, r m n ( T n , d ) r m n ( P ) + n d 1 . When n 3 , T n , d is isomorphic to P n and then r m n ( T n , d ) = r m n ( P n ) = n . For  n 4 , the minimum feasible diameter of T n , d is 2 and then r m n ( T n , d ) is n. The maximum diameter T n , d can possess is n 1 and then T n , d is isomorphic to a path of order n and hence r m n ( T n , d ) = r m n ( P n ) . By varying the value of d from 2 to n 1 , it is seen that every integer within the range of achievable radio mean number is the radio mean number of some T n , d T where T is the collection of all Caterpillar trees T n , d which are constructed as mentioned in the beginning of this section. To summarize,
Theorem 1.
Let T be the collection of all Caterpillar trees T n , d .
1. 
For T n , d T , n r m n ( T n , d ) r m n ( P n ) .  
2. 
Every integer within the range of achievable radio mean number is the radio mean number of some T n , d T .
Deriving a precise expression for the radio mean number of trees within the set T falls beyond the scope of this study, and the upper bound obtained earlier is sharp for most of the values of n and d. Table 1 provides the radio mean number of all Caterpillar trees T 10 , d where 2 d 9 . We conclude this section with the following Conjecture 1:
Conjecture 1.
For any given  n Z + , every integer between n and  r m n ( P n ) is the radio mean number of some graph of order n, where  P n  denotes a path graph on n vertices.

3. Techniques for Generating Radio Mean Labeling

Two alternative ways of obtaining a radio mean labeling of a graph are discussed in this section. The radio mean labeling of a graph can be viewed as an optimization problem with positive integer variables subject to radio mean constraints, as discussed in Section 3.1. Taking advantage of the fact discussed in [27] that a radio mean labeling of a graph’s diametral path can be extended to the entire vertex set to produce a radio labeling of the graph, we present a polynomial-time algorithm in Section 3.2 for radio mean labeling of graphs. We designed an algorithm in Section 3.2 for radio mean labeling of any graph.

3.1. Integer Linear Programming Model for Radio Mean Labeling

In the article [21], the authors attempted to formulate the problem of generating radio mean labeling as an integer linear programming (ILP) model; however, the model presented is flawed, as explained below.
For a connected graph G with vertex set V = { v i : 1 i n } and diameter d and for 1 i n , let x i be the radio mean label assigned to vertex v i of G.
ILP 1
([21]). Minimize L = x 1 + x 2 + + x n subject to the n 2 constraints
2 n x i + x j 2 d + 1 d ( v i , v j )
for 1 i n 1 , 2 j n , i < j where x 1 , x 2 , , x n { 0 , 1 } .
Note that n 2 = n ( n 1 ) 2 . The model ILP 1 does not guarantee that the labels are distinct and are positive integers. Therefore, we propose a new ILP model for radio mean labeling of graphs.
The problem of finding a radio mean labeling G of diameter d is to find a function γ such that γ ( v i ) = x i , v i V ( G ) , x i Z + , 1 i n satisfying the radio mean condition and γ ( v i ) γ ( v j ) whenever i j . The constraints are
x i + x j 2 d + 1 d ( v i , v j ) , x i , x j > 0 , x i x j
where 1 i n 1 , 2 j n , i < j .
Let L = x 1 + x 2 + + x n .
To ensure that the labels are positive integers:
For 1 i < j n , x i 1 .
To ensure the uniqueness of labels:
For 1 i < j n , x i x j
| x i x j | 1
( x i x j ) 1 or x i x j 1
x i + x j 1 .
To ensure that the labels satisfy the radio mean condition:
x i + x j 2 d + 1 d ( v i , v j )
x i + x j 2 d + 1 d ( v i , v j ) or x i + x j + 1 2 d + 1 d ( v i , v j )
x i + x j ( 2 d + 2 2 d ( v i , v j ) ) or x i + x j ( 2 d + 2 2 d ( v i , v j ) ) 1
x i + x j 2 d + 2 2 d ( v i , v j )
x i x j 2 d + 2 d ( v i , v j ) 2
Based on the above derivation, we now summarize the mathematical assumptions underlying the proposed ILP model:
  • Integrality and Positivity: Each label x i is a positive integer, i.e.,  x i Z + and x i 1 for 1 i n .
  • Distinctness of Labels: All labels must be distinct, i.e.,  x i x j for i j , which is enforced using linear inequalities.
  • Feasibility of the Radio Mean Condition: The labels must satisfy the radio mean constraint: x i + x j 2 d + 1 d ( v i , v j ) for all i < j .
Putting these facts together, we propose a new ILP model as follows:
ILP 2.
Minimize L = x 1 + x 2 + + x n subject to the constraints
1. 
x i x j 2 d + 2 d ( v i , v j ) 2 , where 1 i n 1 , 2 j n , i < j
2. 
x i + x j 1 , where 1 i n 1 , 2 j n , i < j
3. 
x i 1 , x i Z + where 1 i n
Solving this, we will obtain a radio mean labeling, say Γ , of G with s p a n ( Γ ) = max { x i : 1 i n } and s p a n ( Γ ) gives an upper bound of the radio mean number of graph G.
Manually solving ILP 2 is not a viable option for graphs of large order, n, as it involves a significant number of constraints, specifically n 2 . In the following example, we use MATLAB (https://matlab.mathworks.com) to solve the ILP model and find a radio mean labeling for the cycle, C 10 . See Appendix A.
For C 10 , let V ( C 10 ) = { v 1 , v 2 , , v 10 } , the diameter, d = 5 , and the distance matrix, D = 0 1 2 3 4 5 4 3 2 1 1 0 1 2 3 4 5 4 3 2 2 1 0 1 2 3 4 5 4 3 3 2 1 0 1 2 3 4 5 4 4 3 2 1 0 1 2 3 4 5 5 4 3 2 1 0 1 2 3 4 4 5 4 3 2 1 0 1 2 3 3 4 5 4 3 2 1 0 1 2 2 3 4 5 4 3 2 1 0 1 1 2 3 4 5 4 3 2 1 0 .
The ILP model for the radio mean labeling of C 10 is given by ILP 3.
ILP 3.
Minimize L = x 1 + x 2 + + x 10 subject to the constraints
1. 
x i x j 12 + 2 d ( v i , v j ) ,   where   1 i 9 , 2 j 10 , i < j .
2. 
x i + x j 1 ,   where   1 i 9 , 2 j 10 , i < j .
3. 
x i 1 , x i Z + where 1 i 10 .
Manually solving the above ILP that includes 100 constraints is challenging. Hence, we make use of the function i n t l i n p r o g available in MATLAB. The syntax for Mixed-integer linear programming (MILP) in MATLAB is
x = i n t l i n p r o g ( f , i n t c o n , A , b , A e q , b e q , l b , u b ) .
For C 10 , the input arguments are
  • f: coefficient vector representing objective function = [ 1 1 1 1 1 1 1 1 1 1 ] ,
  • i n t c o n : a vector that indicates integer-constrained variables = [ 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 ] ,
  • A: a matrix representing the linear inequality constraints
       = 1 1 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 1 1 ,
  • b: column vector representing the right-hand side of the inequality constraints = 10 8 6 4 2 4 1 1 1 ,
  • A e q : a matrix representing the linear equality constraints = [ ] ,
  • b e q : a column vector representing the right-hand side of the equality constraints = [ ] ,
  • l b : a column vector representing the lower bounds on the variables = [ 1 1 1 1 1 1 1 1 1 1 ] ,
  • u b : a column vector representing the upper bounds on the variables = [ ] .
  • The output obtained is as follows:
  • x = 14 13 12 11 10 9 8 7 6 4 .

3.2. Radio Mean Labeling Algorithm and Its Complexity

Let G be a connected graph of order n and diameter d having vertex set V ( G ) = { v 1 , v 2 , v 3 , , v n } . Let P : v 1 v 2 v d + 1 be a diametral path of G and D be the distance matrix of G. As demonstrated in [27], if l is a radio mean labeling of P, the extension of l to V ( G ) gives a radio mean labeling of G. The radio mean labeling of a path graph has already been studied in [22], and the labeling discussed there can be utilized. In this section, we provide an algorithm to label the vertices of G in a way that satisfies the radio mean condition, which is essentially an extension of the labeling discussed in [22].
The outline of the proposed algorithm is given in Figure 3. It takes vertex set of G, vertex set of diametral path P, diameter d of G, distance matrix D as input and returns vertices of G together with its labels and the s p a n of this labeling. Initially, all vertices are assigned 0 as the label. Then, the diametral path of G is radio mean labeled. Later, the vertices not in the (labeled) diametral path are assigned labels in such a way that radio mean condition holds between every pair of distinct vertices of G.
Algorithm 1 uses the radio mean labeling of paths discussed in [22] to label the diametral path P. There may exist many other radio mean labelings of P with the same or lesser s p a n . Suppose that S in step 47 is nonempty. In such a case, we must check for all possible ways of labeling vertices of V ( G ) V ( P ) with elements of S and maximum number of elements of S must be used for labeling vertices. This ensures that radio mean labeling of G obtained is having lesser span. Also, in step 68, if U is nonempty, there is no specific order in assigning labels to the vertices in U. One may produce different radio mean labelings of G using this algorithm. The  s p a n of each of these labelings is an upper bound of the radio mean number of G. The minimum among these s p a n s will be a better upper bound.
Algorithm 1 To find a radio mean labeling of a connected graph G.
Input: d , V ( G ) , V ( P ) , D
Output: vertices together with labels, s p a n
Begin:
   1:
n | V ( G ) |
   2:
for j← 1 to n do
   3:
       R ( v j ) 0
   4:
end for
   5:
if  d + 1 { 2 , 3 } then
   6:
      for  j 1 to d + 1  do
   7:
             R ( v j ) j
   8:
      end for
   9:
end if
 10:
if  d + 1 { 4 , 5 , 6 }  then
 11:
       R ( v 1 ) d 2
 12:
       R ( v 2 ) 2 d 2
 13:
       R ( v 3 ) d 1
 14:
      for  j 4 to d + 1  do
 15:
             R ( v j ) 2 d + 1 j
 16:
      end for
 17:
end if
 18:
if  d + 1 7  then
 19:
       m 1
 20:
      while  d + 1 [ 4 + m ( m + 5 ) 2 , 6 + m ( m + 5 ) 2 + m ]  do
 21:
             m m + 1
 22:
      end while
 23:
       p 1 1
 24:
       R ( v p 1 ) d m 2
 25:
      for  j 2 to m + 2  do
 26:
             p j d + p j 1 R ( v p j 1 )
 27:
             R ( v p j ) d + j m 3
 28:
      end for
 29:
      for  j p m + 2 + 1 to d + 1  do
 30:
             R ( v j ) 2 d j + 1
 31:
      end for
 32:
       l m + 2
 33:
      while  l 2  do
 34:
            for  j p ( l 1 ) + 1 to p l 1  do
 35:
                   R ( v j ) R ( v p l + 1 ) j + p l
 36:
            end for
 37:
             l l 1
 38:
      end while
 39:
end if
 40:
r max { R ( v j ) : v j V ( P ) }
 41:
if  | V ( P ) | = = n  then
 42:
      go to step 71
 43:
end if
 44:
U { u V ( G ) : R ( u ) = 0 }
 45:
V { v V ( G ) : R ( v ) 0 }
 46:
S { 1 , 2 , , r } { R ( v 1 ) , R ( v 2 ) , , R ( v d + 1 ) }
 47:
if  S  then
 48:
      for each s S  do
 49:
            for each u U  do
 50:
                   t e m p ( u ) s
 51:
                  for each v V  do
 52:
                        if  t e m p ( u ) + R ( v ) 2 + d ( u , v ) d + 1  then
 53:
                               r m l _ c o n d n Y
 54:
                        else
 55:
                               r m l _ c o n d n N
 56:
                              Break and Go to Step 50
 57:
                        end if
 58:
                  end for
 59:
                  if  r m l _ c o n d n Y  then
 60:
                         R ( u ) t e m p ( u )
 61:
                         U U { u }
 62:
                         V V { u }
 63:
                  end if
 64:
            end for
 65:
      end for
 66:
end if
 67:
if  U  then
 68:
      for each u U  do
 69:
             r r + 1
 70:
             R ( u ) r
 71:
      end for
 72:
end if
 73:
s p a n r
 74:
return { ( v , R ( v ) ) : v V ( G ) } , s p a n
End

3.2.1. The Correctness of Algorithm 1

It is clear that the algorithm assigns distinct positive integers as labels to the vertices of G. Let us now check whether every pair of vertices in G satisfies the radio mean condition. As mentioned earlier, radio mean labeling discussed in [22] is exploited to label vertices belonging to P and so the labels assigned to any pair of vertices v i , v j V ( P ) by this algorithm satisfies radio mean condition. Let S = { 1 , 2 , , r } { R ( v ) : v V ( P ) } where r = max { R ( v ) : v V ( P ) } . If S is non empty, the algorithm itself checks if the vertices of V ( G ) V ( P ) can be labeled with elements of S in such a way that radio mean condition holds between every pair of distinct vertices of G. Finally, let U = { v V ( G ) : R ( v ) > r } . Note that if v U , R ( v ) = r + q for some integer q where 1 q | U | .
Consider any pair of vertices v i , v j U . Then,
R ( v i ) + R ( v j ) 2 + d ( v i , v j ) = r + q + r + q 2 + d ( v i , v j ) r + q + q 2 1 + d ( v i , v j ) d + 1 , as r d .
Consider a pair of vertices ( v i , v j ) such that v i V ( P ) and v j U .
If 2 d + 1 3 , then r = R ( v d + 1 ) and
R ( v i ) + R ( v j ) 2 + d ( v i , v j ) = R ( v i ) + r + q 2 + d ( v i , v j ) = R ( v i ) + R ( v d + 1 ) + q 2 + d ( v i , v j ) = i + d + 1 + q 2 + d ( v i , v j ) d + 1 .
If d + 1 [ 4 + m ( m + 5 ) 2 , 6 + m ( m + 5 ) 2 + m ] , m = 0 , 1 , 2 , , then r = R ( v 2 ) and
R ( v i ) + R ( v j ) 2 + d ( v i , v j ) = R ( v i ) + r + q 2 + d ( v i , v j ) = R ( v i ) + R ( v 2 ) + q 2 + d ( v i , v j ) 3 d 2 m 4 2 + q 2 1 + d ( v i , v j ) = 3 d 2 m 2 + q 2 1 + d ( v i , v j ) d + 1 , as d > > m .
Thus, the radio mean condition is satisfied by every pair of vertices of G and this shows that Algorithm 1 provides a radio mean labeling of G.

3.2.2. On the Complexity of Algorithm 1

Let us now estimate the computational complexity of this algorithm.
  • The first step of this algorithm is to loop through V ( G ) and assign 0 as label to each of the n vertices. Hence, the computational complexity of steps 2–5 is O ( n ) .
  • Next, the vertices of diametral path P of G are assigned labels. As we are interested in worst-case complexity, we count only the complexity when d + 1 7 . The complexity of steps 19 40 is O ( m ) + O ( m + 1 ) + O ( d + 1 ) + O ( m + 2 ) O ( d ) , as m < < d . In worst case, d = n 1 and then complexity is O ( n ) .
  • Each of the steps 41–47 is of complexity O ( 1 ) .
  • After labeling the diametral path, we check whether any of the integers of the set S can be assigned to vertices not belonging to P satisfying Radio mean condition. Complexity of steps 48–67 is O ( d m 3 ) × O ( n d 1 ) × O ( d + 1 ) O ( n d 2 ) . Note that steps from 41 on wards will be considered for execution only if d n 2 . To evaluate the worst-case complexity, we need to assume that d = n 2 and in such a case complexity of steps 48–67 together is of order n 2 .
  • A maximum of n d 1 vertices can still be there with label 0 and they will be labeled next with positive integers. The complexity of steps 68–73 is O ( n d 1 ) . To analyze the worst case, we must consider the minimum value of d and that is 1. Hence, the complexity of steps 68–73 together is of order n.
  • Each of the steps 74–75 is of complexity O ( 1 ) .
Combining all the above steps, we see that total computational complexity, T ( n ) = O ( n ) + O ( n ) + 5 × O ( 1 ) + O ( n 2 ) + O ( n ) + 2 × O ( 1 ) O ( n 2 ) .

3.2.3. A Demonstration of Algorithm 1

We shall now illustrate how this algorithm works.
Let us consider a cycle C : v 1 v 2 v 19 v 20 . Then, C has diameter 10 and let P : v 1 v 2 v 10 v 11 be a diametral path of C. The algorithm will initialize the label as 0 for each vertex of C. Since diameter of C is greater than 6, steps from 6 to 18 of Algorithm 1 are skipped. As d + 1 = 11 belongs to the interval [ 11 , 15 ] , we have m = 2 . The vertices belonging to path P will be then assigned labels as follows: v 1 6 , v 2 16 , v 3 15 , v 4 14 , v 5 7 , v 6 13 , v 7 12 , v 8 8 , v 9 11 , v 10 9 , v 11 10 . Thus, r = 16 , U = { v 12 , v 13 , , v 20 } , V = { v 1 , v 2 , , v 11 } and S = { 1 , 2 , 3 , 4 , 5 } . The algorithm will now verify whether any of the integers of S can be assigned to a vertex in U in such a way that radio mean condition holds between every pair of distinct vertices of C. Having labeled v 1 , v 2 , , v 11 in this way, it is seen that none of the remaining vertices can be labeled with 1 or 2 satisfying radio mean condition. However, one of the following is possible: ( i ) v 15 3 , ( i i ) v 15 4 , ( i i i ) v 14 5 . Let us label v 15 with 3. So U is now the set { v 12 , v 13 , v 14 , v 16 , , v 20 } . Since v 15 obtains the label 3, integers 4 and 5 cannot be used to label the vertices of U. These vertices of U will now be assigned integers { 17 , 18 , , 24 } . There are 8 vertices in U and so there are 8 ! different ways of labeling them with distinct integers of the set { 17 , 18 , , 24 } . One such labeling is v 12 24 , v 13 23 , v 14 22 , v 15 3 , v 16 21 , v 17 20 , v 18 19 , v 19 18 , v 20 17 . Therefore, s p a n of this radio mean labeling of C is 24. Hence, the output of Algorithm 1 is as follows:
{ ( v 1 , 6 ) , ( v 2 , 16 ) , ( v 3 , 15 ) , ( v 4 , 14 ) , ( v 5 , 7 ) , ( v 6 , 13 ) , ( v 7 , 12 ) , ( v 8 , 8 ) , ( v 9 , 11 ) , ( v 10 , 9 ) , ( v 11 , 10 ) , ( v 12 , 24 ) , ( v 13 , 23 ) , ( v 14 , 22 ) , ( v 15 , 3 ) , ( v 16 , 21 ) , ( v 17 , 20 ) , ( v 18 , 19 ) , ( v 19 , 18 ) , ( v 20 , 17 ) } , 24 .
See Figure 4 for the intermediate stages of radio mean labeling C 20 using Algorithm 1. Note that the output of Algorithm 1 is not unique.

3.2.4. Comparing Algorithms

Let us now compare the algorithm to obtain an upper bound on the radio mean number proposed in [21] with Algorithm 1. The algorithm of [21] begins by labeling the first vertex of the input graph with its diameter d. It then assigns labels to the remaining vertices, ensuring that each vertex receives the next minimum possible integer as label while satisfying the radio mean constraint. For a graph of order n, the upper bound of radio mean number returned by this algorithm is n + d . However, Algorithm 1 in Section 3.2 produces a labeling with span as follows:
  • s p a n = n : if d = 1 , 2 , 3 ;
  • s p a n n + 1 : if d = 4 , 5 ;
  • s p a n n + d k 3 : if d = 6 , 7 , 8 , 9 , , d + 1 [ 4 + S k , 6 + S k + k ] , S k = k ( k + 5 ) 2   and   k = 1 , 2 , 3 , .
Clearly, Algorithm 1 gives improved upper bounds on the radio mean number of graphs.

4. Concluding Remarks

Since all graphs of diameter 1 , 2 , 3 have a radio mean number equal to their order, it is obvious that, given a positive integer, there is always a graph with that integer as radio mean number. When we showed that there is no gap in the radio mean number line, it also proved the existence of graphs with diameter greater than 3 with a given integer as radio mean number.
The radio mean condition of a graph is solely dependent on its diameter, which makes finding suitable labeling for graphs with high order and diameter challenging. It becomes even more complex when dealing with graph classes that have order-dependent diameters. Designing an algorithm or ILP model that can radio mean label a specific class of graph with minimum span may be less arduous. Nevertheless, creating the same that can efficiently radio mean label any arbitrary graph with minimum span remains challenging.
In their publication [25], the authors proposed a novel method for generating cryptographic keys using radio mean labeled graphs. The cryptoalgorithm in scope of their study was Triple DES algorithm. The chosen graph for this key generation process was the Caterpillar tree, which had been previously discussed in Section 2. Algorithm 1 outlined in Section 3.2 is designed with the flexibility to generalize key generation techniques, enabling its adaptation to various graph structures beyond the Caterpillar tree. This method represents a significant advancement in cryptographic key generation methodologies, a topic that is not within the focus of the current study but certainly merits further exploration.
While an ILP model and a polynomial-time algorithm have been proposed to obtain radio mean labeling, determining the exact radio mean number of a given graph remains an open problem. Currently, the only way to find the radio mean number of a graph is to enumerate all feasible radio mean labelings and identify the one with the minimum s p a n . This observation serves as a motivation to explore the integration of radio mean labeling with cryptographic algorithms aiming for more secure communication. This integration could possibly add additional layers of protection on the keys and encrypted message.
Despite our study’s reliance on a tailored custom algorithm, the optimization field offers a diverse range of sophisticated techniques worthy of examination for their effectiveness. Advanced optimization algorithms, such as hybrid heuristics and meta heuristics, discussed in [28,29,30,31,32], have demonstrated their efficacy in tackling complex decision problems across various domains by efficiently exploring solution spaces. These algorithms have broad applications beyond our study’s scope, encompassing areas such as online learning, scheduling, transportation, and data classification, showcasing their versatility and promise in addressing real-world challenges. Future research endeavors could involve comparative analyses to assess our proposed approach against advanced optimization algorithms, offering insights into their respective strengths and weaknesses.

Author Contributions

Conceptualization, M.S., K.N.M. and Y.L; methodology, M.S. and K.N.M.; validation, M.S. and K.N.M.; formal analysis, M.S.; investigation, M.S.; writing—original draft preparation, M.S.; writing—review and editing, K.N.M.; writing—review, Y.L.; visualization, M.S.; supervision, K.N.M.; final approval, Y.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding and the APC was funded by Amrita Vishwa Vidyapeetham.

Data Availability Statement

This theoretical study on graph labeling does not involve experimental data, and no new data were created or analyzed.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A

The input and output arguments in the case of cycle C 10 are given here.
Mathematics 13 02057 i001
Mathematics 13 02057 i002
Mathematics 13 02057 i003
Mathematics 13 02057 i004
Mathematics 13 02057 i005
Mathematics 13 02057 i006

References

  1. Bondy, J.A.; Murty, U.S.R. Graph Theory; Springer Publishing Company, Incorporated: Berlin/Heidelberg, Germany, 2008. [Google Scholar]
  2. West, D.B. Introduction to Graph Theory; Prentice Hall: Upper Saddle River, NJ, USA, 2001; Volume 2. [Google Scholar]
  3. Chartrand, G.; Egan, C.; Zhang, P. How to Label a Graph; Springer International Publishing: Cham, Switzerland, 2019. [Google Scholar]
  4. Gallian, J.A. A dynamic survey of graph labeling. Electron. J. Comb. 2022, DS6, 4–623. [Google Scholar] [CrossRef] [PubMed]
  5. Chartrand, G.; Zhang, P. Chromatic Graph Theory; CRC Press: Boca Raton, FL, USA, 2019. [Google Scholar]
  6. Chartrand, G.; Erwin, D.; Harary, F.; Zhang, P. Radio labelings of graphs. Bull. Inst. Combin. Appl. 2001, 33, 77–85. [Google Scholar]
  7. Ponraj, R.; Narayanan, S.S.; Kala, R. Radio mean labeling of a graph. AKCE Int. J. Graphs Comb. 2015, 12, 224–228. [Google Scholar] [CrossRef]
  8. Lavanya, Y.; Meera, K.N. Radio mean graceful graphs. J. Phys. Conf. Ser. 2019, 1172, 012071. [Google Scholar] [CrossRef]
  9. Ponraj, R.; Narayanan, S.S. On radio mean number of some graphs. Int. J. Math. Comb. 2014, 3, 41. [Google Scholar]
  10. Ponraj, R.; Narayanan, S.S.; Kala, R. Radio mean number of some wheel related graphs. Jordan J. Math. Stat. JJMS 2014, 7, 273–286. [Google Scholar]
  11. Ponraj, R.; Narayanan, S.S.; Kala, R. Radio mean number of some subdivision graphs. Jordan J. Math. Stat. JJMS 2016, 9, 45–64. [Google Scholar]
  12. Ponraj, R.; Narayanan, S.S. Radio mean number of certain graphs. Int. J. Math. Comb. 2016, 2, 51. [Google Scholar]
  13. Palani, K.; Subi, S.S.S.; Maheswari, V. Radio Mean Labeling of path union of graphs. Adv. Appl. Math. Sci. 2022, 21, 2199–2209. [Google Scholar]
  14. Lavanya, Y.; Ammani, S. Radio mean labelling of subdivision of various graphs. In AIP Conference Proceedings; AIP Publishing: Melville, NY, USA, 2023; Volume 2492. [Google Scholar]
  15. Palani, K.; Subi, S.S.; Maheswari, V. Radio Mean Labeling of Some Splitting Graphs. J. Phys. Conf. Ser. 2021, 1947, 012011. [Google Scholar] [CrossRef]
  16. Sunitha, K.; Raj, C.D.; Subramanian, A. Radio mean labeling of Path and Cycle related graphs. Glob. J. Math. Sci. Theory Pract. 2017, 9, 337–345. [Google Scholar]
  17. Raj, C.D.; Saroja, M.D.; Mary, V.B. Radio mean labeling on degree splitting of graphs. Int. J. Anal. Exp. Modal Anal. 2020, 12, 1078–1082. [Google Scholar]
  18. Raj, C.D.; Brindha Mary, V.T. Radio Mean Graceful Labeling on degree splitting of cycle related Graphs. Adv. Appl. Math. Sci. 2022, 21, 3057–3064. [Google Scholar]
  19. Augustine, T.; Roy, S. Radio Labeling of Certain Networks. Palest. J. Math. 2023, 12, 75–80. [Google Scholar]
  20. Aasi, M.S.; Asif, M.; Iqbal, T.; Ibrahim, M. Radio labelings of lexicographic product of some graphs. J. Math. 2021, 2021, 1–6. [Google Scholar] [CrossRef]
  21. Badr, E.; Almotairi, S.; Eirokh, A.; Abdel-Hay, A.; Almutairi, B. An integer linear programming model for solving radio mean labeling problem. IEEE Access 2020, 8, 162343–162349. [Google Scholar] [CrossRef]
  22. Saraswathi, M.; Meera, K.N. Radio mean labeling of paths and its total graph. Turk. J. Comput. Math. Educ. TURCOMAT 2021, 12, 343–350. [Google Scholar]
  23. Saraswathi, M.; Meera, K.N. Comments on “An Integer Linear Programming Model for Solving Radio Mean Labeling Problem”. IEEE Access 2022, 10, 72206–72210. [Google Scholar] [CrossRef]
  24. Saraswathi, M.; Meera, K.N. An Application of Radio Mean Labeling in Cryptography. In Proceedings of the 2021 IEEE 3rd PhD Colloquium on Ethically Driven Innovation and Technology for Society (PhD EDITS), Bangalore, India, 13 November 2021; pp. 1–2. [Google Scholar]
  25. Saraswathi, M.; Meera, K.N. Radio Mean Labeled Graphs to Generate Keys in Cryptography. In Proceedings of the 2021 2nd International Conference on Communication, Computing and Industry 4.0 (C2I4), Bangalore, India, 16–17 December 2021; pp. 1–3. [Google Scholar]
  26. Saraswathi, M.; Meera, K.N. Radio mean labeled paths in Cryptography. In Proceedings of the 2022 IEEE 4th PhD Colloquium on Emerging Domain Innovation and Technology for Society (PhD EDITS), Bangalore, India, 4–5 November 2022; pp. 1–2. [Google Scholar]
  27. Saraswathi, M.; Meera, K.N. Bounds on radio mean number of graphs. J. Intell. Fuzzy Syst. 2023, 44, 1691–1702. [Google Scholar] [CrossRef]
  28. Chen, M.; Tan, Y. SF-FWA: A Self-Adaptive Fast Fireworks Algorithm for effective large-scale optimization. Swarm Evol. Comput. 2023, 80, 101314. [Google Scholar] [CrossRef]
  29. Dulebenets, M.A. An Adaptive Polyploid Memetic Algorithm for scheduling trucks at a cross-docking terminal. Inf. Sci. 2021, 565, 390–421. [Google Scholar] [CrossRef]
  30. Dulebenets, M.A. A Diffused Memetic Optimizer for reactive berth allocation and scheduling at marine container terminals in response to disruptions. Swarm Evol. Comput. 2023, 80, 101334. [Google Scholar] [CrossRef]
  31. Singh, P.; Pasha, J.; Moses, R.; Sobanjo, J.; Ozguven, E.E.; Dulebenets, M.A. Development of exact and heuristic optimization methods for safety improvement projects at level crossings under conflicting objectives. Reliab. Eng. Syst. Saf. 2022, 220, 108296. [Google Scholar] [CrossRef]
  32. Singh, E.; Pillay, N. A study of ant-based pheromone spaces for generation constructive hyper-heuristics. Swarm Evol. Comput. 2022, 72, 101095. [Google Scholar] [CrossRef]
Figure 1. Path of order up to 10 with minimum s p a n radio mean labeling.
Figure 1. Path of order up to 10 with minimum s p a n radio mean labeling.
Mathematics 13 02057 g001
Figure 2. T n , d of order n and diameter d.
Figure 2. T n , d of order n and diameter d.
Mathematics 13 02057 g002
Figure 3. The outline of the algorithm for radio mean labeling of a graph.
Figure 3. The outline of the algorithm for radio mean labeling of a graph.
Mathematics 13 02057 g003
Figure 4. Intermediate stages of radio mean labeling of C 20 using Algorithm 1.
Figure 4. Intermediate stages of radio mean labeling of C 20 using Algorithm 1.
Mathematics 13 02057 g004
Table 1. Radio mean number of T 10 , d where 2 d 9 .
Table 1. Radio mean number of T 10 , d where 2 d 9 .
Diameter, d rmn ( T 10 , d )
210
310
411
511
612
713
814
914
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

Saraswathi, M.; Meera, K.N.; Lin, Y. Radio Mean Labeling Algorithm, Its Complexity and Existence Results. Mathematics 2025, 13, 2057. https://doi.org/10.3390/math13132057

AMA Style

Saraswathi M, Meera KN, Lin Y. Radio Mean Labeling Algorithm, Its Complexity and Existence Results. Mathematics. 2025; 13(13):2057. https://doi.org/10.3390/math13132057

Chicago/Turabian Style

Saraswathi, Meera, K. N. Meera, and Yuqing Lin. 2025. "Radio Mean Labeling Algorithm, Its Complexity and Existence Results" Mathematics 13, no. 13: 2057. https://doi.org/10.3390/math13132057

APA Style

Saraswathi, M., Meera, K. N., & Lin, Y. (2025). Radio Mean Labeling Algorithm, Its Complexity and Existence Results. Mathematics, 13(13), 2057. https://doi.org/10.3390/math13132057

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