Next Article in Journal
Limit Theorems for Kernel Regression Estimator for Quasi-Associated Functional Censored Time Series Within Single Index Structure
Previous Article in Journal
AFSA-FastICA-CEEMD Rolling Bearing Fault Diagnosis Method Based on Acoustic Signals
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Center of Trapezoid Graph: Application in Selecting Center Location to Set up a Private Hospital

1
Department of Mathematics, Research Centre in Natural and Applied Sciences, Raja N. L. Khan Women’s College, Midnapore 721102, India
2
Department of Mathematics, Government General Degree College, Salboni, Midnapore 721516, India
3
Department of Mathematics, Tamralipta Mahavidyalaya, Tamluk 721636, India
4
Department of Technical Sciences, Algebra University, Gradiscanska 24, 10000 Zagreb, Croatia
5
Research Center of Performance and Productivity Analysis, Istinye University, Istanbul 34010, Türkiye
6
Department of Mathematics, Shahid Matangini Hazra Government General Degree College for Women, Tamluk 721649, India
7
Rudolfovo Science and Technology Centre, Podbreznik 15, 8000 Novo Mesto, Slovenia
8
College of Engineering and Technology, American University of the Middle East, Egaila 54200, Kuwait
*
Author to whom correspondence should be addressed.
Mathematics 2025, 13(5), 885; https://doi.org/10.3390/math13050885
Submission received: 4 February 2025 / Revised: 27 February 2025 / Accepted: 3 March 2025 / Published: 6 March 2025

Abstract

:
The central location problem is a key aspect of graph theory, with a significant importance in various applications and studies within the field. The center of a graph is made up of nodes that have the smallest eccentricity, where eccentricity is defined as the greatest distance between a given node and any other node in the graph. To determine the graph’s center, it is essential to compute the eccentricity of each node. In this article, we explore various characteristics of the BFS tree of trapezoid graphs. We also present new properties that relate to the radius, diameter, and center of trapezoid graphs. For the trapezoid graph G, We prove that the difference between the d i a m e t e r ( G ) and the height of the BFS trees T t ( 1 ) , T t ( n ) , T t ( a ) , and T t ( b ) is at most one. We also establish relationship between r a d i u s ( G ) and d i a m e t e r ( G ) of trapezoid graphs. We also show that, to find the center of a trapezoid graph, it is not necessary to find the eccentricity of all vertices. Based on our studied results, we design an optimal algorithm for finding the center, radius, and diameter of trapezoid graphs. Also, we prove theoretically that our proposed algorithm compiles within O ( n ) time. We also find an algorithmic solution to real problems (that involves finding a center location in a district to build a private hospital that minimizes the farthest distance from it to all areas of the district) with the help of the trapezoid graph model and BFS trees within O ( n ) time.
MSC:
05C90; 05C85

1. Introduction

The center location problem is a classical optimization problem where the aim is to compute the optimal location for a facility (like a hospital, fire station, warehouse, etc.) to minimize the maximum distance to the farthest point. The importance of determining the optimal location for service facilities has been steadily increasing. The exploration of service location problems began in the early 20th century, gaining notable attention especially after the 2000s. Facility location theory was originally based on Alfred Weber’s single warehouse problem in 1909. These problems often arise in transportation, urban planning, and distribution network design. In this article, we focus on finding the radius, diameter, and center of trapezoid graphs. This article also addresses a specific type of central location problem, which is solved using a trapezoid graph model.
Suppose T is a set of n trapezoids t 1 , t 2 , t 3 ,…, t n . In a trapezoid diagram (T-diagram), we define a trapezoid t i by four different corner points [ p i , q i , r i , s i ] . A typical T-diagram [1] has two parallel horizontal lines—one as the top line, and the other as the bottom line. We assume that no two trapezoids share a common vertex. In the T-diagram, we place the corner points p i and q i (   p i ) on the top line and r i and s i (   r i ) on the bottom line. The trapezoids in the T-diagram are indexed according to the ascending order of their corner points q i , where i = 1 ,   2 , ,   n . A trapezoid graph is an intersection graph formed by a set of trapezoids arranged within a T-diagram. Here, we consider an undirected trapezoid graph, which is also simple and connected. Two trapezoids t i and t j , ( j > i ) intersect if and only if either ( p j q i ) < 0 , ( r j s i ) < 0 , or both. The recognition of a trapezoid graph can be accomplished in O ( n 2 ) time [2]. Initial studies on trapezoid graphs were presented in [1,3]. This graph is more complex than both permutation and interval graphs [4]. It is also a subclass of cocomparability graphs [5]. We present a trapezoid diagram and its corresponding trapezoid graph in Figure 1 and Figure 2. For convenience, we use the symbols t a and t b to indicate the trapezoid whose bottom-left corner point position is the minimum and the trapezoid whose bottom-right corner point position is the maximum, respectively. In Figure 1, t a = t 2 and t b = t 13 . This graph has many applications, such as for emergency services: finding the optimal location for fire stations or hospitals to minimize response time to the farthest service area; telecommunication networks: placing cell towers or communication hubs to maximize coverage while minimizing the maximum distance to undeserved regions; and warehousing and distribution: choosing warehouse locations to minimize the delivery distance to the furthest retail outlets, etc.
In this article, we focus on exploring various characteristics of the BFS trees and new properties that relate to the radius, diameter, and center of trapezoid graphs. We concentrate on establishing a sharp relationship between the r a d i u s ( G ) and d i a m e t e r ( G ) of trapezoid graphs. We also show that, to find the center of a trapezoid graph, it is not necessary to find the eccentricity of all vertices. We design an O ( n ) time algorithm for finding center, radius, and diameter of trapezoid graphs. In addition, theoretically, we prove that our proposed algorithm compiles in O ( n ) time. We also find an algorithmic solution to real problems (that involves finding a center location in a district to build a private hospital that minimizes the distance from it to all areas of the district) with the help of the trapezoid graph model and BFS graph traversal technique within O ( n ) time.

1.1. Some Definitions

First, we assume an undirected graph structure G = ( V , E ) which is simple as well as connected, where | V | = n and | E | = m . The term ‘distance’ between nodes v i and v j refers to the shortest-path’s length between them and we denote it by d ( v i , v j ) . The eccentricity of a vertex v V , denoted as e c c e n t r i c i t y ( v ) , represents the greatest length among all shortest paths starting from v and finishing at other remaining nodes, i.e., e c c e n t r i c i t y ( v ) = sup { d ( v , u 1 ) : u 1 V } . The maximum among all eccentricities of the nodes of G is considered the diameter of G and we denote it by d i a m e t e r ( G ) , i.e., d i a m e t e r ( G ) = sup { e c c e n t r i c i t y ( v ) : v V } . Also, the lowest eccentricity of all nodes of G is assumed to be the radius of G and we denote it by r a d i u s ( G ) , i.e., r a d i u s ( G ) = min { e c c e n t r i c i t y ( v ) : v V } . A central vertex/node z belonging to G is a node such that e c c e n t r i c i t y ( z ) = r a d i u s ( G ) . A graph may contain one or more central vertices. The set of all central nodes of a graph G is called the center of G and it is symbolled by c e n t e r ( G ) , i.e., c e n t e r ( G ) = { z V : e c c e n t r i c i t y ( z ) = r a d i u s ( G ) } . Computation of the diameter, radius, and center of a graph is fundamental and has many real-life applications. In different fields such as the facility location problem [6], social network problem [7], biological systems [7], and transportation networks [7], we can apply the concept of the center of the graph.

1.2. Review of the Related Works

A wide range of location-related problems have been explored for various types of service facilities. Numerous studies have been carried out by researchers, addressing diverse location issues across both private sectors (such as industrial plants, banks, and retail outlets) and public sectors (including schools, hospitals, and fire stations). In 2004, Stummer et al. [8] proposed a two-phase solution approach for addressing multi-objective decisions related to the location and size of medical departments within a hospital network. They used tabu search to find the optimal solution. In 2007, Wu et al. [9] introduced an AHP-based evaluation model to determine the best location for a regional hospital. Syam [10] developed a nonlinear location–allocation model, which was solved using Lagrangian relaxation in 2008. In 2009, Vahidnia et al. [11] applied an integrated multi-criteria decision analysis approach, enhanced by GIS analysis, for making hospital site selection decisions. Shariff et al. [12] tackled a healthcare facility location–allocation problem and introduced a new solution method based on genetic algorithms in 2012. In 2013, Kim and Kim [13] focused on a healthcare facility location problem involving two patient types—low-income and middle/high-income—using a heuristic algorithm based on Lagrangian relaxation and subgradient optimization. Shariff et al. [14] also explored a dynamic location problem for public primary healthcare facilities, applying a genetic algorithm in 2014. In 2015, Beheshtifar and Alimoahmmadi [15] proposed a location model that combines GIS analysis with a multi-objective genetic algorithm to determine the optimal locations for new the clinics and assign populations to these clinics. Elkady and Abdelsalam [16] integrated Monte Carlo simulation with Particle Swarm Optimization (PSO) to address the healthcare location–allocation problem in 2015. In 2015, Maric et al. [17] developed a hybrid method incorporating an Evolutionary Approach (EA) to identify facility locations from a set of potential sites and allocate patient groups to the nearest facility. In 2016, Elkady and Abdelsalam [18] introduced a two-loop Particle Swarm Optimization (PSO) algorithm to address the multi-objective healthcare facility location problem. Ouyang et al. [19] conducted a study focused on the healthcare facility location problem, utilizing the CPLEX solver in 2016. In 2016, Ye and Kim [20] proposed a network-based covering location problem, incorporating sub-models such as the network-based maximal covering location problem (Net-MCLP) and the network-based location set covering the problem (Net-LSCP). Zhang et al. [21] examined a public healthcare facility location–allocation problem, considering future decisions about the placement of several new facilities in 2016.
If we wish to solve real center location problems using graph models, then we have find the eccentricity, radius, diameter, and center of graphs. Computation of these parameters is an interesting problem in graph theory. Behzad et al. [22] first established a relation between the radius and diameter of a connected graph. Then, many research works [23,24] were conducted to solve this problem. For some particular graphs such as outer planar graphs [25], tree graphs [26], interval graphs [27], chordal graphs [28], and weighted cactus graphs [29], the center is computed in linear time. Olariu [30] designed a parallel algorithm to locate the center of interval graphs in O ( l o g n ) time with the help of O ( n ) processors. Also, Olariu [31] formulated another algorithm (runs in O ( n + m ) time) for the same purpose on the same graphs. Pal et al. [27] have developed a linear time ( O ( n ) time) algorithm to find out center and diameter of interval graphs. Further, Saha [32] also presented parallel algorithms (taking O ( ( n 2 / p ) + l o g n ) -time on an EREW PRAM, where p represents the number of processors) for finding the diameter, eccentricity, and radius of circular-arc graphs. Michele et al. [33] solved the center problem of weakly connected digraphs within O ( | V | | E | ) time. In [7], an efficient algorithm was proposed to identify the center of a graph, running in O ( n 3 a ) time, where a > 0.01 is a constant. Additionally, Abound et al. [34] introduced a faster algorithm that detects the center of a sparse graph in O ( n 2 δ ) time via solving all pairs’ shortest paths. Laskar et al. [35] established a relationship between the r a d i u s ( G ) and d i a m e t e r ( G ) of the chordal graph G, while Mahesh [36] developed an inequality relating the r a d i u s ( G ) and d i a m e t e r ( G ) for general graph G. In, 1997, Erich Prisner proved 2 × r a d i u s ( G ) d i a m e t e r ( G ) 2 for trapezoid graphs. Pramanik et al. [6] explored the relationship between the r a d i u s ( G ) and d i a m e t e r ( G ) of the interval graph G. In 2021, Nandi et al. [37] created an O ( n ) time algorithm for calculating r a d i u s ( G ) , d i a m e t e r ( G ) , and the center of permutation graphs, also establishing a sharp relationship between the r a d i u s ( G ) and d i a m e t e r ( G ) in these graphs.

1.3. Result

In this article, we present some characteristics of the BFS tree of trapezoid graphs. We explore new properties that relate to the radius, the diameter, and the center of trapezoid graphs. For the trapezoid graph G, we prove that the difference between the d i a m e t e r ( G ) and the height of the BFS trees T t ( 1 ) , T t ( n ) , T t ( a ) , and T t ( b ) is at most one. We also establish a relationship ( 2 × r a d i u s ( G ) d i a m e t e r ( G ) = k , k = 0 , 1 , 2 ) between the r a d i u s ( G ) and the d i a m e t e r ( G ) of trapezoid graphs. This result is slightly better than the result of [38] for k = 0 , 1 . We also prove that it is not necessary to find the eccentricity of all vertices to find the radius, the diameter, and the center of trapezoid graphs. We also propose an O ( n ) time algorithm to find the radius, the diameter, and the center of trapezoid graphs. We also analyze the time complexity of our proposed algorithm. Besides these, we consider a center location problem for identifying a center location in a district to construct a private hospital that minimizes the farthest distance from the hospital to other places in the district. We present an algorithmic solution of the proposed problem with the help of a trapezoid graph model and using BFS graph traversal technique within O ( n ) time.

1.4. Structure of Article

Section 2 presents the formation of B F S t r e e s   T t ( 1 ) , T t ( n ) , T t ( a ) , and T t ( b ) and identification their principal paths. In this section, some important results on BFS trees T t ( 1 ) , T t ( n ) , T t ( a ) , and T t ( b ) are given. We also explore some characteristics of these BFS trees in Section 2. Some essential results on the diameter, the radius, and the center of the trapezoid graph are presented in Section 3. In this section, we also establish a relationship ( 2 × r a d i u s ( G ) d i a m e t e r ( G ) = k , k = 0 ,   1 ,   2 ) between the r a d i u s ( G ) and the d i a m e t e r ( G ) of trapezoid graphs. This result is slightly better than the result of [38] for k = 0 ,   1 . We also prove that it is not necessary to find the eccentricity of all vertices to find the radius, the diameter, and the center of trapezoid graphs. In Section 4, we design an optimal algorithm for finding the central vertices, the r a d i u s ( G ) , and the d i a m e t e r ( G ) of trapezoid graphs. This section also presents the time complexity of our proposed algorithm. We also present an explanatory example of our proposed algorithm in Section 4. In Section 5, we present a real application of our studied results. Here, we find an algorithmic solution to a real problem (that involves finding a center location in a district to build a private hospital that minimizes the farthest distance from it to all areas of the district) with the help of the trapezoid graph model and BFS trees within O ( n ) time. Lastly, Section 6 describes the conclusion part and future planning of this paper.

2. Formation of BFS Tree Based on BFS

One of the effective graph traveling methods for researchers in graph theory is BFS. It assists us in building a BFS tree of the graph. For general graphs, we are able to build this tree by spending just O ( n + m ) -time [39]. Also for the tree, we found an algorithm (compiles in linear time) [40] for the same occasion. Again, Olariu has provided a faster algorithm (executes in just O ( n ) time) [41] to make an interval-tree (basically a B F S tree) on interval graph. Again, in [42], an algorithm is presented for the same purpose on permutation graphs within O ( n ) time. In [43], a TBFS algorithm (compiles within O ( n ) time) is available for building a B F S tree T ( z ) having root as z on trapezoid graphs. In the present paper, we use a new notation, T t ( z ) instead of T ( Z ) . We draw four B F S trees T t ( 1 ) , T t ( n ) (shown in Figure 3), and T t ( a ) , T t ( b ) (displayed in Figure 4) of the trapezoid graph shown in Figure 2.
The symbol L ( z ) , z V , refers to the level of z, which is the distance of z from the root of any BFS trees like T t ( 1 ) , T t ( n ) , T t ( a ) , T t ( b ) , etc. We also assign the level of the root of such types of trees to be 0. In [40], an algorithm is available by which we can determine the level of every node/vertex on these trees.

Detection of the Main Path and Alternative-Path on B F S Trees

For a B F S tree T t ( y ) (of a trapezoid graph G) with y V as root, suppose L ( z ) = k , where k N (set of integers), and z V is an arbitrary node at the highest level (i.e., k) of that tree. We define the shortest path between y and z ( z p n o d e ( z ) p n o d e ( p n o d e ( z ) ) y ) as the main path of the same tree, where p n o d e ( z ) is the parent node of z. The tree T t ( y ) may have other paths of length up to k. One of these other paths, we consider as the alternative path. We denote the node points/vertices on the main path and the alternative path of T t ( y ) at ith level by the symbols α i y and β i y , respectively. Here, we assume that α 0 i = β 0 i and α k i β k i , for i = 1 ,   n ,   a ,   b . Apart from this, some parts of the main path and the alternative path may coincide.
Lemma 1. 
For trapezoid graphs, the difference between the heights of any two trees among T t ( 1 ) , T t ( n ) , T t ( a ) , and T t ( b ) is maximum 1.
Proof. 
We suppose that h 1 , h n , h a , and h b are the heights of T t ( 1 ) , T t ( n ) , T t ( a ) , and T t ( b ) , respectively. First, we prove that 0 | h 1 h a | 1 . If we minutely observe the trapezoid diagram, then we see that either 1 = a or 1 a . If 1 = a , then h 1 = h a . If 1 a , then a situated at the first level of T t ( 1 ) . Now, let z i be an arbitrary node at the ith level of T t ( 1 ) , i = 1 ,   2 , ,   h 1 . So, in that case, h 1 1 d ( a , z h 1 ) h 1 + 1 because the probable shortest paths between a and z are as follows:
  • a 1 ( = α 0 1 ) z 1 z 2 z h 1
  • or a z 1 z 2 z h 1
  • or a z 2 z 3 z h 1
Now, if we build a BFS tree T t ( a ) , then h 1 1 h a h 1 + 1 , i.e., 0   | h 1 h a |   1 .
Similarly, we can show that 0   | h n h b |   1 .
Next, we prove that 0   | h 1 h n |   1 . Now, if we observe the trapezoid diagram and follow the TBFS algorithm [43], then we can see either of the following observations:
(1)
Vertex n is located at the last level h 1 of the tree T t ( 1 ) .
(2)
Vertex n is situated at the level h 1 1 of the tree T t ( 1 ) .
Case 1: When vertex n is found at the last level h 1 of the tree T t ( 1 ) . In that case, node 1 may be located at level h n or h n 1 of the tree T t ( n ) . Now, if the node 1 is found at level h n of the tree T t ( n ) , then | h 1 h n | = 0 . Again, if node 1 is found at level h n 1 of the tree T t ( n ) , then there exists at least one node point z at the last level h n of the tree T t ( n ) . So, | h 1 h n | =   1 as h n = d ( z , n ) = d ( z , 1 ) + d ( 1 , n ) = 1 + h 1 .
Case 2: When vertex n is situated at the level h 1 1 of the tree T t ( 1 ) . So, at the last level of T t ( 1 ) , at least one vertex v is found there. In that case, node 1 may be located at level h n or h n 1 of the tree T t ( n ) . Now, if the node 1 is found at level h n of the tree T t ( n ) , then h n = d ( n , 1 ) = d ( v , 1 ) d ( v , n ) = h 1 1 . That is, | h 1 h n |   = 1 . Again, if the node 1 is found at level h n 1 of the tree T t ( n ) , then there exists at least one node z at the last level of T t ( n ) . So, h n = d ( n , z ) = d ( n , 1 ) + d ( z , 1 ) = ( h 1 1 ) + 1 = h 1 . So, | h 1 h n |   = 0 .
Similarly, we can show that 0   | h 1 h b |   1 , 0   | h a h b |   1 and 0   | h a h n |   1 . Hence the result.    □
Lemma 2. 
If the B F S tree T t ( 1 ) consists of two internal vertices at any level, then the maximum indexed vertex at that level must be an internal vertex at the same level.
Proof. 
We know ([44]) that the BFS tree T t ( 1 ) cannot have more than two internal nodes at any level. As per the algorithm, TBFS [43], only the right scanning is needed to build T t ( 1 ) . Let there be certain stages of the scanning process; [ t p 1 , t p 2 ] , and [ b p 1 , b p 2 ] are, respectively, the top scanning and bottom scanning intervals. Also, let K be the set formed by the vertices whose corresponding unmarked trapezoids are scanned in the mentioned intervals. So, by the TBFS algorithm [43], members of K will be placed at the next level (say i) of the vertices corresponding to the trapezoids relating to t p 2 and b p 2 as the children of the same vertices (relating to t p 2 and b p 2 ). After that, two scanning intervals are reset as [ t p 1 , t p 2 ] = [ t p 2 , s ] and [ b p 1 , b p 2 ] = [ b p 2 , t ] , where, s is the top-right vertex of the trapezoid corresponding to s u p { K } and t is the bottom-right vertex of the trapezoid whose spread along the bottom channel is the maximum. Let, at level i, two internal nodes exist. So, [ t p 1 , t p 2 ] and [ b p 1 , b p 2 ] are both non-empty. So, at the end of scanning these new two intervals, the vertices corresponding to t p 2 and b p 2 will be set as two internal nodes at level i, where the vertex corresponding to t p 2 is equal to s u p { K } . So, if T t ( 1 ) consists of two internal vertices at any level, then the maximum indexed vertex at that level must be an internal vertex/node at the same level.    □
Note 1. 
The above result is also true for the trees T t ( n ) , T t ( a ) , and T t ( b ) .
Lemma 3. 
If x is any leaf node at level 1 of T t ( 1 ) and α 1 1 , β 1 1 exist, then either ( x , α 1 1 ) E , ( x , β 1 1 ) E , or both.
Proof. 
Since α 1 1 and β 1 1 both exist so, one of α 1 1 and β 1 1 extends at the maximum along the top line and the other extends at the maximum along the bottom line, among all N ( 1 ) (see Figure 4). Again, if x is a leaf node at level 1 of T t ( 1 ) and β 1 1 < α 1 1 , then p β 1 1 < q 1 < q x < q β 1 1 < q α 1 1 or p β 1 1 < q 1 < p β 1 1 < q x < q α 1 1 . So, ( x , β 1 1 ) E and x may or may not be adjacent to α 1 1 . Again, if if x is a leaf node at level 1 of T t ( 1 ) and β 1 1 > α 1 1 , then ( x , α 1 1 ) E and x may or may not be adjacent to β 1 1 . Hence, the result is proved.   □

3. Some Results Related to diameter ( G ) , radius ( G ) , and Center of Trapezoid Graphs

Here, we propose and prove some vital results related to d i a m e t e r ( G ) , r a d i u s ( G ) , and the center of trapezoid graphs.
Lemma 4. 
For a trapezoid graph G, if h 1 = h n = h a = h b = h ( s a y ) and there exist at least two nodes x , y such that x ( Q 1 1 Q 1 a ) , y ( Q 1 n Q 1 b ) and ( x , z ) E , for all z P 2 1 P 2 a { α 1 1 , β 1 1 , α 1 a , β 1 a } and ( y , t ) E , for all t P 2 n P 2 b { α 1 n , β 1 n , α 1 b , β 1 b } , then d i a m e t e r ( G ) = h + 1 , else d i a m e t e r ( G ) = m a x { h 1 , h n , h a , h b } .
Proof. 
Let the height of the B F S tree T t ( 1 ) , T t ( n ) , T t ( a ) , and T t ( b ) be the same and equal to h, and there exist at least two node points x , y such that x ( Q 1 1 Q 1 a ) , y ( Q 1 n Q 1 b ) and ( x , z ) E , for all z P 2 1 P 2 a { α 1 1 , β 1 1 , α 1 a , β 1 a } and ( y , t ) E , for all t P 2 n P 2 b { α 1 n , β 1 n , α 1 b , β 1 b } . So, by the given conditions, y P h 1 1 . Now, for the tree T t ( 1 ) , d ( x , y ) = h 1 + 1 (see the corresponding path x α 0 1 α 1 1 α h 1 1 1 y or x β 0 1 β 1 1 β h 1 1 1 y ). So, d ( x , y ) will be the longest shortest path in G. So, d i a m e t e r ( G ) = h + 1 as h = h 1 .
Similarly, for the trees T t ( n ) , T t ( a ) , and T t ( b ) , we can easily prove that d i a m e t e r ( G ) = h + 1 .
Now, if any one of the heights h 1 , h n , h a , and h b is different from the others or if h 1 = h n = h a = h b and no such x and y exist, then, from the trapezoid diagram, we can say that the shortest path between any one among { 1 , a } and anyone among { n , b } gives the possible greatest shortest path between any pair of nodes in V. Again, the difference between the heights of any two trees among T t ( 1 ) , T t ( n ) , T t ( a ) , and T t ( b ) is maximum 1 (by Lemma 1). Therefore, the highest value of h 1 , h n , h a , and h b indicates the length of the greatest shortest path between any pair of nodes. So, d i a m e t e r ( G ) = m a x { h 1 , h n , h a , h b } .   □
Observing the results of Lemmas 1 and 4, we can conclude the following.
Note 2. 
If h is the height of any one of the BFS trees T t ( 1 ) , T t ( n ) , T t ( a ) , and T b ( 1 ) of a trapezoid graph G, then the diameter of G is either h or h + 1 .
Lemma 5. 
For a trapezoid graph G, if the heights of four trees T t ( 1 ) , T t ( n ) , T t ( a ) , and T t ( b ) are the same and equal to h(say) and d i a m e t e r ( G ) = h + 1 , then the number of internal node points at level h 1 for each of these trees is just one.
Proof. 
Suppose the heights of four BFS trees T t ( 1 ) , T t ( n ) , T t ( a ) , and T t ( b ) are the same and equal to h and d i a m e t e r ( G ) = h + 1 . Then, we will find at least two nodes x , y such that x ( Q 1 1 Q 1 a ) , y ( Q 1 n Q 1 b ) , and ( x , z ) E , for all z P 2 1 P 2 a { α 1 1 , β 1 1 , α 1 a , β 1 a } and ( y , t ) E , for all t P 2 n P 2 b { α 1 n , β 1 n , α 1 b , β 1 b } . So, the node x lies at the first level for the trees T t ( 1 ) and T t ( a ) as well as last level for the trees T t ( n ) and T t ( b ) and the node y lies at the first level for the trees T t ( n ) and T t ( b ) as well as the last level for the trees T t ( 1 ) and T t ( a ) . Therefore, one of n and b is the parent node located at the level h 1 of y for the trees T t ( 1 ) and T t ( a ) and one of 1 and a is the parent node point placed at the level h 1 of x for the trees T 1 ( n ) and T t ( b ) . Hence, the number of internal node points at level h 1 for all these four trees is just one.    □
Lemma 6. 
For a trapezoid graph G, if the height of the BFS tree T t ( 1 ) is even, say h 1 = 2 k , and d i a m e t e r ( G ) = 2 k + 1 , k N , then r a d i u s ( G ) = k + 1 and all central vertices lie in P ( = P k 1 1 P k 1 P k + 1 1 ) .
Proof. 
For a trapezoid graph G, let us consider that h 1 = 2 k and d i a m e t e r ( G ) = 2 k + 1 , k N . So, there exists a leaf node x Q 1 1 . Now, if there exists only one internal node α 1 1 at the first level of T t ( 1 ) , then ( x , α 1 1 ) E , ( x , α 2 1 ) E and ( β i 1 , α i + 1 1 ) E , for i = 2 , 3 , , 2 k 1 . In that case, d ( α k 1 , α 0 1 ) = k 1 , d ( α k 1 , x ) = k + 1 (like x α 0 1 α 1 1 α k 1 ), d ( α k 1 , α 2 k 1 ) = k . So, d ( α k 1 , y ) k + 1 , for all y V . Similarly, d ( α k 1 1 ) , y ) k + 1 , for all y V . So, e c c e n t r i c i t y ( α k 1 ) = e c c e n t r i c i t y ( α k 1 1 ) = k + 1 and eccentricity of other vertices are k + 1 or more. So, r a d i u s ( G ) = k + 1 , and α k 1 , α k 1 1 are two central vertices of G.
Again, if x Q 1 1 and there exists two internal nodes α 1 1 , β 1 1 , where α 1 1 > β 1 1 at the first level of T t ( 1 ) , then ( x , α 1 1 ) E , ( x , α 2 1 ) E , ( β i 1 , α i + 1 1 ) E , for i = 1 , 2 , 3 , , 2 k 1 . But, ( x , β 1 1 ) E . In that case, d ( β k + 1 1 , α 0 1 ) = d ( β k + 1 1 , x ) = k + 1 , d ( β k + 1 1 , α 2 k 1 ) = k and d ( β k + 1 1 , β 2 k 1 ) = k 1 . So, d ( β k + 1 1 , y ) k + 1 , for all y V . So, β k + 1 1 is a central vertex.
Therefore, r a d i u s ( G ) = k + 1 and all central vertices lie in P ( = P k 1 1 P k 1 P k + 1 1 ) .   □
From the above result, we see that r a d i u s ( G ) = k + 1 and d i a m e t e r ( G ) = 2 k + 1 . So, we can conclude the following.
Corollary 1. 
2 × r a d i u s ( G ) d i a m e t e r ( G ) = 1 .
This result is slightly better than the result of [38].
Lemma 7. 
For a trapezoid graph G, if h 1 is even, say h 1 = 2 k , and d i a m e t e r ( G ) = 2 k , k N , then r a d i u s ( G ) = k or r a d i u s ( G ) = k + 1 and the center lies in P = ( P k 1 1 P k 1 P k + 1 1 ) .
Proof. 
For a trapezoid graph G, let us consider that h 1 = 2 k , and d i a m e t e r ( G ) = 2 k , k N . Now, if a leaf node x Q 1 1 and only a main path exists, then ( x , α 1 1 ) E , ( x , α 2 1 ) E , or both. In that case, d ( α k 1 , α 0 1 ) = k (along the main path), d ( α k 1 , α 1 1 ) = k 1 (along the main path), d ( α k 1 , x ) k (like x α 1 1 α 2 1 α k 1 or x α 2 1 α 3 1 α k 1 ), and d ( α k 1 , α 2 k 1 ) = k (along the main path). So, d ( α k 1 , y ) k for all y V ( G ) . Therefore, the eccentricity of α k 1 is k and eccentricity of other vertices are k or more. So, r a d i u s ( G ) = k and α k 1 is a central vertex of G, i.e., the center lies in P k 1 .
If a leaf node x Q 1 1 and both a main path ( α 0 1 α 1 1 α 2 k 1 ) and an alternative path ( α 0 1 β 1 1 β 2 k 1 ) exist, where β 1 1 < α 1 1 , then, by Lemma 3, ( x , β 1 1 ) E ( ( x , α 2 1 ) E , ( x , α 1 1 ) E , or both). In that case, if ( α i 1 , β i + 1 1 ) E and ( α i + 1 1 , β i 1 ) E , for all i = 1 , 2 , , 2 k 1 , then d ( α k 1 , α 0 1 ) = k (along the main path), d ( α k 1 , α 1 1 ) = k 1 (along the main path), d ( α k 1 , x ) k + 1 (like x α 1 1 α 2 1 α k 1 or x α 2 1 α 3 1 α k 1 ), d ( α k 1 , β 1 1 ) k (as α k 1 α k 1 1 α 1 1 β 1 1 or α k 1 α k 1 1 α 2 1 β 1 1 ), d ( α k 1 , α 2 k 1 ) = k (along the main path), and d ( α k 1 , β 2 k 1 ) = k (like α k 1 β k + 1 1 β k + 2 1 β 2 k 1 ). So, d ( α k 1 , y ) k for all y V ( G ) . Therefore, the eccentricity of α k 1 is k and the eccentricity of other vertices is k or more. So, r a d i u s ( G ) = k and α k 1 is a central vertex of G, i.e., the center lies in P k 1 .
Again, if ( α i 1 , β i + 1 1 ) E and ( α i + 1 1 , β i 1 ) E , for all i = 1 , 2 , , 2 k 1 , then d ( α k + 1 1 , α 0 1 ) = k + 1 (along the main path), d ( α k + 1 1 , α 1 1 ) = k (along main path), d ( α k + 1 1 , x ) k + 1 (like x α 1 1 α 2 1 α k + 1 1 or x α 2 1 α 3 1 α k + 1 1 ), d ( α k + 1 1 , β 1 1 ) = k + 1 (as α k + 1 1 α k 1 α 1 1 β 1 1 ), d ( α k + 1 1 , α 2 k 1 ) = k 1 (along the main path), and d ( α k + 1 1 , β 2 k 1 ) = k + 1 (like α k + 1 1 β k + 1 1 β k + 2 1 β 2 k 1 ). So, d ( α k + 1 1 , y ) k + 1 for all y V ( G ) . Therefore, the eccentricity of α k + 1 1 is k + 1 and the eccentricity of other vertices is k + 1 or more. So, r a d i u s ( G ) = k + 1 and α k + 1 1 is a central vertex of G. Similarly, it can be shown that β k + 1 1 is a central vertex of G. Depending upon some edge connectivity, some other vertices at level k 1 , k, and k + 1 may be central vertices.
Therefore, r a d i u s ( G ) = k or r a d i u s ( G ) = k + 1 and the center of G lies in P = ( P k 1 1 P k 1 P k + 1 1 ) .   □
From the above result, we can conclude the following.
Corollary 2. 
If r a d i u s ( G ) = k and d i a m e t e r ( G ) = 2 k , then 2 × r a d i u s ( G ) d i a m e t e r ( G ) = 0 , else if r a d i u s ( G ) = k + 1 and d i a m e t e r ( G ) = 2 k , then 2 × r a d i u s ( G ) d i a m e t e r ( G ) = 2 .
Lemma 8. 
For a trapezoid graph G, if h 1 is odd, say h 1 = 2 k + 1 , and d i a m e t e r ( G ) = 2 k + 1 , k N , then r a d i u s ( G ) = k + 1 and the center lies in P = ( P k 1 P k + 1 1 ) .
Proof. 
For a trapezoid graph G, let us consider that h 1 = 2 k + 1 and d i a m e t e r ( G ) = 2 k + 1 , k N . Now, if a leaf node x Q 1 1 and only a main path exists, then ( x , α 1 1 ) E , ( x , α 2 1 ) E or both. In that case, d ( α k + 1 1 , α 0 1 ) = k + 1 (along the main path), d ( α k + 1 1 , α 1 1 ) = k (along the main path), d ( α k + 1 1 , x ) k + 1 (like x α 1 1 α 2 1 α k + 1 1 or x α 2 1 α 3 1 α k + 1 1 ), and d ( α k + 1 1 , α 2 k + 1 1 ) = k (along the main path). So, d ( α k + 1 1 , y ) k + 1 for all y V ( G ) . Therefore, the eccentricity of α k + 1 1 is k + 1 and the eccentricity of other vertices is k + 1 or more. So, r a d i u s ( G ) = k + 1 and α k + 1 1 is a central vertex of G. Similarly, it can be shown that α k 1 is a central vertex of G. Depending upon some edge connectivities, some other vertices at levels k and k + 1 may be central vertices. So, the center lies in P = ( P k 1 P k + 1 1 ) .
If a leaf node x Q 1 1 and both the main path ( α 0 1 α 1 1 α 2 k + 1 1 ) and the alternative path ( α 0 1 β 1 1 β 2 k + 1 1 ) exist, where β 1 1 < α 1 1 , then, by Lemma 3, ( x , β 1 1 ) E , and ( ( x , α 2 1 ) E or ( x , α 1 1 ) E or both). In that case, d ( α k + 1 1 , α 0 1 ) = k + 1 (along the main path), d ( α k + 1 1 , α 1 1 ) = k (along the main path), d ( α k + 1 1 , x ) k + 1 (like x α 1 1 α 2 1 α k + 1 1 or x α 2 1 α 3 1 α k + 1 1 ), d ( α k + 1 1 , β 1 1 ) k + 1 (as α k + 1 1 α k 1 α 1 1 β 1 1 or α k + 1 1 α k 1 α 2 1 β 1 1 ), d ( α k + 1 1 , α 2 k + 1 1 ) = k (along the main path), and d ( α k + 1 1 , β 2 k + 1 1 ) = k + 1 (like α k + 1 1 β k + 1 1 β k + 2 1 β 2 k + 1 1 ). So, d ( α k + 1 1 , y ) k + 1 for all y V ( G ) . Therefore, the eccentricity of α k + 1 1 is k + 1 and the eccentricity of other vertices is k + 1 or more. So, r a d i u s ( G ) = k + 1 and α k + 1 1 is a central vertex of G. Similarly, it can be shown that β k + 1 1 is a central vertex of G. Depending upon some edge connectivity, some other vertices at levels k and k + 1 may be central vertices. Therefore, r a d i u s ( G ) = k + 1 and the center of G lies in P = ( P k 1 P k + 1 1 ) .   □
From the above result, we see that r a d i u s ( G ) = k + 1 and d i a m e t e r ( G ) = 2 k + 1 . So, we can conclude the following.
Corollary 3. 
2 × r a d i u s ( G ) d i a m e t e r ( G ) = 1 .
This result is slightly better than the result of [38].
Lemma 9. 
For trapezoid graph G, if h 1 is odd, say h 1 = 2 k + 1 , and d i a m e t e r ( G ) = 2 k + 2 , k N , then r a d i u s ( G ) = k + 1 or r a d i u s ( G ) = k + 2 , and the center lies in P = ( P k 1 1 P k 1 P k + 1 1 ) .
Proof. 
For trapezoid graph G, let h 1 = 2 k + 1 and d i a m e t e r ( G ) = 2 k + 2 , k N . Now, there are two cases that may arise—case 1: β 1 1 does not exist at level 1 of T t ( 1 ) and case 2: both α 1 1 and β 1 1 exist at level 1 of T t ( 1 ) .   □
Case 1: 
In that case, if the distinct part of the alternative path ( α 0 1 α 1 1 α k 1 β k + 1 1 β k + 2 1 β 2 k + 1 1 ) starts from k t h or a higher level of T t ( 1 ) (see Figure 5b, here, α 0 1 α 1 1 α k 1 is the common part of both the alternative path and the main path), then d ( α k 1 , α 0 1 ) = k (along the main path), d ( α k 1 , α 1 1 ) = k 1 , d ( α k 1 , x ) = k + 1 (as x α 0 1 α 1 1 α k 1 ); d ( α k 1 , α 2 k + 1 1 ) = k + 1 (along the main path), and d ( α k 1 , β 2 k + 1 1 ) = k + 1 (along the alternative path). So, d ( α k 1 , y ) k + 1 , ∀ y V and M a x { d ( u , v ) : u V { α k 1 } , v V } k + 1 . Therefore, r a d i u s ( G ) = k + 1 and α k is a central vertex of the trapezoid graph G. Similarly, some other leaf nodes at k t h level of T t ( 1 ) may be central node of G. So, the center of G lies in P k 1 .
Again, let the distinct part of the alternative path ( α 0 1 α 1 1 β 2 1 β 3 1 β 2 k + 1 1 ) starting from the first level to the ( k 1 ) t h level of T t ( 1 ) (see Figure 5c, here, the alternative path and the main path may have a common part above the level k 1 ). Now, if ( α i 1 , β i + 1 1 ) E and ( β i 1 , α i + 1 1 ) E   i = 2 ,   3 , ,   2 k , then d ( α k 1 , α 0 1 ) = k ; d ( α k 1 , α 1 1 ) = k 1 ; d ( α k 1 , x ) = k + 1 ; d ( α k 1 , α 2 k + 1 1 ) = k + 1 and d ( α k 1 , β 2 k + 1 1 ) = k + 2 (as α k 1 β k 1 β k + 1 1 β 2 k + 1 1 ). So, d ( α k 1 , y ) k + 2 for all y V . Similarly, d ( β k 1 , y ) k + 2 , for all y V . Also, d ( α k + 1 1 , y ) k + 2 and d ( β k + 1 1 , y ) k + 2 , ∀  y V . So, α k 1 , α k + 1 1 , β k 1 , and β k + 1 1 are central vertices of G and r a d i u s ( G ) = k + 2 .
Again, if ( α k 1 1 , β k 1 ) E , ( β k 1 , α k 1 1 ) E , or both, then α k 1 1 , β k 1 1 , or both may be central vertices and r a d i u s ( G ) = k + 1 .
Now, if ( α i 1 , β i + 1 1 ) E , ( β i 1 , α i + 1 1 ) E , or both, for i = 2 ,   3 , ,   2 k , then d ( α k 1 , y ) k + 1   y V and d ( β k 1 , y ) k + 1 y V . So, r a d i u s ( G ) = k + 1 and α k 1 , β k 1 will be two central vertices. So, in case 1, r a d i u s ( G ) = k + 1 or r a d i u s ( G ) = k + 2 and the center lies in ( P = P k 1 1 P k 1 P k + 1 1 ).
Case 2: 
If both α 1 1 and β 1 1 exist (see Figure 5a, here, the alternative path and the main path are distinct, except the root), then ( x , α 1 1 ) E and ( x , β 1 1 ) E , ( x , α 2 1 ) E and ( β i 1 , α i + 1 1 ) E for i = 1 , 2 , , 2 k , ∀ x Q 1 1 .
Now, d ( β k + 1 1 , α 0 1 ) = k + 1 (along the alternative path); d ( β k + 1 1 , α 1 1 ) = k + 1 ; d ( β k + 1 1 , x ) = k + 1 (as x β 1 1 β 2 1 β k + 1 1 ); d ( β k + 1 1 , β 2 k + 1 1 ) = k and d ( β k + 1 1 , α 2 k + 1 1 ) = k + 1 (as β k + 1 1 α k + 1 1 α k + 2 1 α 2 k + 1 1 ). So, d ( β k + 1 1 , y ) k + 1 , y V and M a x { d ( u , v ) : u V { β k + 1 1 } , v V } k + 1 . Therefore, r a d i u s ( G ) = k + 1 and β k + 1 1 is a central vertex of the trapezoid graph G. Similarly, we can show that some other vertices of P k + 1 1 or P k 1 may be central vertices. So, the center lies in ( P k 1 P k + 1 1 ).
Hence, r a d i u s ( G ) = k + 1 or r a d i u s ( G ) = k + 2 , and c e n t e r ( G ) lies in P = ( P k 1 1 P k 1 P k + 1 1 ) .
From the above result, we can conclude the following.
Corollary 4. 
If r a d i u s ( G ) = k + 1 and d i a m e t e r ( G ) = 2 k + 2 , then 2 × r a d i u s ( G ) d i a m e t e r ( G ) = 0 , else if r a d i u s ( G ) = k + 2 and d i a m e t e r ( G ) = 2 k + 2 , then 2 × r a d i u s ( G ) d i a m e t e r ( G ) = 2 .
From the Corollaries 1–4, we can conclude the following.
Corollary 5. 
For any trapezoid graph G, 2 × r a d i u s ( G ) d i a m e t e r ( G ) = k , k = 0 ,   1 ,   2 .
From the previous three results, we have reached the following statement.
Corollary 6. 
r a d i u s ( G ) = m i n { e c c e n t r i c i t y ( x ) : x P } .
Proof. 
It is straightforward as c e n t e r ( G ) P .   □
Note 3. 
The results of Lemmas 6–9 are also true for the BFS trees T t ( n ) , T t ( a ) , and T t ( b ) .

4. Computation of Central Vertices and Radius

Here, we find out the r a d i u s ( G ) and central vertices of the trapezoid graph G. To achieve this, we compute the set P, where
P = P k 1 1 P k 1 P k + 1 1 , if one of   h 1 , h n , h a ,   and   h b   is   even ,   say   h 1 = 2 k ; d i a m e t e r ( G ) = 2 k + 1 , P k 1 1 P k 1 P k + 1 1 , if one of   h 1 , h n , h a ,   and h b   is   even , say   h 1 = 2 k ; d i a m e t e r ( G ) = 2 k , P k 1 P k + 1 1 , if if one of   h 1 , h n , h a ,   and h b   is   odd ,   say , h 1 = 2 k + 1 and d i a m e t e r ( G ) = 2 k + 1 , P k 1 1 P k 1 P k + 1 1 , if if one of h 1 , h n , h a ,   and   h b   is odd ,   say , h 1 = 2 k + 1 and d i a m e t e r ( G ) = 2 k + 2 ,
and the vertices of P are arranged in order (descending or ascending).
Let P = { x 1 , x 2 , , x k 1 , x k } , 1 k n . Now, we find a set A where the member of A is the common adjacent trapezoid of t 1 and t a except the trapezoid(s) corresponding to the internal nodes at level 1 of T t ( 1 ) and T t ( a ) . Then, we find
  • q x = m i n { q i : where q i is the top-right vertex of the trapezoid belonging to the set A } and
  • s y = min { s i : where s i is the bottom-right vertex of the trapezoid belonging to the set A } .
Again, we find another set B whose members are the common adjacent trapezoid of t n and t b except the trapezoid(s) corresponding to the internal nodes at level 1 of T t ( n ) and T t ( b ) . Then, we find
  • p z = max{ p i : where p i is the top-left vertex of the trapezoid belongs to the set B} and
  • r t = max{ r i : where r i is the bottom-left vertex of the trapezoid belongs to the set B}.
Let us consider S = { x , y , z , t } V , corresponding to q x , s y , p z , r t . Obviously, some or all among { 1 , a , x , y , n , b , z , t } will be the farthest vertices from the members of P. Now, If S is a non-empty set, then we construct the BFS trees T t ( z ) , T t ( y ) , T t ( x ) , and T t ( t ) with z , y , x , and t as roots. Now, we find the distance of the vertices of P from 1 , a , x , y , if they exist, in Table 1 and from n , b , z , t , if they exist, in Table 2 with the help of T t ( 1 ) , T t ( a ) , T t ( n ) , T t ( b ) , T t ( x ) , T t ( y ) , T t ( z ) , and T t ( t ) .
In Table 3, we compare the corresponding values of L m a x (in Table 1) and R m a x (in Table 2) and find m a x { L m a x , R m a x } .
So, e i = e c c e n t r i c i t y ( x i ) as e i is the longest shortest distance of x i from the farthest vertices of G. Now, we find e m i n = min{ e i : i = 1 ,   2 , , k   } . After then, we find the member of P, say x j , 1 j k , corresponding to e m i n , in Table 3. As  c e n t e r ( G ) P , therefore, the smallest value of the eccentricity of the vertices of P must be equal to r a d i u s ( G ) , that is r a d i u s ( G ) = e m i n , by Corollary 1. Now, we find the e i s at the fourth column of Table 3, which are equal to e m i n and the x i s corresponding to the e i s are the central vertices G.

4.1. Algorithm and Its Complexity

Here, we propose an algorithm to determine the d i a m e t e r ( G ) , r a d i u s ( G ) , and central node(s) of trapezoid graphs based on the results presented in Section 3 and Section 4.
Using Algorithm 1, we obtain d i a m e t e r ( G ) = 5 , r a d i u s ( G ) = 3 , and c e n t e r ( G ) = { 4 , 8 , 9 , 10 , 11 } for the trapezoid graph of Figure 2.
Algorithm 1: Algorithm DIA-RAD-CEN-TRA.
Input: Trapezoid representation p i , q i , r i , s i of a trapezoid graph G,
for i = 1 : 1 : n .
Output: d i a m e t e r ( G ) , r a d i u s ( G ) , and central vertices of G.
Step 1: Make 4 BFS trees T t ( 1 ) , T t ( n ) , T t ( a ) , and T t ( b ) .
Step 2: Obtain the heights h 1 , h n , h a , and h b of T t ( 1 ) , T t ( n ) , T t ( a ) ,
and T t ( b ) , respectively.
Step 3: Mark the main paths and alternative-paths of T t ( 1 ) , T t ( n ) ,
T t ( a ) , and T t ( b ) .
Step 4: Find the sets P i 1 , P i a , P i n , P i b for i = 1 , 2 , , m a x { h 1 , h a , h n , h b } .
Step 5: If h 1 = h n = h a = h b = h ( s a y ) and there exist at least two
nodes x , y such that x ( Q 1 1 Q 1 a ) , y ( Q 1 n Q 1 b ) and
( x , z ) E , for all z P 2 1 P 2 a { α 1 1 , β 1 1 , α 1 a , β 1 a } and ( y , t ) E ,
for all t P 2 n P 2 b { α 1 n , β 1 n , α 1 b , β 1 b } , then d i a m e t e r ( G ) = h + 1 (by Lemma 4)
Else  d i a m e t e r ( G ) = m a x { h 1 , h n , h a , h b } (Lemma 4).
End if
Step 6: If one of h 1 , h n , h a , and h b is even, say h 1 = 2 k and
d i a m e t e r ( G ) = 2 k + 1 , then r a d i u s ( G ) = k + 1 and
set P = P k 1 1 P k 1 P k + 1 1 (Lemma 6).
Else if one of h 1 , h n , h a , and h b is even, say h 1 = 2 k and
d i a m e t e r ( G ) = 2 k , then r a d i u s ( G ) = k or r a d i u s ( G ) = k + 1 and
set P = P k 1 1 P k 1 P k + 1 1 (Lemma 7).
Else if one of h 1 , h n , h a , and h b are odd, say h 1 = 2 k + 1 and d i a m e t e r ( G ) = 2 k + 1 ,
then r a d i u s ( G ) = k + 1 and set P = P k 1 P k + 1 1 (Lemma 8).
Else if one of h 1 , h n , h a , and h b are odd, say h 1 = 2 k + 1 and d i a m e t e r ( G ) = 2 k + 2 ,
then r a d i u s ( G ) = k + 1 or r a d i u s ( G ) = k + 2 and set P = P k 1 1 P k 1 P k + 1 1
(by Lemma 9).
Step 7: Arrange the vertices of P in ascending order,
say P = { x 1 , x 2 , , x k 1 , x k } .
Step 8:
Step 8.1: Find set A where the members of A are the common adjacent trapezoid
of t 1 and t a except the trapezoid(s) corresponding to the internal nodes
at level 1 of T t ( 1 ) and T t ( a ) .
Step 8.2: Find q x = min{ q i : where q i is the top-right vertex of the trapezoid
belonging to the set A}.
Step 8.3: Find s y = min{ s i : where s i is the bottom-right vertex of the trapezoid
belonging to the set A}.
Step 8.4: Find another set B where the members of B are the common adjacent trapezoid of
t n and t b except the trapezoid(s) corresponding to the internal nodes at level 1 of
T t ( n ) and T t ( b ) .
Step 8.5: Find p z = max{ p i : where p i is the top-left vertex of the trapezoid belonging to the
set B}.
Step 8.6: Find r t = max{ r i : where r i is the bottom-left vertex of the trapezoid belonging to
the set B}.
Step 9: Compute the set S = { x , y , z , t } corresponding to q x , s y , p z , r t .
Step 10: If S is a non-empty set, then we construct the BFS trees T t ( z ) , T t ( y ) , T t ( x ) , and T t ( t )
with z , y , x , and t, if they exist, as roots, respectively.
Else go to Step 11
End if
Step 11: Compute the distance of the vertices of P from S 1 = { 1 , a , x , y } (if they exist) and
S 2 = { n , b , z , t } (if they exist), using the Table 1 and Table 2, respectively.
Also, find L m a x and R m a x using Table 1 and Table 2, respectively.
Step 12: Compare the entries in the columns L m a x (in Table 1) and R m a x (in Table 2), and
find the maximum value for each row using Table 3.
Step 13: Find e m i n where e m i n = min{ e i : i = 1 , 2 , , k } and find c e n t e r ( G ) = { x i : x i ( P )
corresponding to e i s (in Table 3), where e i = e m i n } .
Step 14: Set r a d i u s ( G ) = e m i n .
End if
End DIA-RAD-CEN-TRA.

4.2. Explanatory Example

To explain the total compilation process of Algorithm 1, we consider the T-diagram (displayed in Figure 1) of the trapezoid graph of Figure 2. Here, a = 2 , n = 15 , and b = 13 . At first (in Step 1), we make four BFS trees T t ( 1 ) , T t ( 15 ) , T t ( 2 ) , and T t ( 13 ) (shown in Figure 3 and Figure 6). In Step 2, we find the height of h 1 , h n = h 15 , h a = h 2 , and h b = h 13 of T t ( 1 ) , T t ( 15 ) , T t ( 2 ) , and T t ( 13 ) , respectively. Here, h 1 = h 15 = h 2 = h 13 = 5 . As there are no node points x , y such that x ( Q 1 1 Q 1 2 ) , y ( Q 1 15 Q 1 3 1 ) and x is only adjacent with 1, 2, or both and y is only adjacent with 15, 13, or both, therefore, d i a m e t e r ( G ) = 5 (in Step 5). As h 1 = h 15 = h 2 = h 13 = 5 = 2 × 2 + 1 (odd and, here, k = 2 ) and r a d i u s ( G ) = 5 , so r a d i u s ( G ) = 3 and P = P k 1 P k + 1 1 = P 2 1 P 3 1 = { 8 , 6 , 4 , 9 , 10 , 11 } (in Step 6). In Step 7, we arrange the vertices of P in ascending order, so P = { 4 , 6 , 8 , 9 , 10 , 11 } . In Step 8.1, we are to find the set A where the members of A are the common vertices of T t ( 1 ) and T t ( 2 ) at level 1 except the internal nodes. Hence, A = and q x and s y (in Step 8.2 and Step 8.3) do not exist. In Step 8.4, we are to find the set B whose members are the common vertices of T t ( 15 ) and T t ( 13 ) at level 1 except the internal nodes, i.e., B = . Hence, p z and r t (in Step 8.5 and Step 8.6) do not exist. Therefore, S = and we go to Step 11. In Step 11, we compute the distance of the vertices of P = { 4 , 6 , 8 , 9 , 10 , 11 } from S 1 = { 1 , 2 } in Table 4 (with the help of T t ( 1 ) , T t ( 2 ) ) and S 2 = { 15 , 13 } in Table 5 (with the help of T t ( 15 ) , T t ( 13 ) ) as follows.
Now, we compare the entries in the columns L m a x (in Table 4) and R m a x (in Table 5), and find the maximum value for each row using the following table at Step 12.
At Step 13, we use the Table 6 to find e m i n = m i n { 3 , 4 , 3 , 3 , 3 , 3 } = 3 and c e n t e r ( G ) = { x i : x i ( P ) corresponding to e i s (in Table 6), where e i = e m i n } = { 4 , 8 , 9 , 10 , 11 } . In the last step, we set r a d i u s ( G ) = 3 . Therefore, the main output of our proposed algorithm is d i a m e t e r ( G ) = 5 , r a d i u s ( G ) = 3 , and c e n t e r ( G ) = { 4 , 8 , 9 , 10 , 11 } .
Theorem 1. 
The d i a m e t e r ( G ) , r a d i u s ( G ) and center of the trapezoid graph G can be determined within O ( n ) time, where n represents the cardinality of V ( G ) .
Proof. 
In Step 1, the BFS trees T t ( 1 ) , T t ( a ) , T t ( n ) , and T t ( b ) can be made within O ( 4 n ) O ( n ) time. The heights h 1 , h a , h b , and h n in the Step 2 can be found in constant time. At Step 3, main paths and alternative paths of T t ( 1 ) , T t ( n ) , T t ( a ) , and T t ( b ) can be identified in O ( n ) time. Step 4 needs O ( n ) time to compute the sets P i 1 , P i a , P i n , P i b for i = 1 ,   2 , , m a x { h 1 , h a , h n , h b } . In Step 5, d i a m e t e r ( G ) can be determined in O ( n ) time. We can compute the set P, at Step 6, within O ( n ) time. Also, we can arrange the members of P in ascending order, at Step 7, in just O ( n ) time. The determination process of the sets A and B and corner points q x , s y , p z , and r t just take O ( n ) time, in Step 8. Also, Step 9 takes constant time. In Step 10, BFS trees T t ( z ) , T t ( y ) , T t ( x ) , and T t ( t ) can be made within 4 O ( n ) , which is equivalent to O ( n ) time. At Step 11, we can find the distance of the vertices of P from S 1 = { 1 , a , x , y } within O ( 4 n ) O ( n ) time and, also, the distance of the vertices of P from S 2 = { n , b , z , t } in O ( 4 n ) O ( n ) time. Further, at Step 12, we can evaluate e i s in constant time. Again, at Step 13, anyone can determine e m i n within O ( n ) time and c e n t e r ( G ) in O ( n ) time. The execution time of Step 14 is constant. Hence, the overall run time of the Algorithm 1 is O ( n ) . □

5. Real Application

Here, we present a real application of the center of trapezoid graphs. We consider a real center location problem and present its algorithmic solution with the help of our studied results.
Step-by-step representation of center location problem using a trapezoid graph and its algorithmic solution
Step 1: Proposed problem set up
Consider a center location problem where we have a finite set of blocks (subdivisions of a district), B = B 1   , B 2 , ,   B n , in a district. We aim to find a central location to establish a private hospital that serves all the people in the district and minimizes the maximum distance from the hospital to any block. To achieve this, we first identify a well-connected location (near a national highway (NH) or state highway (SH)) within each block for a potential hospital site, ensuring that no two sites have the same latitude and longitude. Let these locations be P 1   , P 2 , ,   P n , where P i B i for i = 1 ,   2 , ,   n . Let l i and L i represent the latitude and longitude of the candidate hospital at P i . We assume each hospital will provide free ambulance services within a certain distance (say 20 km) radius, which we consider the hospital’s range. Our main objective is to find a “center” location that minimizes the farthest distance from it to any point P i for i = 1 ,   2 , ,   n .
Step 2: Represent each location for candidate hospital as an interval on two parallel lines
Draw two parallel horizontal lines, Line 1 and Line 2. Two horizontal parallel lines represent the range of each hospital’s free ambulance service. For each point P i , define an interval [ p i , q i ] taking L i as center and place it on Line 1 and another interval [ r i , s i ] taking L i as the center and place it on Line 2, where, [ p i , q i ] represents the length of the national or state highway, which is the maximum, in block B i ; [ r i , s i ] represents the average distance of local roads from P i to all the areas in block B i .
Step 3: Construct trapezoids based on intervals
For each point P i , construct a trapezoid by connecting the endpoints of its intervals on Line 1 and Line 2. Each trapezoid represents the potential area of influence for a candidate hospital. For instance, for point P 1 , connect point p 1 on Line 1 to point r 1 on Line 2, and connect q 1 on Line 1 to s 1 on Line 2 to form a trapezoid.
Step 4: Create a trapezoid graph
Vertices: Each trapezoid represents a vertex/node in the trapezoid graph.
Edges: Draw an edge between two nodes if their corresponding trapezoids intersect (overlap). This indicates that there is a potential overlap in the service area between the corresponding locations. For example, suppose the service area of P 1 covers the whole area of block B 1 and partial areas of blocks B 2 and B 3 and that of P 2 covers the whole area of block B 2 and partial areas of blocks B 1 and B 3 . So, there is service overlapping between these hospitals. So, there will be an edge between the vertices representing these trapezoids corresponding to the locations P 1 and P 2 .
To illustrate the above steps graphically, we consider a district that has four blocks B 1 , B 2 , B 3 , and B 4 , and its five parameters of candidate hospitals are given in Table 7. The graphical representation of our proposed problem is displayed in Figure 7 and Figure 8.
Step 5: Identification of the center location in the trapezoid graph
The center location problem is now represented as finding a node in the trapezoid graph that minimizes the greatest graph distance to all other nodes. This node represents the optimal location for the facility.
Now, if we compile our designed Algorithm DIA-RAD-CEN-TRA for the trapezoid graph corresponding to the proposed problem, then we will obtain the central vertices in O ( n ) time. Any member of the center of the trapezoid graph is suitable for setting up a private hospital that minimizes the farthest distance from it to other vertices.

6. Conclusions

The center location problem is a crucial problem in graph theory. In this paper, we explore some characteristics of the BFS tree of trapezoid graphs. We also study new properties that relate to the radius, the diameter, and the center of trapezoid graphs. For the trapezoid graph G, we prove that the difference between the d i a m e t e r ( G ) and the height of the BFS trees T t ( 1 ) , T t ( n ) , T t ( a ) , and T t ( b ) is at most one. We also establish a relationship ( 2 × r a d i u s ( G ) d i a m e t e r ( G ) = k ,   k = 0 ,   1 ,   2 ) between r a d i u s ( G ) and d i a m e t e r ( G ) of trapezoid graphs. This result is slightly better than the result of [38] for k = 0 ,   1 . We also prove that, to find the radius, the diameter, and the center of trapezoid graphs it is not necessary to find the eccentricity of all vertices. We also design an O ( n ) time algorithm to find the radius, the diameter, and the center of trapezoid graphs. We also calculate the time complexity of our proposed algorithm. Besides these, we consider a center location problem for identifying a center location in a district to construct a private hospital that minimizes the farthest distance from the hospital to other places in the district. We present an algorithmic solution of the proposed problem with the help of a trapezoid graph model and using BFS graph traversal technique within O ( n ) time. In the future, we have a plan to solve different center location problems using other graph models.

Author Contributions

S.N. and S.C.B. conceived of the presented idea. S.N. and S.M. developed the theory and performed the computations. S.S. and L.M. verified the studied results and methodology. A.K. encouraged S.N. to investigate the real applications of the studied results and supervised the findings of this work. S.N. and S.C.B. wrote the manuscript in consultation with S.S., L.M. and A.K. All authors have read and agreed to the published version of the manuscript.

Funding

This paper was supported by the Project: 101140217, Artificial Intelligence in Medical Care: Reducing Errors and Saving Lives (AI2MED), ERASMUS-EDU-2023-PI-ALL-INNO-EDU-ENTERP.

Data Availability Statement

In this study, we have conducted theoretical research work. No empirical data were used or generated in this study.

Acknowledgments

We would like to express our deep and sincere gratitude to our colleagues and friends for encouraging us to complete this research work and giving continuous support throughout this research.

Conflicts of Interest

The authors declare no competing interests.

Abbreviations

T t ( z ) BFS tree whose root is z.
h z T t ( z ) ’s height.
L ( u ) Level of the node u on BFS tree.
p n o d e ( u ) The parent node of u.
α i z Node located on the main path of T t ( z ) at ith level.
β i z Node situated on the alternative path of T t ( z ) at level i.
P i z The node set of V ( T t ( z ) ) situated at level i.
Q i z Q i z = P i z { α i z , β i z } .
d ( y 1 ,   y 2 ) The shortest distance between two nodes y 1 and y 2 .
e c c e n t r i c i t y ( c ) Eccentricity of c V .
d i a m e t e r ( G ) The diameter of G.
r a d i u s ( G ) The radius of G.
c e n t e r ( G ) Center of G.
N [ y ] The set of nodes adjacent to y, and y itself.
aIndex of the trapezoid with the minimum bottom-left corner point position.
bIndex of the trapezoid with the minimum bottom-right corner point position.
d x , i The distance between the vertices x and x i .
e i The eccentricity of the node x i .

References

  1. Dagan, I.; Golumbic, M.C.; Pinter, R.Y. Trapezoid graphs and their coloring. Discret. Appl. Math. 1988, 21, 35–46. [Google Scholar] [CrossRef]
  2. Ma, T.; Spinrad, J.P. An O(n2) algorithm for 2-chain problem on certain classes of perfect graphs. In Proceedings of the 2nd ACM-SIAM Symposium on Discrete Algorithms, San Francisco, CA, USA, 28–30 January 1991. [Google Scholar]
  3. Corneil, D.G.; Kamula, P.A. Extension of permutation and interval graphs. Congr. Numer. 1987, 58, 267–276. [Google Scholar]
  4. Golumbic, M.C. Algorithmic Graph Theory and Perfect Graphs; Elsevier B.V.: Amsterdam, The Netherlands, 2004; Volume 57. [Google Scholar]
  5. Liang, Y.D. Domination in trapezoid graphs. Inf. Process. Lett. 1994, 52, 309–315. [Google Scholar] [CrossRef]
  6. Pramanik, T.; Mondal, S.; Pal, M. The Diameter of an Interval Graph is Twice of its Radius. World Acad. Sci. Technol. Int. J. Math. Comput. Phys. Electr. Comput. Eng. 2011, 5, 1412–1417. [Google Scholar]
  7. Abbound, A.; Grandoni, F.; Williams, V.V. Subcubic Equivalences Between Graph Centrality Problems, APSP and diameter. In Proceedings of the 26th Annual ACM-SIAM Symposium on Discrete Algorithms, San Diego, CA, USA, 4–6 January 2015; pp. 1681–1697. [Google Scholar]
  8. Stummer, C.; Doerner, K.; Focke, A.; Heidenberger, K. Determining location and size of medical departments in a hospital network: A multiobjective decision support approach. Health Care Manag. Sci. 2004, 7, 63–71. [Google Scholar] [CrossRef]
  9. Wu, C.R.; Lin, C.T.; Chen, H.C. Optimal selection of location for Taiwanese hospitals to ensure a competitive advantage by using the analytic hierarchy process and sensitivity analysis. Build. Environ. 2007, 42, 1431–1444. [Google Scholar] [CrossRef]
  10. Syam, S.S. A multiple server location-allocation model for service system design. Comput. Oper. Res. 2008, 5, 2248–2265. [Google Scholar] [CrossRef]
  11. Vahidnia, M.H.; Alesheikh, A.A.; Alimohammadi, A. Hospital site selection using fuzzy AHP and its derivatives. J. Environ. Manag. 2009, 90, 3048–3056. [Google Scholar] [CrossRef] [PubMed]
  12. Shariff, S.S.R.; Moin, N.H.; Omar, M. Location allocation modeling for healthcare facility planning in Malaysia. Comput. Ind. Eng. 2012, 62, 1000–1010. [Google Scholar] [CrossRef]
  13. Kim, D.G.; Kim, Y.D. A Lagrangian heuristic algorithm for a public healthcare facility location problem. Ann. Oper. Res. 2013, 206, 221–240. [Google Scholar] [CrossRef]
  14. Shariff, S.S.R.; Moin, N.H.; Omar, M. Planning of public healthcare facility using a location allocation modelling: A case study. In Proceedings of the Statistics and Operational Research International Conference (SORIC 2013), Sarawak, Malaysia, 3–5 December 2013; AIP Publishing LLC: Melville, NY, USA, 2014; Volume 296, pp. 282–296. [Google Scholar] [CrossRef]
  15. Beheshtifar, S.; Alimoahmmadi, A. A multiobjective optimization approach for location-allocation of clinics. Int. Trans. Oper. Res. 2015, 22, 313–328. [Google Scholar] [CrossRef]
  16. Elkady, S.K.; Abdelsalam, H.M. A simulation-based optimization approach for healthcare facility location allocation decision. In Proceedings of the Science and Information Conference 2015, London, UK, 28–30 July 2015; pp. 500–505. [Google Scholar]
  17. Maric, M.; Stanimirovic, Z.; Bozovic, S. Hybrid metaheuristic method for determining locations for long-term health care facilities. Ann. Oper. Res. 2015, 227, 3–23. [Google Scholar] [CrossRef]
  18. Elkady, S.K.; Abdelsalam, H.M. A modified multi-objective particle swarm optimisation algorithm for healthcare facility planning. Int. J. Bus. Syst. Res. 2016, 10, 1–22. [Google Scholar] [CrossRef]
  19. Ouyang, R.; Faiz, T.I.; Noor-E-Alam, M. An ILP model for healthcare facility location problem with long term demand. In Proceedings of the 2016 International Conference on Industrial Engineering and Operations Management, Kuala Lumpur, Malaysia, 8–10 March 2016; IEOM Society International: Detroit, MI, USA, 2014; pp. 840–847. [Google Scholar]
  20. Ye, H.; Kim, H. Locating healthcare facilities using a network-based covering location problem. GeoJournal 2016, 81, 875–890. [Google Scholar] [CrossRef]
  21. Zhang, W.; Cao, K.; Liu, S.; Huang, B. A multi-objective optimization approach for health-care facility location-allocation problems in highly developed cities such as Hong Kong. Comput. Environ. Urban Syst. 2016, 59, 220–230. [Google Scholar] [CrossRef]
  22. Behzad, M.; Chartrand, G. Introduction to the Theory of Graphs; Allyn and Bacon: Boston, MA, USA, 1971. [Google Scholar]
  23. Cheopoi, V. Centers of Triangulated Graphs. Mat. Zametki 1988, 43, 143–151. [Google Scholar] [CrossRef]
  24. Takes, F.W.; Kosters, W.A. Determining the Diameter of Small World Networks. In proceedings of the In Proceedings of the 20th ACM Conference on Information and Knoledge Management (CIKM 2011), Glasgow, UK, 24–28 October 2011; pp. 1191–1196. [Google Scholar] [CrossRef]
  25. Farley, A.; Proskurowski, A. Computation of the Center and Diameter of Outerplanar Graphs. Discret. Appl. Math. 1980, 2, 185–191. [Google Scholar] [CrossRef]
  26. Goldman, A.J. Minimax Location of a Facility in a Network. Transp. Sci. 1972, 6, 407–418. [Google Scholar] [CrossRef]
  27. Pal, M.; Bhattacharjee, G.P. Optimal Sequential and Parallel Algorithms for Computing the Diameter and the Center of Interval Graph. Int. J. Comput. Math. 1995, 59, 1–13. [Google Scholar] [CrossRef]
  28. Chepoi, V.D.; Dragan, F. A Linear-time Algorithm for Finding a Central Vertex of a Chordal Graph. Lect. Notes Comput. Sci. 1994, 855, 159–170. [Google Scholar] [CrossRef]
  29. Lan, Y.F.; Wanga, Y.L.; Suzuki, H. A Linear-time Algorithm for Solving the Center Problem on Weighted Cactus Graphs. Inf. Process. Lett. 1999, 71, 205–212. [Google Scholar] [CrossRef]
  30. Olariu, S. A Simple Linear Time Algorithm for Computing the Center of an Interval Graph. Int. J. Comput. Math. 1990, 34, 121–128. [Google Scholar] [CrossRef]
  31. Olariu, S.; Schwing, J.L.; Zhang, J. Optimal Parallel Algorithms for Problems Modelled by a Family of Intervals. IEEE Trans. Parallels Distrib. Syst. 1992, 3, 364–374. [Google Scholar] [CrossRef]
  32. Saha, A. Computation of Average Distance, Radius and Center of a Circular-Arc Graph in Parallel. J. Phys. Sci. 2006, 10, 178–187. [Google Scholar]
  33. Borassi, M.; Cresccnzi, P.; Habib, M.; Kosters, W.A.; Marino, A.; Takes, F.W. Fast Diameter and Radius BFS- based Computation in(weakly connected) Real-World Graphs: With an application to the six degrees of separation games. Theory Comput. Sci. 2015, 586, 59–80. [Google Scholar] [CrossRef]
  34. Abbound, A.; Wang, J.; Williams, V.V. Approximation and Fixed Parameter Sub Quadratic Algorithms for Radius and Diameter in Sparse Graphs. In Proceedings of the 27th Annual ACM-SIAM Symposium on Discrete Algorithms, Arlington, VA, USA, 10–12 January 2016; pp. 377–391. [Google Scholar]
  35. Laskar, R.; Shier, D. On powers and centers of chordal graphs. Discret. Appl. Math. 1983, 6, 139–147. [Google Scholar] [CrossRef]
  36. Mahesh, C.P. Distance in Graph Theory and its Application. Int. J. Adv. Eng. Technol. 2011, 3, 147–150. [Google Scholar]
  37. Nandi, S.; Mondal, S.; Barman, S.C. Computation of diameter, radius and center of permutation graphs. Discret. Math. Algorithms Appl. 2021, 14, 2250039. [Google Scholar] [CrossRef]
  38. Prisner, E. Radius versus diameter in cocomparability and intersection graphs. Discret. Math. 1997, 163, 109–117. [Google Scholar] [CrossRef]
  39. Tarjan, R.E. Depth-First Search and Linear Graph Algorithms. SIAM J. Comput. 1972, 1, 146–160. [Google Scholar] [CrossRef]
  40. Chen, C.C.Y.; Das, S.K. Breadth-First Traversal of Trees and Integer Sorting in Parallel. Inf. Process. Lett. 1992, 41, 39–49. [Google Scholar] [CrossRef]
  41. Olariu, S. An Optimal Greedy Heuristic to Color Interval Graphs. Inf. Process. Lett. 1991, 37, 21–25. [Google Scholar] [CrossRef]
  42. Barman, S.; Mondal, S.; Pal, M. An Efficient Algorithm to find Next-to-Shortest Path on Permutation Graphs. J. Appl. Math. Comput. 2009, 31, 369–384. [Google Scholar] [CrossRef]
  43. Mondal, S.; Pal, M.; Pal, T.K. An optimal algorithm for solving all-pairs shortest paths on trapezoid graphs. Int. J. Comput. Eng. Sci. 2002, 3, 103–116. [Google Scholar] [CrossRef]
  44. Barman, S.; Mondal, S.; Pal, M. A Linear Time Algorithm to Construct a Tree 4-Spanner on Trapezoid Graphs. Int. J. Comput. Math. 2010, 87, 743–755. [Google Scholar] [CrossRef]
Figure 1. T-Diagram of the trapezoid graph shown in Figure 2.
Figure 1. T-Diagram of the trapezoid graph shown in Figure 2.
Mathematics 13 00885 g001
Figure 2. A trapezoid graph G.
Figure 2. A trapezoid graph G.
Mathematics 13 00885 g002
Figure 3. BFS trees T t ( 1 ) and T t ( 15 ) of the graph of Figure 2.
Figure 3. BFS trees T t ( 1 ) and T t ( 15 ) of the graph of Figure 2.
Mathematics 13 00885 g003
Figure 4. A part of a trapezoid diagram.
Figure 4. A part of a trapezoid diagram.
Mathematics 13 00885 g004
Figure 5. Parts of BFS trees.
Figure 5. Parts of BFS trees.
Mathematics 13 00885 g005
Figure 6. BFS trees T t ( 2 ) and T t ( 13 ) of G shown in Figure 2.
Figure 6. BFS trees T t ( 2 ) and T t ( 13 ) of G shown in Figure 2.
Mathematics 13 00885 g006
Figure 7. Trapezoidal representation of proposed problem.
Figure 7. Trapezoidal representation of proposed problem.
Mathematics 13 00885 g007
Figure 8. Trapezoid graph of proposed problem.
Figure 8. Trapezoid graph of proposed problem.
Mathematics 13 00885 g008
Table 1. Distance of the vertices of P from 1 , a , x , y .
Table 1. Distance of the vertices of P from 1 , a , x , y .
x i d 1 , i = d ( 1 , x i ) d a , i = d ( a , x i ) d x , i = d ( x , x i ) d y , i = d ( y , x i ) L m a x = m a x { d 1 , i , d a , i , d x , i , d y , i }
x 1 d 1 , 1 = d ( 1 , x 1 ) d a , 1 = d ( a , x 1 ) d x , 1 = d ( x , x 1 ) d y , 1 = d ( y , x 1 ) d l , 1 (say)
x 2 d 1 , 2 = d ( 1 , x 2 ) d a , 2 = d ( a , x 2 ) d x , 2 = d ( x , x 2 ) d y , 2 = d ( y , x 2 ) d l , 2 (say)
x k d 1 , k = d ( 1 , x k ) d a , k = d ( a , x k ) d x , k = d ( x , x k ) d y , k = d ( y , x k ) d l , k (say)
Table 2. Distance of the vertices of P from n , b , z , t .
Table 2. Distance of the vertices of P from n , b , z , t .
x i d n , i = d ( n , x i ) d b , i = d ( b , x i ) d z , i = d ( z , x i ) d t , i = d ( t , x i ) R m a x = m a x { d n , i , d b , i , d z , i , d t , i }
x 1 d n , 1 = d ( n , x 1 ) d b , 1 = d ( b , x 1 ) d z , 1 = d ( z , x 1 ) d t , 1 = d ( t , x 1 ) d r , 1 (say)
x 2 d n , 2 = d ( n , x 2 ) d b , 2 = d ( b , x 2 ) d z , 2 = d ( z , x 2 ) d t , 2 = d ( t , x 2 ) d r , 2 (say)
x k d n , k = d ( n , x k ) d b , k = d ( b , x k ) d z , k = d ( z , x k ) d t , k = d ( t , x k ) d r , k (say)
Table 3. Comparison of L m a x and R m a x .
Table 3. Comparison of L m a x and R m a x .
x i L m a x R m a x m a x { L m a x , R m a x }
x 1 d l , 1 d r , 1 e 1 (say)
x 2 d l , 2 d r , 2 e 2 (say)
x k d l , k d r , k e k (say)
Table 4. Distance of the vertices of P from 1, 2.
Table 4. Distance of the vertices of P from 1, 2.
x i d ( 1 , x i ) d ( 2 , x i ) L m a x = m a x { d 1 , i , d 2 , i }
4 d 1 , 1 = 2 d 2 , 1 = 2 d l , 1 = 2
6 d 1 , 2 = 2 d 2 , 2 = 2 d l , 2 = 2
8 d 1 , 3 = 2 d 2 , 3 = 2 d l , 3 = 2
9 d 1 , 4 = 3 d 2 , 4 = 3 d l , 4 = 3
10 d 1 , 5 = 3 d 2 , 5 = 3 d l , 5 = 3
11 d 1 , 6 = 3 d 2 , 6 = 3 d l , 6 = 3
Table 5. Distance of the vertices of P from 15, 13.
Table 5. Distance of the vertices of P from 15, 13.
x i d ( 15 , x i ) d ( 13 , x i ) R m a x = m a x { d 15 , i , d 13 , i }
4 d 15 , 1 = 3 d 13 , 1 = 3 d r , 1 = 3
6 d 15 , 2 = 4 d 13 , 2 = 4 d r , 2 = 4
8 d 15 , 3 = 3 d 13 , 3 = 3 d r , 3 = 3
9 d 15 , 4 = 3 d 13 , 4 = 2 d r , 4 = 3
10 d 15 , 5 = 2 d 13 , 5 = 2 d r , 5 = 2
11 d 15 , 6 = 2 d 13 , 6 = 3 d r , 6 = 3
Table 6. Comparison table.
Table 6. Comparison table.
x i L m a x R m a x m a x = m a x { L m a x , R m a x }
423 e 1 = 3
624 e 2 = 4
823 e 3 = 3
933 e 4 = 3
1032 e 5 = 3
1133 e 6 = 3
Table 7. Parameters of our proposed problem.
Table 7. Parameters of our proposed problem.
Name of
Blocks
Hospital’s
Position
LatitudeLongitudeLength of
NH/SH
Average Local
Route Distance
Free Range
of Ambulance
B 1 P 1 l 1 L 1 d 1 a 1 K
B 2 P 2 l 2 L 2 d 2 a 2 K
B 3 P 3 l 3 L 3 d 3 a 3 K
B 4 P 4 l 4 L 4 d 4 a 4 K
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

Nandi, S.; Mondal, S.; Samanta, S.; Barman, S.C.; Mrsic, L.; Kalampakas, A. Center of Trapezoid Graph: Application in Selecting Center Location to Set up a Private Hospital. Mathematics 2025, 13, 885. https://doi.org/10.3390/math13050885

AMA Style

Nandi S, Mondal S, Samanta S, Barman SC, Mrsic L, Kalampakas A. Center of Trapezoid Graph: Application in Selecting Center Location to Set up a Private Hospital. Mathematics. 2025; 13(5):885. https://doi.org/10.3390/math13050885

Chicago/Turabian Style

Nandi, Shaoli, Sukumar Mondal, Sovan Samanta, Sambhu Charan Barman, Leo Mrsic, and Antonios Kalampakas. 2025. "Center of Trapezoid Graph: Application in Selecting Center Location to Set up a Private Hospital" Mathematics 13, no. 5: 885. https://doi.org/10.3390/math13050885

APA Style

Nandi, S., Mondal, S., Samanta, S., Barman, S. C., Mrsic, L., & Kalampakas, A. (2025). Center of Trapezoid Graph: Application in Selecting Center Location to Set up a Private Hospital. Mathematics, 13(5), 885. https://doi.org/10.3390/math13050885

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