Next Article in Journal
NHSH: Graph Hybrid Learning with Node Homophily and Spectral Heterophily for Node Classification
Previous Article in Journal
Gaussian Process-Based Robust Optimization with Symmetry Modeling and Variable Selection
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Connecting Cities: A Case Study on the Application of Morphological Shortest Paths

by
Jorge L. Perez-Ramos
1,†,
Selene Ramirez-Rosales
1,†,
Daniel Canton-Enriquez
1,†,
Luis A. Diaz Jimenez
1,†,
Herlindo Hernandez-Ramirez
2,†,
Ana M. Herrera-Navarro
1,† and
Hugo Jimenez-Hernandez
1,*,†
1
Faculty Informática, Universidad Autónoma de Querétaro, Av. de las Ciencias S/N, Juriquilla, Santiago de Querétaro 76230, Mexico
2
Centro de Ingeniería y Desarrollo Industrial (CIDESI), Av. Pie de la Cuesta No. 702, Desarrollo San Pablo, Santiago de Querétaro 76125, Mexico
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Symmetry 2025, 17(1), 114; https://doi.org/10.3390/sym17010114
Submission received: 10 December 2024 / Revised: 9 January 2025 / Accepted: 10 January 2025 / Published: 13 January 2025

Abstract

:
Navigatingdensely connected networks can be complex due to the different connection structures present within a network. No explicit algorithms are designed specifically for this navigation, so heuristic approaches and existing network systems are often employed. However, this task can become computationally asymmetrical, as the complexity of creating a representation of the city is lower than the complexity involved in identifying a set of feasible paths in a combinatorial order. This paper extends the applicability of morphological approaches to compute the shortest path in smart cities, driven by the complexity and size of the vital communication infrastructure. As is well known, this communication infrastructure changes dynamically, particularly with the evolving connection paths due to continuous population growth. Consequently, efficient communication trajectories can quickly become obsolete. The challenge of computing the best trajectories to respond more quickly to the growing population comes with high computational complexity. This paper presents an application that uses a discrete algorithm designed to compute the shortest path through a morphological approach. Specifically, it seeks to identify the best trajectory within a densely populated city based on a complex density graph. By incorporating morphological approaches into path-search algorithms, we can define a new family of methods that operate in discrete spaces with a morphological representation, resulting in approaches that have lower computational requirements. Other well-known applications in this context include the delivery of resources, such as managing electrical power consumption or minimizing time delays in resource delivery. This task is essential but classified as an NP problem, making it an appropriate scenario for applying the proposed algorithm to navigate a dense graph. The paper highlights the well-known problem of finding the shortest path as one of the potential applications of the introduced algorithm. The algorithm aims to identify the optimal path trajectory within a graph representing a dense city’s real scenario. This discussion compares and contrasts the proposal with other established approaches, highlighting the advantages and characteristics of the proposed method.

1. Introduction

Navigating through a graph is a crucial task in graph theory. Finding the most appropriate path trajectories is one of the critical aspects of this task. Many approaches in the literature deal with this task by limiting and conditioning it to particular contexts, making it computable only in closed scenarios [1,2,3,4,5]. The task of computing the most suitable paths in a graph can be grouped into the following general approaches.
The approaches and techniques are classified into three large groups:
  • Global search approach.
  • Local search approach.
  • Hybrid or bio-inspired search approach.
The first approach, global search, focuses on considering the entire graph (or search space) to determine the best possible solution to the problem. This approach usually requires initial conditions and satisfaction criteria to find the best solution in the entire search space. Such methods typically employ a global directional cost function, which guides the process through the whole search space toward the best possible solution. However, this approach has the disadvantage of analyzing the entire search space, significantly increasing the computational resources needed to obtain a solution [6,7]. This approach becomes unsuitable; even if it computes the best path, the resources required to represent the search space require an enormous amount of computer memory. This is, the combinatorial of possible paths in a fully connected graph has a factorial growth and not viable to compute in graphs with few nodes.
To mitigate this difficulty, criteria are applied that allow the search space to be reduced or divided into manageable sections, adapting to the available computational resources [8,9,10,11]. This helps prevent the algorithm from falling into cycles or moving away from the optimal solution. Strategies based on metaheuristic search algorithms are frequently employed, such as Evolutionary Algorithms (EAs) [12], Branch and Bound (B&B) [13], Particle Swarm Optimization (PSO) [14], and Simulated Annealing (SA) [15].
The second approach, known as local search, assumes that it is possible to find an optimal solution that, at best, could coincide with the global solution of the problem. This method is based on iteratively modifying an initial solution and exploring neighboring solutions, which in most cases leads to a local optimum [16]. These techniques can be classified according to the search dynamics they employ. On the one hand, there are exact deterministic methods, such a B&B, which follow a fixed sequence of steps to ensure an exact optimal solution is obtained. On the other hand, there are non-deterministic stochastic methods, such SA and PSO, which incorporate random variables in the search process, allowing for exploring solutions in a more flexible and adaptive way.
This approach is suitable when prior information, whether complete or partial, about the search space, is available. This is its main advantage as it requires fewer computational resources compared to the global approach. However, its limitation lies in the fact that, when reaching local optima, there is a risk of incorrectly assuming that the global solution of the problem has been found [17,18,19]. In the literature, one can find heuristic local optimization methods that follow this approach, such as the Tabu Algorithm (TA) [20], and the Gradient Descent Search (GDS) [21].
Finally, hybrid approaches combine the global and local search methodologies described above, resulting in computationally tractable solutions by implementing constraints that always lead to a global solution to the problem. This approach requires, in most cases, prior information on the search space, which allows for the formulation of criteria, such as heuristics, applicable to specific problems within given contexts [22,23,24].
Algorithms bio-inspired by natural or biological processes are frequently found in the literature, aiming to improve search efficiency. In addition to EA, others stand out, such as Ant Colony Optimization (ACO) [25,26,27], Memetic Algorithms (MAs) [28], and the Sparrow Search Algorithm (SSA) [29].
Determining the best path within a graph is an asymmetrical task, and the complexity of creating a representation for this task is relatively low. However, finding the most suitable path is an NP-complete problem due to the combinatorial space it generates. Therefore, it is essential to develop alternative solutions that can help identify appropriate paths while avoiding computationally intractable challenges. The specific context and operations involved impose constraints that can make the problem more manageable.
Mathematical morphology (MM) features two fundamental operations: dilation and erosion. These can be combined to create new operators and filters [30,31,32,33,34]. Today, morphological techniques are a generalized framework for managing grid structures or arbitrary graph spaces associated with lattices through morphological operators [35,36]. These operators act as predecessor and successor functions within an induced relation in a given graph space.
This work presents a generalized framework for graph traversal based on morphological operators. In this framework, users must specify the initial and final conditions of the workspace as inputs. The approach defines morphological operators starting from the minimum connected subgraph, the infimum, and the overall space, referred to as the supremum. This methodology has proven to be efficient in finding optimal routes in graph-based spaces [37].
Cities and human populations tend to proliferate in various contexts. This growth often leads to a shortage of essential goods city residents need. Several expanding cities have implemented automated monitoring systems that enhance resource delivery, communication, and surveillance to address this issue. However, these systems require various resources, including electronic devices, communication infrastructure, data storage, and data analysis capabilities [38,39,40].
Historically, many studies have employed technological approaches to detect and monitor urban variables [41]. By analyzing these variables, cities can make the most effective decisions in response to different events [42,43]. Communication is crucial for sustaining our society and economy, as it helps balance required resources with timely responses [44,45,46].
Additionally, finding the most reliable routes for transportation within the city is essential. This task may involve transporting people, traffic, electrical supplies, or other goods across a specific network.
A dense city can be represented as a graph of interconnections, and finding the best path within this graph is a challenging task that requires NP algorithms [47,48,49]. The foundation for modeling a city as a dense graph is less complex than inspecting the solution space in search of feasible required solutions, making it an asymmetrical task. Consequently, this proposal expands upon this idea by representing a dense city as a high-dimensional graph with the objective of identifying feasible paths for delivering the city’s resources. The computational complexity is managed through a mathematical approach [37] designed to reduce this complexity.
The remainder of the paper is structured into different sections. Section 2 briefly introduces the theoretical concepts of MM and graph theory. Section 3 describes the experimental process, presents the findings obtained from the experimental method, and analyzes them. Finally, Section 4 summarizes the findings, addresses the limitations of the methodology used, and describes possible lines for future research.

2. Fundamentals of Graph Theory and Mathematical Morphology

This section discusses the theoretical foundations of graph theory, which allow information to be represented in an abstract structure with a high level of meaning. This theory is particularly useful for modeling real problems, such as the intricate way streets and avenues are interconnected, facilitating their analysis and optimization. Furthermore, the proposed solution is based on a reference framework based on tools offered by morphological mathematics, specifically on dilation, considered as a base operator. This operator allows the search space defined by the graph to be covered iteratively, generating an order relation that determines the path of the nodes in the graph.

2.1. Fundamental Definitions

As a fundamental part of modeling the base problem of searching for an optimal route in a discrete space, it is necessary to define the theoretical model based on a graph. In this article, we will consider a graph with three main characteristics: it will be undirected, connected, and weighted. The literature defines a graph as a structure consisting of N × E , mathematically defined as an ordered pair G = ( N , E ) where N = { n 1 , , n k } and represents a non-empty set of nodes or vertices, and  E = { e 1 , , e l } is the set of edges, which represent the connections between pairs of nodes; in this sense, the definition in extensive way is represented by an enumerated set G = { ( n , e ) | n N , e E } [31,50]. A graph in this context could represent a search space of an encoded scenario. In these terms, a scenario illustrates the description of nodes and connected routes to move between two states (see Figure 1).
Let L be a lattice constructed from G, which expresses the new order relation with an initial reference subgraph space x 0 G , and the set of subgraphs generated sequentially, which must cover the graph space G respecting the established order G , is represented as a process composed of a set of finite number of steps. At the end of the process, the subgraph x 0 covers the search space in its entirety, where the intermediate steps are defined by the homomorphic structure defined in λ , such that the order G is preserved through said correspondence between two sets in a binary operation. Furthermore, any i-th intermediate step constructs a subgraph x i G describing how consecutive finite states cover the entire search space G. Now, initially consider these two subgraphs as follows: x 0 , x * L such that x 0 G and x * G .
In this way, the subgraph x * can be reached starting from the subgraph x 0 by successively applying the dilation operator to it, even if x * does not satisfy the order relation defined for G. The approximation is completed by composing the dilating operator naming as covering operator:
cover λ ( x 0 , x * ) δ λ k · · δ λ 1 x 0
where k represents the number of times the operator dilation δ λ is successively composed and denotes the compositional operator. The k-th dilation represents the first step forward until the condition ( δ λ k · · δ λ 1 x 0 ) x * = x * becomes true.
For all nodes involved to reach x * , the number of times each node becomes dilated as the result of cover λ ( x 0 , x * ) is denoted for a set of nodes as | cover λ ( x 0 , x * ) | . The function becomes | · | : 2 G { G × f } such that for all nodes n j x i , the cumulative frequency f j for a particular node is expressed as a ( n j , f j ) tuple. Each f j counter is computed for all nodes in a given graph.
f j = l = 1 k b ( n j , δ λ l · · δ λ 1 x 0 )
where b is a function defined as follows: b ( n j , δ λ j · · δ λ 1 x 0 ) = + 1 if   n j δ λ j · · δ λ 1 x 0 0 Other   case where n j is a node. According to the notation, the expression | cover λ ( x 0 , x * ) n j | refers to the particular frequency f j for the node n j .
Figure 2 illustrates the search process in the graph space using frequency-associated covering, performed by successive dilations. The process starts from a reference or origin node (represented in black) and extends to the nodes that have not yet been covered. This process ends when the target node is reached, represented by a double circle. Figure 2 illustrates the progress of the process, where the dilated nodes (represented in gray) cover the search space, applying only to the nodes that have not yet been processed. The frequency is defined by successive dilations, increasing its counter as the covering process progresses. It can be observed that the frequency nodes with the highest natural value become the new reference and the limits become the frequencies with the lowest associated natural value. Finally, the process of morphological covering by dilation stops before reaching the objective node (see Figure 2). The initial reference node shows the cost frequency value to reach the objective.

2.2. Search Strategy

The strategy used in this work is based on a morphological search, implemented using fundamental operators of Morphological Mathematics: dilation and erosion, which generate a structure in the form of a lattice. The process starts from a reference state represented by a subgraph of the graph that models the complete search space, thus defining the starting point for calculating the final trajectory. From the first dilation applied to the reference node, a set of new subgraphs is generated that make up a lattice, representing all the possible routes that are candidates to be a trajectory solution. When the target node is reached, the optimal path trajectory is calculated by following the natural order defined by the coverage process through successive morphological dilations, taking into account the frequency associated with these operations. Finally, the optimal trajectory is estimated by tracing a reverse path from the target node to the initial reference node.
In [37], a morphological shortness algorithm is presented based on the analysis of local neighborhoods. This algorithm is suitable for our proposal because it operates on discrete topological spaces, with neighborhoods defined by the topological structure of the structuring element. The ability to modify the shape of this element allows for the inclusion of navigation constraints within the graph space. Furthermore, the covering operator establishes an order relation with low computational complexity for the best navigating paths.
Algorithm described in Algorithm 1 employs a morphological covering operator, beginning from the node x 0 and continuing until the successive dilations reach the target D. Typically, the intersection of x 0 and D is an empty set, represented as x 0 D = { } . Semantically, when the intersection of these two elements becomes a non-empty set, it indicates that the graph’s starting point and destination are the same. The covering operator employs a dilation operator as the primary method for examining the jump-neighborhood within the graph. The shape of the dilation and structural elements determines the algorithm’s strategy for navigating the graph. Larger structural elements indicate a more aggressive search strategy, which can converge quickly with fewer iterations, instead of increasing local complexity to identify the path. In contrast, smaller structural elements facilitate a more detailed search strategy while minimizing computational complexity.
The covering dilation results in a graph denoted by x * , such that x * ( x 0 D ) = x 0 D . This means that the destination D has been reached through successive dilations starting from x 0 .
Algorithm 1 Morphological search with the constraint of x 0 x * and D x *  [37].
1:
procedure SearchProcess( x 0 , D , x * , G , λ )
2:
     M cover λ ( x 0 , D )     ▹ Iterates covering the search space x * until the goal D is reached.
3:
     M n = | | M | | or M n = | M |                ▹ Cost of traveling across G order.
4:
    Starting in any s i S 0
5:
     C M n x 0                    ▹ Initial cost with the weight of node n i .
6:
     P { }                            ▹ Initial path trajectory.
7:
    while a node n i D is not reached do         ▹ Repeat until a solution is found.
8:
         n i + 1 C ( n i )                ▹ Advance in the best path according to C.
9:
         P = P { ( n i , n i + 1 ) }                    ▹ Adds current traveling node.
10:
       n i n i + 1                      ▹ Further state becomes current state.
11:
       C C + M n n i                           ▹ Update cost x i .
12:
    end while
13:
return P, C                     ▹ Return path trajectory P and cost C.
14:
end procedure
The Algorithm 1 takes as an input a G graph space, x * G represents the covering by dilation to reach destination D G starting from x 0 s * that represents the initial position (or reference), and D x * repents the destination. The last input is a structural graph-connection neighborhood. It represents a homomorphic structure for the lattice navigation λ x * . The algorithm outputs a path that follows the search criterion and the total cost associated with displacing along this path. The complete Algorithm is described in Algorithm 1. This algorithm computes the best trajectory under the assumption that there are one or more solutions.
The function C criterion (line 8 of Algorithm 1) takes as input a given node n and a set of adjacent nodes expressed as N = { e i such that ( n , e i ) G } . The output is a node that denotes the best transition from the current node n to any node belonging to its neighborhood. The function C analyzes the neighborhood, selecting the best node (minima or maxima) to construct the path.
The Algorithm 1 implementation assumes that the destination is a subgraph denoted by D x * . In a blind search, the assumption that there is at least one path from x 0 to D becomes complicated. In the particular case that D x * = { } , Algorithm 1 becomes undecidable (falls into an infinite loop), which is considered a disadvantage.

2.3. Implementation Issues

The expected connections between its nodes primarily influence the implementation of a graph G. To analyze the graph, it is treated as a finite list of nodes, and a sequential process is applied to each individual element. There are three main stages for addressing computational complexity:
  • The use of morphological operators such as dilation and its frequency associated with its weight calculations.
  • Computing and building the optimal path trajectory.
  • Evaluating the process to select the best forward step from a given objective.
For the first stage, the complexity depends on the number of nodes | x * | , which represents the set x * cardinality. It is also influenced by the expected order of all nodes involved in x * , expressed by the constant o * , which denotes the structural element size | λ | . Consequently, the complexity can be expressed as O ( | x * | × o * × | λ | ) .
The computational complexity for frequency and weighted operators is the same, denoted as | · | or | | · | | . In real scenarios, covering and frequency/weighted calculations can be performed simultaneously, having the required computation time. Each iteration, the list of nodes for dilation, can be processed separately since the dilation process is independent for each node. This allows for the possibility of segmenting the process into m chunks (or sublists) to implement a parallel approach, thereby reducing the final complexity by a factor of 1 m . When the graph order is homogeneous across all elements, the computational complexity for a given dimensionality becomes O ( n 2 m ) , where m denotes the spatial dimensionality. These spaces typically represent structures such as images, volumes, or grid-like arrangements.
In the second stage, the loop for constructing the best trajectory involves backward analysis of the topological structure provided by the frequency/weighted calculations. The minimum number of iterations required to reach the goal D is represented by | M x 0 | ; however, this may vary depending on how the C criterion is implemented. For practical purposes, the lower bound of the complexity is expressed as O ( | M s 0 | ) multiplied by the complexity of the C criterion.
Finally, (3) refers to the criterion C for the sting forward to the destination D. This function requires a complexity of O ( | N | ) computations for determining the best choice. Then, the total complexity from stages (1) and (2) is O ( | M x 0 | ) × O ( | N | ) . To conclude, with these issues, the total complexity of the algorithm becomes expressed as O ( τ | x * | × o * × | λ | × k ) morphological   operators + O ( | M x 0 | ) × O ( | N | ) best   path   building .

3. Experimental Process and Results Analysis

This section introduces an experimental model designed to assess the algorithm’s performance and applicability in practical situations within large cities with complex road systems. The results will be discussed, along with the implications of using this model as a new method for evaluating feasible paths represented as discrete scenarios.

3.1. Experimental Process in Real Scenarios

The proposed method was tested in Querétaro, Mexico City, representing a densely populated and continually growing urban environment. The road infrastructure in this city is complex due to unplanned growth over time, leading to multiple arterial routes that concentrate the main traffic flow and communication. As a significant urban center, Querétaro is one of the most important cities in Mexico, serving as a key communication hub between the northern and southern regions of the country. Consequently, the logistic problems caused by saturated arterial resources pose a significant challenge in efficiently utilizing resources to improve the quality of life. Figure 3 illustrates the geographical position of Querétaro and lists the towns with the strongest economies in the region. The experimental process is structured in three main stages:
  • Coding processes in a complex graph. This stage involves coding an urban area comprising interconnected streets and avenues as a connected graph. To do this, the intersections of streets and avenues are identified and represented as nodes of the graph, which are added and form its structure. In this stage, maps of Querétaro are used, specifically of the downtown area.
  • Graph weighing process. The process of assigning weights to transitions between adjacent nodes is performed based on the distance in a metric space, which allows for the effective representation of the connections between them. Node detection is achieved by identifying the maximum values of the distance transformation, which correspond to the areas where the intersections between avenues are located. Interconnected streets define the arcs that connect the pairs of nodes detected.
  • A comparison with Dijkstra’s approaches. This process compares computational complexity between search methods using another method as a reference.

3.2. Discussion and Results

Search Algorithm 1 is based on a morphological operator approach to determine the best path within a graph. It was tested using the experimental process described in the previous sections.
In the first stage of the methodology, a coding process converts a geographic map of a city, densely interconnected by streets and avenues, into a coded graph representation of nodes and arcs. The intersections of these avenues are considered nodes, while the connections between them, defined by the avenues, form the arcs that link each ordered pair of nodes.
The coding process utilizes a distance transform, followed by detecting and isolating identified maximum zones. This abstraction process requires minimal computational resources and provides a consistent representation of the geographic layer that reflects the typical interconnected structure of avenues in any city. The crossings between avenues indicate local maximum distances, which result from applying a distance transformation [52]. The locations of all detected maxima are obtained by applying the extended morphological distance.
The detection of maxima can be affected due to the intrinsic structure of the flood geometry, particularly the thickness of the floods and the resolution. This effect becomes more evident when two nearby maxima merge. As mentioned in previous sections, the detection of areas with maxima is performed using the morphological extended maxima transformation [53,54]. This morphological tool offers a reliable process to detect maxima in discrete search spaces.
The information about the city’s avenues can be represented as a graph. This graph can be used to generate a search path, as illustrated in Figure 4 based on the sample used in [37], starting from two positions (see Figure 4a), the starting point x 0 and the destination point D. The subsequent graphs in Figure 4b depict the process of covering the graph. The nodes are expanded from the starting node until they reach the destination set D. A dilation operator influences the number of times a node is used to calculate the path solution. The frequency of this occurrence establishes a natural order relation that determines the shortest trajectory based on the connections made to the reached nodes.
Once the destination node is reached, the computed solution is highlighted in red (see Figure 4). In this case, reaching the destination requires 17 iterations (successive dilations). The proposed method performs a breadth-first search, which provides a significant advantage by achieving a higher convergence speed. However, combining breadth-first and depth-first search strategies makes it possible to obtain an efficient solution without the need to exhaustively explore the entire search space in the best case.

3.3. A Comparison with Other Well-Accepted Approaches

A wide range of well-documented methodologies is discussed in the literature. Table 1 summarizes the main characteristics of these methods, which allow the optimal trajectory to be calculated in various contexts and specific applications. These works can be compared mainly through three factors: (1) the type of search space, (2) the limitations associated with the application context, and (3) the approach used to find the best trajectory.
Table 1 presents a summary of the different approaches that address the shortest path problem in a search space, whether based on grids or graphs, to highlight and delimit the scope of the proposed method. In the first case of analysis, two main classes can be identified, as detailed in the ’workspace’ column of Table 1: (i) approaches based on structured spaces, such as grid representations and (ii) approaches using unstructured spaces, which set upper bounds to mitigate the risk of combinatorial explosion. Although the size of the search space restricts grid-based methods, unstructured approaches provide greater flexibility to handle more complex and irregular workspaces.
Column feature (2) is a technique used to reduce the search space to make it computable and tractable. However, it introduces an extra layer of complexity associated with the segmentation of the search space. On occasions, this extra complexity can significantly increase the overall complexity, especially in hybrid approaches [59,60,61] and mixture approaches [6,62,63]. These approaches impose additional constraints to make them more tractable in the search space.
The methods above only help narrow the search space and do not contribute to how the trajectory is computed. In contrast, column feature (3), which is used by the majority of approaches, employs a Dijkstra-like algorithm [3,64,65,66,67,68] to compute the best trajectory. It would be worthwhile to conduct a detailed comparison with the Dijkstra algorithm as our proposal provides a new theoretical framework for dealing with this problem.

3.4. Comparison with Dijkstra Algorithm

Table 1 indicates several methods similar to the method that uses Dijkstra’s algorithm as its basis but with some modifications based on context or heuristics. To assess the proposed method’s performance, we conducted a case study on a network where we compared how the method performs with the base Dijkstra algorithm without a priority queue. We aimed to analyze the performance and main differences between the two algorithms in the given area. Figure 5 illustrates the execution stages of both algorithms. The first column shows the execution of the algorithm that uses the morphological coverage operator. In contrast, the second column shows how the Dijkstra algorithm operates the search without utilizing the priority queue.
In the morphological search, we start with the first dilation of the reference node in iteration k = 1 . Each node is associated with a frequency value that denotes the number of times it is dilated. In the subsequent iterations ( k = 2 to k = 4 ) , we apply dilation successively to include new nodes until the dilated nodes cover the destination. When we reach iteration k = 5 , the goal has been achieved. The minimum solutions are all the paths that follow a natural order of increasing frequency, starting from the destination and ending at the origin.
In contrast, the Dijkstra algorithm analyzes each adjacent node in the first iteration ( k = 1 ) and calculates the cost for each connected node. Refer to Figure 5 in the second column for an example of this analysis from iteration k = 1 to k = 4 , which only considers the decision to select the node with the minimum cost, number 3. As a combinatorial problem, the algorithm’s computational time is affected by the degree of connection that a node maintains. However, it is essential to note that modifications such as adding a priority queue can further increase the algorithm’s computational complexity. Despite this, the worst-case scenario remains at O ( | E | + | N | l o g | N | ) .
O ( | V | 2 + | A | ) = O ( | V | 2 )
where V expresses the non-empty set of vertices (nodes), A is the set of arcs, and | · | represents the cardinality operators. The complexity mentioned above refers to the basic algorithm without a priority queue. In the literature, many authors agree that the computational complexity of Dijkstra’s algorithm is O ( | A | l o g | V | ) when a priority queue is implemented [69]. However, this complexity is often considered incomplete since the additional cost associated with generating and maintaining the priority queue needs to be included.
However, in order to compare the methodology with the proposal of the classical Dijkstra algorithm, its computational complexity was analyzed [69]. In the first analysis, the complexity of the algorithm is expressed in its initial form by Equation (3)
The morphological approach involves a level of complexity where τ , o * , λ , and k are constant values. In the worst case, the k parameter can take values equal to | x * | , with x * representing the number of vertices. The parameters τ and o * take on small values, which we can simplify by rewriting as a constant value c 1 . The parameter λ indicates the neighborhood expressed by the structural element.
Assuming that the complexity for path generation is constant with O ( | N | ) = c 2 and in the worst case O ( | M s 0 | ) has a frequency of | x * | , we can rewrite the complexity Equation as follows:
O ( c 1 | x * | 2 × λ ) + c 2 × | x * | = O ( c 1 | x * | 2 × λ )
The final expression becomes simplified to O ( n 2 ) ; the complexity is comparable to the Dijkstra algorithm without a priority queue [37].
The results indicate that the approach is a reliable general framework for developing search algorithms in a graph. This framework provides a theoretical basis for defining a search process, allowing for a simplified representation of search methods in discrete spaces. The structural element and neighborhood connectivity parameters establish the criteria for covering the graph space, influencing the search speed; higher values lead to faster coverage. In grid spaces, symmetrical structural elements outperform irregular shapes, reflecting a trend in step-forward structures that guide the search towards the solution.
The covering dilation operator offers a travel criterion within the graph that helps prevent loops in the search space due to the induced lattice. Typically, a morphological approach is a first-in-width search strategy, meaning that the first solution reached, based on the width of tree paths generated from the lattice, is considered optimal. By incorporating weights into the graph, we can adjust the cost of traveling between nodes, enabling the analysis of non-uniform graph spaces.
To supplement the experimental process, we compared both algorithms. The experimental process uses a city map to calculate the shortest path, randomly selecting start and end points for the trajectory. However, it is essential to note that the two algorithms are not directly equivalent, leading to the following comparison:
In our proposed method, we measure the percentage of marked states to determine the total number of visited states needed to reach the destination. A low percentage indicates that the approach requires only a small portion of the total space to be visited to compute the optimal path.
For the Dijkstra algorithm, we illustrate the distribution of the number of states that comprise the optimal path. This distribution reveals the number of states that form the solution and indicates how often the priority queue needs to be processed with all states conforming to the system. In the testing scenario, 261,597 states are involved, as shown in Figure 6a. Each marked pixel within the avenues represents a unique state. Here are the results obtained:
Our proposal advocates for a uniform distribution of the usage percentage within the solution space, as illustrated in Figure 6a. Statistically, this distribution has a mean of only half of the total number of states. On average, our approach requires only about half as many states to compute the optimal path compared to the Dijkstra algorithm [69].
Figure 6b depicts the length distribution of the optimal path. Both approaches yield equivalent paths, but there is a notable difference between them [37]. The path length distribution for Dijkstra reveals the frequency with which the priority queue needs to be constructed to identify the optimal path, involving interactions with all system states to locate and sort the most probable solutions. The maximum values indicated by the arrows (at 2000 and 3000) represent the anticipated number of times the entire solution space is analyzed. This higher frequency is a consequence of constructing the priority queue, which exceeds our proposed method’s.
This test confirms that the proposed method can be more cost-effective than the classical Dijkstra algorithm in certain applications.
This proposed method clearly defines the town’s strategic analysis of potential solutions for logistics planning, specifically designed to optimize delivery and transport routes for goods and services within the community. We will proceed with a focused analysis to identify the most effective delivery paths, ensuring we address time-sensitive conditions and constraints effectively.
In summary, the proposal advances the field of graph search by introducing a morphological approach to describing search graph algorithms. This approach simplifies the modeling and description of these algorithms. It offers several advantages, including low computational complexity, the ability to express algorithms equivalent to the best in the state of the art, and a reference description suitable for discrete environments. Additionally, it can accommodate parallel processing by implementing morphological operators.

4. Conclusions

This work presents a method for determining the shortest path for resource delivery in densely populated cities. One key advantage of this approach is its low complexity, which enables the analysis of large urban areas as discrete spaces. By utilizing a morphological framework, we create a compact representation of the city that simplifies the search space.
This feature makes it practical for implementation in various densely populated cities, where the effectiveness of communication infrastructure can change frequently. This approach is particularly effective when combined with other methodologies, such as Dijkstra’s algorithm, as it does not necessitate examining the entire graph space. The results indicate that the amount of space inspected to find the solution is approximately 5 % .
Further works: This proposal outlines a morphological searching approach. Future research will focus on criteria for parallelization to enhance algorithm performance on multi-core hardware. Additionally, strategies for isolating processes and executing sub-processes in parallel will be explored.
We also propose a criterion for weighted graphs, where magnitudes define connections. This addresses issues related to probability, neural networks, and search algorithms. While the experimental analysis utilized only one coding scheme, it could be expanded to automatically generate graphs based on urban variables such as traffic flow density and velocity.
Furthermore, the search framework enables the identification of path trajectories even when the destination graph is unreachable. This feature introduces a new connectivity criterion for covering dilation connections in graph-dense clustering analysis, which aids in developing techniques for clustering and labeling data.
Applications that benefit from this approach include task routing, which optimizes network traffic and establishes the most efficient path for connections, ultimately reducing latency. This process involves determining optimal connection ratios in urban areas to analyze short paths, thereby decreasing response times for goods delivery. In cellular networks, leveraging topology is an effective strategy for selecting the best cells to balance bandwidth communication. Additionally, there are medical applications involving the use of catheters in surgical procedures.

Author Contributions

Conceptualization, J.L.P.-R. and H.J.-H.; Formal analysis, A.M.H.-N. and H.J.-H.; Methodology, J.L.P.-R., A.M.H.-N., L.A.D.J. and H.J.-H.; Software, H.J.-H.; Supervision, A.M.H.-N. and H.J.-H.; Writing—original draft, J.L.P.-R., S.R.-R., D.C.-E. and A.M.H.-N.; Writing—review and editing, H.H.-R., A.M.H.-N., J.L.P.-R. and H.J.-H. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

Data are contained within the article.

Acknowledgments

We wish to give thanks to the Mexican Artificial Intelligence Alliance, with the FORDECYT Project 296737 Consorcio en Inteligencia Artificial, which provided the student scholarships, and the CIICCTE (Centro de Investigación e Innovación en Ciencias de la Computación y Tecnología Educativa) laboratory belonging to the FIF-UAQ, which provided technical and infrastructure support.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Wang, M.; Xu, X.; Yue, Q.; Wang, Y. A comprehensive survey and experimental comparison of graph-based approximate nearest neighbor search. arXiv 2021, arXiv:2101.12631. [Google Scholar] [CrossRef]
  2. Wang, J.; Wu, N.; Zhao, W.X.; Peng, F.; Lin, X. Empowering A* search algorithms with neural networks for personalized route recommendation. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, Anchorage, AK, USA, 4–8 August 2019; pp. 539–547. [Google Scholar]
  3. Candra, A.; Budiman, M.A.; Hartanto, K. Dijkstra’s and a-star in finding the shortest path: A tutorial. In Proceedings of the 2020 International Conference on Data Science, Artificial Intelligence, and Business Analytics (DATABIA), Medan, Indonesia, 16–17 July 2020; pp. 28–32. [Google Scholar]
  4. Samolej, S.; Dec, G.; Rzonca, D.; Majka, A.; Rogalski, T. Regular graph-based free route flight planning approach. Aircr. Eng. Aerosp. Technol. 2021, 93, 1488–1501. [Google Scholar] [CrossRef]
  5. Liu, X.; Zhang, D.; Zhang, T.; Cui, Y.; Chen, L.; Liu, S. Novel best path selection approach based on hybrid improved A* algorithm and reinforcement learning. Appl. Intell. 2021, 51, 9015–9029. [Google Scholar] [CrossRef]
  6. Fang, Y.; Huang, X.; Qin, L.; Zhang, Y.; Zhang, W.; Cheng, R.; Lin, X. A Survey of Community Search Over Big Graphs; Springer: Berlin/Heidelberg, Germany, 2020; Volume 29, pp. 353–392. [Google Scholar] [CrossRef]
  7. Fan, D.; Shi, P. Improvement of Dijkstra’s algorithm and its application in route planning. In Proceedings of the 2010 Seventh International Conference on Fuzzy Systems and Knowledge Discovery, Yantai, China, 10–12 August 2010; Volume 4, pp. 1901–1904. [Google Scholar] [CrossRef]
  8. Sayed, G.I.; Hassanien, A.E.; Azar, A.T. Feature selection via a novel chaotic crow search algorithm. Neural Comput. Appl. 2019, 31, 171–188. [Google Scholar] [CrossRef]
  9. Liu, H.; Jin, C.; Zhou, A. Popular route planning with travel cost estimation from trajectories. Front. Comp. Sci. 2020, 14, 191–207. [Google Scholar] [CrossRef]
  10. Ouadfel, S.; Abd Elaziz, M. Enhanced crow search algorithm for feature selection. Expert Syst. Appl. 2020, 159, 113572. [Google Scholar] [CrossRef]
  11. Lotfi, M.; Osório, G.J.; Javadi, M.S.; Ashraf, A.; Zahran, M.; Samih, G.; Catalão, J.P. A Dijkstra-inspired graph algorithm for fully autonomous tasking in industrial applications. IEEE Trans. Ind. Appl. 2021, 57, 5448–5460. [Google Scholar] [CrossRef]
  12. Liu, Y.; Qi, N.; Yao, W.; Zhao, J.; Xu, S. Cooperative path planning for aerial recovery of a UAV swarm using genetic algorithm and homotopic approach. Appl. Sci. 2020, 10, 4154. [Google Scholar] [CrossRef]
  13. Dell’Amico, M.; Montemanni, R.; Novellani, S. Algorithms based on branch and bound for the flying sidekick traveling salesman problem. Omega 2021, 104, 102493. [Google Scholar] [CrossRef]
  14. Li, X.; Tian, B.; Hou, S.; Li, X.; Li, Y.; Liu, C.; Li, J. Path Planning for Mount Robot Based on Improved Particle Swarm Optimization Algorithm. Electronics 2023, 12, 3289. [Google Scholar] [CrossRef]
  15. Shi, K.; Wu, Z.; Jiang, B.; Karimi, H.R. Dynamic path planning of mobile robot based on improved simulated annealing algorithm. J. Frankl. Inst. 2023, 360, 4378–4398. [Google Scholar] [CrossRef]
  16. Brandão, J. Iterated local search algorithm with ejection chains for the open vehicle routing problem with time windows. Comput. Ind. Eng. 2018, 120, 146–159. [Google Scholar] [CrossRef]
  17. Brandão, J. A memory-based iterated local search algorithm for the multi-depot open vehicle routing problem. Eur. J. Oper. Res. 2020, 284, 559–571. [Google Scholar] [CrossRef]
  18. Zhao, J.; Mao, M.; Zhao, X.; Zou, J. A hybrid of deep reinforcement learning and local search for the vehicle routing problems. IEEE Trans. Intell. Transp. Syst. 2020, 22, 7208–7218. [Google Scholar] [CrossRef]
  19. Konstantakopoulos, G.D.; Gayialis, S.P.; Kechagias, E.P. Vehicle routing problem and related algorithms for logistics distribution: A literature review and classification. Oper. Res. 2022, 22, 2033–2062. [Google Scholar] [CrossRef]
  20. Prajapati, V.K.; Jain, M.; Chouhan, L. Tabu search algorithm (TSA): A comprehensive survey. In Proceedings of the 2020 3rd International Conference on Emerging Technologies in Computer Engineering: Machine Learning and Internet of Things (ICETCE), Jaipur, India, 7–8 February 2020; pp. 1–8. [Google Scholar]
  21. D’Angelo, G.; Palmieri, F. GGA: A modified genetic algorithm with gradient-based local search for solving constrained optimization problems. Inf. Sci. 2021, 547, 136–162. [Google Scholar] [CrossRef]
  22. de Oliveira, G.C.R.; de Carvalho, K.B.; Brandão, A.S. A hybrid path-planning strategy for mobile robots with limited sensor capabilities. Sensors 2019, 19, 49. [Google Scholar] [CrossRef] [PubMed]
  23. Deng, W.; Xu, J.; Zhao, H. An improved ant colony optimization algorithm based on hybrid strategies for scheduling problem. IEEE Access 2019, 7, 20281–20292. [Google Scholar] [CrossRef]
  24. Sundarraj, S.; Reddy, R.V.K.; Basam, M.B.; Lokesh, G.H.; Flammini, F.; Natarajan, R. Route planning for an autonomous robotic vehicle employing a weight-controlled particle swarm-optimized Dijkstra algorithm. IEEE Access 2023, 11, 92433–92442. [Google Scholar] [CrossRef]
  25. Wang, L.; Kan, J.; Guo, J.; Wang, C. 3D Path planning for the ground robot with improved ant colony optimization. Sensors 2019, 19, 815. [Google Scholar] [CrossRef]
  26. Zhang, H.; Zhang, Q.; Ma, L.; Zhang, Z.; Liu, Y. A hybrid ant colony optimization algorithm for a multi-objective vehicle routing problem with flexible time windows. Inf. Sci. 2019, 490, 166–190. [Google Scholar] [CrossRef]
  27. Shimomura, L.C.; Oyamada, R.S.; Vieira, M.R.; Kaster, D.S. A survey on graph-based methods for similarity searches in metric spaces. Inf. Syst. 2021, 95, 101507. [Google Scholar] [CrossRef]
  28. Wang, L.; Lu, J. A memetic algorithm with competition for the capacitated green vehicle routing problem. IEEE/CAA J. Autom. Sin. 2019, 6, 516–526. [Google Scholar] [CrossRef]
  29. Zhang, Z.; He, R.; Yang, K. A bioinspired path planning approach for mobile robots based on improved sparrow search algorithm. Adv. Manuf. 2022, 10, 114–130. [Google Scholar] [CrossRef]
  30. Gaikwad, S.K.; Karwankar, A.R. Food image 3D reconstruction using image processing. In Proceedings of the 2019 3rd International Conference on Trends in Electronics and Informatics (ICOEI), Tirunelveli, India, 23–25 April 2019. [Google Scholar] [CrossRef]
  31. Hÿtch, M.; Hawkes, P.W. Morphological Image Operators; Academic Press: Cambridge, MA, USA, 2020. [Google Scholar]
  32. Aiguier, M.; Bloch, I. Logical dual concepts based on mathematical morphology in stratified institutions: Applications to spatial reasoning. J. Appl. Non-Class. Log. 2019, 29, 392–429. [Google Scholar] [CrossRef]
  33. Roerdink, J.B. Mathematical morphology with noncommutative symmetry groups. In Mathematical Morphology in Image Processing; CRC Press: Boca Raton, FL, USA, 2018; pp. 205–254. [Google Scholar]
  34. Preteux, F. On a distance function approach for gray-level mathematical morphology. In Mathematical Morphology in Image Processing; CRC Press: Boca Raton, FL, USA, 2018; pp. 323–349. [Google Scholar]
  35. Marcondes, D.; Barrera, J. Discrete morphological neural networks. SIAM J. Imaging Sci. 2024, 17, 1650–1689. [Google Scholar] [CrossRef]
  36. Maragos, P. Tropical geometry, mathematical morphology and weighted lattices. In Mathematical Morphology and Its Applications to Signal and Image Processing; Springer: Berlin/Heidelberg, Germany, 2019; pp. 3–15. [Google Scholar]
  37. Perez-Ramos, J.L.; Ramirez-Rosales, S.; Canton-Enriquez, D.; Diaz-Jimenez, L.A.; Xicotencatl-Ramirez, G.; Herrera-Navarro, A.M.; Jimenez-Hernandez, H. Algorithm Based on Morphological Operators for Shortness Path Planning. Algorithms 2024, 17, 184. [Google Scholar] [CrossRef]
  38. Dani, A.A.H.; Supangkat, S.H.; Lubis, F.F.; Nugraha, I.G.B.B.; Kinanda, R.; Rizkia, I. Development of a smart city platform based on digital twin technology for monitoring and supporting decision-making. Sustainability 2023, 15, 14002. [Google Scholar] [CrossRef]
  39. Salman, M.Y.; Hasar, H. Review on environmental aspects in smart city concept: Water, waste, air pollution and transportation smart applications using IoT techniques. Sustain. Cities Soc. 2023, 94, 104567. [Google Scholar] [CrossRef]
  40. Luckey, D.; Fritz, H.; Legatiuk, D.; Dragos, K.; Smarsly, K. Artificial intelligence techniques for smart city applications. In Proceedings of the 18th International Conference on Computing in Civil and Building Engineering: ICCCBE 2020, Sao Paolo, Brazil, 18–20 August 2020; Springer: Berlin/Heidelberg, Germany, 2021; pp. 3–15. [Google Scholar]
  41. Pascale, A.; Guarnaccia, C.; Macedo, E.; Fernandes, P.; Miranda, A.I.; Sargento, S.; Coelho, M.C. Road traffic noise monitoring in a Smart City: Sensor and Model-Based approach. Transp. Res. Part D Transp. Environ. 2023, 125, 103979. [Google Scholar] [CrossRef]
  42. Yu, W.; Bai, W.; Luan, W.; Qi, L. State-of-the-art review on traffic control strategies for emergency vehicles. IEEE Access 2022, 10, 109729–109742. [Google Scholar] [CrossRef]
  43. Liu, S.; Li, Y.; Fu, S.; Liu, X.; Liu, T.; Fan, H.; Cao, C. Establishing a Multidisciplinary Framework for an Emergency Food Supply System Using a Modified Delphi Approach. Foods 2022, 11, 1054. [Google Scholar] [CrossRef] [PubMed]
  44. Sirina, N.; Zubkov, V. Transport services management on transport and logistic methods. Transp. Res. Procedia 2021, 54, 263–273. [Google Scholar] [CrossRef]
  45. Silva, C.M.; Silva, L.D.; Santos, L.A.; Sarubbi, J.F.; Pitsillides, A. Broadening understanding on managing the communication infrastructure in vehicular networks: Customizing the coverage using the delta network. Future Internet 2018, 11, 1. [Google Scholar] [CrossRef]
  46. Ivanova, E.; Masarova, J. Importance of road infrastructure in the economic development and competitiveness. Econ. Manag. 2013, 18, 263–274. [Google Scholar] [CrossRef]
  47. Rong, G.; Cao, Y.; Wang, J.; Wang, Z. Graph searches and their end vertices. Algorithmica 2022, 84, 2642–2666. [Google Scholar] [CrossRef]
  48. Rowold, M.; Ögretmen, L.; Kerbl, T.; Lohmann, B. Efficient spatiotemporal graph search for local trajectory planning on oval race tracks. Actuators 2022, 11, 319. [Google Scholar] [CrossRef]
  49. Chen, W.; Zhang, Y.; Xian, Y.; Wen, Y. Hotspot Information Network and Domain Knowledge Graph Aggregation in Heterogeneous Network for Literature Recommendation. Appl. Sci. 2023, 13, 1093. [Google Scholar] [CrossRef]
  50. Gross, J.L.; Yellen, J.; Anderson, M. Graph Theory and Its Applications; Chapman and Hall/CRC: Boca Raton, FL, USA, 2018. [Google Scholar]
  51. IMCO. Índice de Competitividad Urbana 2024. 2024. Available online: https://imco.org.mx/indice-de-competitividad-urbana-2024/ (accessed on 14 December 2024).
  52. Strutz, T. The distance transform and its computation. arXiv 2021, arXiv:2106.03503. [Google Scholar]
  53. Les, T.; Markiewicz, T.; Dziekiewicz, M.; Lorent, M. Kidney boundary detection algorithm based on extended maxima transformations for computed tomography diagnosis. Appl. Sci. 2020, 10, 7512. [Google Scholar] [CrossRef]
  54. Parveen, Z.; Alam, M.A.; Shakir, H. Assessment of quality of rice grain using optical and image processing technique. In Proceedings of the 2017 International Conference on Communication, Computing and Digital Systems (C-Code), Islamabad, Pakistan, 8–9 March 2017; pp. 265–270. [Google Scholar]
  55. Wang, H.; Qi, X.; Lou, S.; Jing, J.; He, H.; Liu, W. An efficient and robust improved A* Algorithm for path planning. Symmetry 2021, 13, 2213. [Google Scholar] [CrossRef]
  56. Lewis, R. Algorithms for finding shortest paths in networks with vertex transfer penalties. Algorithms 2020, 13, 269. [Google Scholar] [CrossRef]
  57. Niewola, A.; Podsedkowski, L. L* algorithm—A linear computational complexity graph searching algorithm for path planning. J. Intell. Robot. Syst. 2018, 91, 425–444. [Google Scholar] [CrossRef]
  58. Ruan, C.; Luo, J.; Wu, Y. Map navigation system based on optimal Dijkstra algorithm. In Proceedings of the 2014 IEEE 3rd International Conference on Cloud Computing and Intelligence Systems, Shenzhen, China, 27–29 November 2014; pp. 559–564. [Google Scholar]
  59. Zhang, J.; Zhang, F.; Liu, Z.; Li, Y. Efficient Path Planning Method of USV for Intelligent Target Search. J. Geovisualization Spat. Anal. 2019, 3, 13. [Google Scholar] [CrossRef]
  60. Wang, J.; Shang, X.; Guo, T.; Zhou, J.; Jia, S.; Wang, C. Optimal path planning based on hybrid genetic-cuckoo search algorithm. In Proceedings of the 2019 6th International Conference on Systems and Informatics (ICSAI), Shanghai, China, 2–4 November 2019; pp. 165–169. [Google Scholar]
  61. Marinakis, Y.; Migdalas, A.; Sifaleras, A. A hybrid particle swarm optimization–variable neighborhood search algorithm for constrained shortest path problems. Eur. J. Oper. Res. 2017, 261, 819–834. [Google Scholar] [CrossRef]
  62. Dodik, A.; Papas, M.; Öztireli, C.; Müller, T. Path Guiding Using Spatio-Directional Mixture Models. In Computer Graphics Forum; Wiley Online Library: Hoboken, NJ, USA, 2022; Volome 41, pp. 172–189. [Google Scholar]
  63. Yao, P.; Wang, H.; Ji, H. Gaussian mixture model and receding horizon control for multiple UAV search in complex environment. Nonlinear Dyn. 2017, 88, 903–919. [Google Scholar] [CrossRef]
  64. Gunawan, R.D.; Napianto, R.; Borman, R.I.; Hanifah, I. Implementation Of Dijkstra’s Algorithm In Determining The Shortest Path (Case Study: Specialist Doctor Search In Bandar Lampung). Int. J. Inf. Syst. Comput. Sci 2019, 3, 98–106. [Google Scholar] [CrossRef]
  65. Sun, Y.; Fang, M.; Su, Y. AGV path planning based on improved Dijkstra algorithm. J. Physics: Conf. Ser. 2021, 1746, 012052. [Google Scholar] [CrossRef]
  66. Zhu, D.D.; Sun, J.Q. A new algorithm based on Dijkstra for vehicle path planning considering intersection attribute. IEEE Access 2021, 9, 19761–19775. [Google Scholar] [CrossRef]
  67. Kirono, S.; Arifianto, M.I.; Putra, R.E.; Musoleh, A.; Setiadi, R. Graph-based modeling and dijkstra algorithm for searching vehicle routes on highways. Int. J. Mech. Eng. Technol. 2018, 9, 1273–1280. [Google Scholar]
  68. Gbadamosi, O.A.; Aremu, D.R. Design of a Modified Dijkstra’s Algorithm for finding alternate routes for shortest-path problems with huge costs. In Proceedings of the 2020 International Conference in Mathematics, Computer Engineering and Computer Science (ICMCECS), Lagos, Nigeria, 18–21 March 2020; pp. 1–6. [Google Scholar]
  69. Dijkstra, E.W. A Note on Two Problems in Connexion with Graphs. Numer. Math. 1959, 1, 269–271. [Google Scholar] [CrossRef]
Figure 1. Process of encoding a real scenario in a graphical representation of nodes and edges.
Figure 1. Process of encoding a real scenario in a graphical representation of nodes and edges.
Symmetry 17 00114 g001
Figure 2. Search space coverage through dilation operator and its convergence to the target node (ag).
Figure 2. Search space coverage through dilation operator and its convergence to the target node (ag).
Symmetry 17 00114 g002
Figure 3. Reference city used to experimental test [51].
Figure 3. Reference city used to experimental test [51].
Symmetry 17 00114 g003
Figure 4. The process used by search algorithms in a graph space involves (a) knowledge of the scenario consisting of avenues, with information on the reference and destination nodes, and (b) the frequency of application of the dilation operator together with the final calculation of the trajectory of the optimal path found.
Figure 4. The process used by search algorithms in a graph space involves (a) knowledge of the scenario consisting of avenues, with information on the reference and destination nodes, and (b) the frequency of application of the dilation operator together with the final calculation of the trajectory of the optimal path found.
Symmetry 17 00114 g004
Figure 5. Comparison of the search process with covering dilation operator and the search with Dijkstra’s algorithm.
Figure 5. Comparison of the search process with covering dilation operator and the search with Dijkstra’s algorithm.
Symmetry 17 00114 g005
Figure 6. The distribution resulted of applying the algorithm for delivering resources in a dense city multiple times.
Figure 6. The distribution resulted of applying the algorithm for delivering resources in a dense city multiple times.
Symmetry 17 00114 g006
Table 1. Comparison of techniques for computing optimal path trajectories.
Table 1. Comparison of techniques for computing optimal path trajectories.
ApproachWorkspaceComplexityWeightedRemarks
Dijkstra with referenced graph [9]Graph O ( m n + n log n ) YesIt is an algorithm focused on the use of a priori information on nodes and arcs, where the concepts of popular location and popular traversal are introduced, together with a dynamic cost associated with the potentially optimal route.
Improved PSO [14]Grid O ( N · G · D ) YesThis approach is applied in collaborative robotics to assign individual trajectories, optimizing the updated weight strategy and improving convergence over traditional PSO methods. The convergence of the method is improved by classifying particles into three categories: elite, high-quality, and low-quality, which optimizes the shortest path calculation process.
Improved A* Algorithm [55]Grid O ( n 2 ) NoThe improved A* algorithm, named EBHSA*, proposes an innovative approach that optimizes three key aspects in route planning: (i) increasing the expansion distance for obstacle detection, (ii) implementing bidirectional search from the two nodes of interest simultaneously, and (iii) optimizing the classical heuristic function used in the base algorithm.
Dijkstra enhancement [56]Graph O ( m + n c m a x + c m a x ) YesThis approach adds penalties for vertex transfers in an expanded graph. It is sometimes slow compared to the first version because it duplicates the graph to remove edges from the adjacency list.
L* Algorithm [57]Graph O ( n ) YesThis approach is based on an improvement of Algorithm A*, where the weight is expressed as a floating point number applied in global searches. The proposal proves to be functional and provides good results in terms of computation time, especially when the distance between the nodes of interest is considerably short.
Dijkstra enhancement [58]Graph O ( ( n + m ) log n ) YesIt introduces the use of an adjacent node table, priority queue, and traffic impedance analysis, reducing the number of cycles compared to the traditional Dijkstra approach.
Dijkstra enhancement [7]Graph and Grid O ( n 2 ) NoThis proposal improves Dijkstra’s algorithm by redefining the data structure for better storage and providing a means to search for nodes ordered by priority. It also limits the search area by restricting the area where a better solution to the optimal route problem can be found.
Dijkstra enhancement [11]Graph O ( ( V × log V ) + E ) YesThis work implements Dijkstra’s algorithm using graph theory, optimizing the scheduling of industrial tasks by assigning extra weights to tasks with priority and solving by combinations.
Morphological search [37]Graph and Grid O ( c 1 | x * | 2 × λ ) YesThis paper describes a comprehensive framework using mathematical MM and introduces two novel operators based on dilation and erosion that establish a natural connection to determine the most reliable path.
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

Perez-Ramos, J.L.; Ramirez-Rosales, S.; Canton-Enriquez, D.; Diaz Jimenez, L.A.; Hernandez-Ramirez, H.; Herrera-Navarro, A.M.; Jimenez-Hernandez, H. Connecting Cities: A Case Study on the Application of Morphological Shortest Paths. Symmetry 2025, 17, 114. https://doi.org/10.3390/sym17010114

AMA Style

Perez-Ramos JL, Ramirez-Rosales S, Canton-Enriquez D, Diaz Jimenez LA, Hernandez-Ramirez H, Herrera-Navarro AM, Jimenez-Hernandez H. Connecting Cities: A Case Study on the Application of Morphological Shortest Paths. Symmetry. 2025; 17(1):114. https://doi.org/10.3390/sym17010114

Chicago/Turabian Style

Perez-Ramos, Jorge L., Selene Ramirez-Rosales, Daniel Canton-Enriquez, Luis A. Diaz Jimenez, Herlindo Hernandez-Ramirez, Ana M. Herrera-Navarro, and Hugo Jimenez-Hernandez. 2025. "Connecting Cities: A Case Study on the Application of Morphological Shortest Paths" Symmetry 17, no. 1: 114. https://doi.org/10.3390/sym17010114

APA Style

Perez-Ramos, J. L., Ramirez-Rosales, S., Canton-Enriquez, D., Diaz Jimenez, L. A., Hernandez-Ramirez, H., Herrera-Navarro, A. M., & Jimenez-Hernandez, H. (2025). Connecting Cities: A Case Study on the Application of Morphological Shortest Paths. Symmetry, 17(1), 114. https://doi.org/10.3390/sym17010114

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