Abstract

With the continuous urban scale expansion, traffic networks have become extremely complex. Finding an optimal route in the shortest time has become a difficult and important issue in traffic engineering study. In this study, a novel computing model, namely, probe machine, is used to solve this problem. Similar to previous studies, urban transport networks can be abstracted into maps, in which points representing places of origin, destinations, and other buildings constitute the data library and edges representing the road make up the probe library. The true solution can be obtained after one probe operation on the computing platform. And by comparing the solving process with Dijkstra’s and Floyd’s algorithms, the computing efficiency of the probe machine is clearly superior, although all three methods can solve the shortest path problem and obtain the same solution.

1. Introduction

Traffic engineering is the basic theory of the research and development of traffic engineering discipline. Its main purpose is to seek the transportation system planning, construction and management scheme with the largest travel efficiency, the least traffic accidents, the fastest traffic speed, the least transportation cost, and the lowest energy consumption. The rapid development of urban traffic and increase in the number of vehicles has made travelling more convenient for people in recent years. However, urban traffic is not smooth due to the numerous traffic network nodes and complex sections; some cities suffer from traffic congestion [1, 2]. Finding a suitable path for drivers is not only one of the solutions to promote the development of urban transportation [35], but also one of the main purposes in traffic engineering research. Therefore, we must address this issue by determining the shortest path. In traffic engineering, “shortest path” does not necessarily mean the shortest distance, but also the shortest time or the lowest cost.

The shortest path problem is a classical problem in graph theory, which has been applied in many fields [6]. Finding the path with the shortest distance is the most basic application of the shortest path problem, which is also a very practical problem. The basic objective of the shortest path problem is to find the path, with the lowest weight, between two points where every edge in the graph has its own weight value. Many algorithms to solve the shortest path problem have been proposed in previous studies, such as Dijkstra’s algorithm [7], Bellman–Ford algorithm [8], and Floyd’s algorithm [9]. The most classical algorithm for solving such a problem is Dijkstra’s algorithm. It can solve the shortest path problem from a given point to any point; however, it fails to solve the shortest path problem with a negative weight. Therefore, Floyd’s algorithm and other algorithms were proposed to solve the above problem.

In 2016, Xu proposed a new computing model, i.e., the probe machine [10]. Probe machine is a completely parallel computing model that can simultaneously process multiple pairs of data. Parallel computing can speed up operations, expand the scale of processing problems, and facilitate the ability of algorithms to handle problems [11, 12]. Compared with turing machines, probe machines can solve NP-complete problems after a probe operation, such as the Hamiltonian cycle problem [10], vertex problem [10], travelling salesman problem [13], working operation problem [14], and so on. The probes of a probe machine can be divided into connective probes and transitive probes. A connective probe can connect data fibers from different data, while a transitive probe can transmit information between data fibers from different data. The probe machine is a form of bionic computing. It achieves complete parallelism by imitating the process of information transmission of neurons and reduces computation complexity. Bionic computing refers to the use of biological models to deal with practical problems, and it can often yield unexpected results in some fields [15, 16]. In recent studies, more computational models are used to solve all kinds of NP problems, such as SAT problem [1721], vehicle routing problem [2224], graph coloring problem [10, 25, 26], partner selection problem [27], and the other problems [2833].

In this study, we first introduce a probe machine. Then, a shortest path problem, which is a problem of finding the path with the minimum distance, is solved by using Dijkstra’s algorithm, Floyd’s algorithm, and probe machine; the process using the three methods is then compared.

2. Probe Machine

The probe machine was first proposed by Professor Xu in 2016. It consists of nine parts including data library (), probe library (), data controller (), probe controller (), probe operation (), computing platform (), detector (), true solution storage (), and residue collector ().

The data placement mode of the data library is nonlinear. The data library is divided into n data pools . Data pool includes one type of data , and data comprises a body and data fibers, as shown in Figure 1.

There are two types of probes in a probe machine, namely, connective probe and transitive probe. A connective probe can connect different data fibers from different data, and a transitive probe can transfer information from the source fiber to a destination fiber. In this study, the connective probe is used to solve the shortest path problem. The set of all probes between two data pools constitutes the probe pool; the probe library is a set of all probe pools, as shown in Figure 2. The data controller and probe controller add the corresponding data and probes into the computing platform, respectively. After the probe operation, the resulting aggregation is detected by a detector. The resulting true solution is put into the true solution storage. The residue is put into the residue collection, which decomposes it into basic data and returns it to the data pool, as shown in Figure 2.

3. Solving the Shortest Path Problem

In this study, an example of a directed graph is considered, as shown in Figure 3. The points on the graph are represented by ; the distance from to is represented by . The shortest path from to is obtained. We will use Dijkstra’s algorithm, Floyd’s algorithm, and probe machine to solve the shortest path problem.

3.1. Solving the Shortest Path Problem Using Dijkstra’s Algorithm

P represents the distance from the starting point to point , and T refers to the previous point in the shortest path. represents the set of points that have p mark in step .(1), , , , , , ()Because , , let , ;Similarly, , ;, .,so, let , .(2), let , ;,so, let , , .(3), let , ;,so, let , , .(4), let , ;,so, let , , .(5), let ,, ,, ,, ,,so, let , , .(6), let , ;,so, let , , .(7), ,so, let , , .(8), let , , .

So, the shortest path from to is , as shown in Figure 4.

3.2. Solving the Shortest Path Problem Using Floyd’s Algorithm

According to the graph, the adjacency matrix of the graph is as follows:Step 1: taking as the intermediary point and updating the matrix,Step 2: taking as the intermediary point and updating the matrix,Step 3: taking as the intermediary point and updating the matrix,Step 4: taking as the intermediary point and updating the matrix,Step 5: taking as the intermediary point and updating the matrix,Step 6: taking as the intermediary point and updating the matrix,Step 7: taking as the intermediary point and updating the matrix,

Thus, the shortest path from to is .

3.3. Solving the Shortest Path Problem Using the Probe Machine

The probe machine solves the shortest path problem as follows.

3.3.1. Data Library Construction

is the data pool of , and is a set of two long paths centered around . The two long paths are denoted as , and are different from each other. At the same time, because this problem is a directed graph, each path has one data fiber. The data library is as follows:

The data fibers are as follows:

3.3.2. Probe Library Construction

In order to avoid arbitrary data aggregation, if there is a probe between data and , one of the following two conditions need to be met:

At the same time, without loss of generality, because this is a directed graph, the direction of the probe needs to be same as the direction of the edge. The probe library established is as follows:

3.3.3. Probe Operation

The data controller and probe controller are used to extract the corresponding amount of data and probes from the data library and probe library and add them to the computing platform. After the probe operation, all possible solutions to the problem are obtained. Through the detector, the optimal solution is output as follows:

4. Results and Discussion

Although all three methods can solve the shortest path problem and obtain the same solution, there are some obvious differences in the solving process and computing efficiency. Dijkstra’s algorithm is based on the breadth-first search algorithm, which calculates the shortest path from the starting point to all other points. The calculation step of Dijkstra’s algorithm is to expand from the starting point to the layer by layer. Floyd’s algorithm is based on dynamic programming algorithm to find the shortest path between any two points in the graph. The first step of Floyd’s algorithm is to find the adjacency matrix of the graph, and the second step is to update the adjacency matrix by taking each point as the intermediate point. And, the solution process of the probe machine is mainly divided into two steps: the first step is to build the data library and the probe library, and the second step is to get all possible solutions through the probe operation. It can be seen from the solution process that each step of Dijkstra’s algorithm and the Floyd algorithm is part of solving the shortest path problem, but the real solution process of the probe machine is only probe operation. The purpose of the remaining steps of the probe machine is to prepare for the probe operation or to screen the solution calculated by the probe operation. This phenomenon should be attributed to the way of storing data. When the Dijkstra algorithm and the Floyd algorithm are used, the linear data placement mode and the sequential data processing mode are taken, so the solution process needs to be performed step by step; however, in the probe machine, a nonlinear data storage method is adopted, so the probe machine can simultaneously process multiple pairs of data. In other words, the probe machine is a completely parallel computational model, which is the biggest difference between the probe machine and other computing models.

Moreover, Dijkstra’s and Floyd’s algorithms are only used to deal with problems in graph theory. The probe machine is a completely parallel computing model, which can also get the true solution after one probe operation when solving NP-complete problems. Although we only use the probe machine to deal with the shortest path problem in this paper, we can see the powerful computing power of the probe machine through the solving process.

5. Conclusion

In urban traffic planning, the shortest path problem is a very basic problem. In this study, a probe machine was used to solve this problem. It can solve complex traffic problems after a single probe operation, which improves the efficiency and shortens the time required for solving traffic planning problems. When dealing with actual traffic problems, the speed at which a probe machine solves them is much higher than the speed of other models. A probe machine has high computing power; however, it is still a new concept. It has several shortcomings and needs to be improved further to handle specific problems. For example, when dealing with complex traffic problems, complex data and probe libraries need to be constructed. The process of constructing these libraries cannot be completely replaced by a probe machine or computer. The more complex the problem to be solved is, the more difficult it becomes to construct data library and probe library. In the future, we will continue to study the probe machine and attempt to improve it.

Data Availability

The data used to support the findings of this study are included within the article.

Conflicts of Interest

The authors declare that there are no conflicts of interest regarding the publication of this paper.

Acknowledgments

This work was supported by the National Natural Science Foundation of China (grant nos. 61602188 and 11975143), Shandong Provincial Natural Science Foundation (grant no. ZR2019QD018), and Scientific Research Foundation of Shandong University of Science and Technology for Recruited Talents (grant nos. 2017RCJJ068 and 2017RCJJ069).