Map Navigation System Based On Optimal Dijkstra Algorithm
Map Navigation System Based On Optimal Dijkstra Algorithm
Abstract: In the intelligent transportation system, the There are also inevitable problems in the existing
calculation of the shortest path and the best path is an algorithm in the study. If the algorithm is directly
important link of the vehicle navigation function. Due to applied to calculating the optimal path of urban road
more and more real-time information to participate in network, it requires a large amount of calculation, and
the calculation, the calculation requires high efficiency cannot meet the requirements of dynamic searching.
for the algorithm. This paper studied navigation system Therefore, this paper solved the Dijkstra algorithm
based on vehicle terminal, designed the overall optimization problem, and gave obvious performance
framework of the system and gave the function of each improvement in dealing with complex dynamic changes
module. The system can provide optimal service path for of road network. In addition, this paper studied and
the user's choice and needs. The optimization of the designed the intelligent vehicle navigation system based
design and application of Dijkstra algorithm saved the on improved Dijkstra algorithm, met the needs of the
intermediate result storage space in the process of user travel map management and updating,
system operation, improved the accuracy of the supplemented the current traffic information query,
navigation path, reduced the complexity of the Dijkstra query destination, the shortest path planning and
algorithm and greatly improved the efficiency of the multimedia playback, and gave travelers real
system. convemence.
Keywords: Optimal path; Dijkstra Alogorithm; Map
navigation; Vehicle navigation 2 Design and implementation of vehicle
navigation system
1 Introduction
At present, the problem of heavy traffic is the most
Intelligent transportation system is a kind of effective pressing issue of the world's major cities. In order to
way to solve the traffic supply and demand contradiction solve the problem of heavy traffic, improve the
in modem society. V ehicle navigation system as an efficiency of transportation and reduce transportation
important part of intelligent transportation system, has a costs, intelligent transportation system arises at the
broad application prospect. The backward technology historic moment. Intelligent traffic system has been
and the ability of independent research and development widely applied, and vehicle navigation system is the
of china lead to vehicle navigation products "good" but current urgent demand.
not "cheap". 2.1 Overall design of the vehicle navigation
The vehicle navigation system on the market at present system
use face information transmission, low level of
Vehicle navigation system is a computer system based
information sharing, which can't satisfy the user's
on geographic network in digital map, uses prediction
personalized, comprehensive requirements. By using
positioning, global positioning system (GPS) technology
intelligent vehicle navigation, users can get itinerary and
to figure out the best route, provides traveler real-time or
the surrounding information more convenient, enjoy the
dynamic navigation information, and makes timely
convenient and efficient travel service. The vehicle
guide in the process of travelers' driving.
navigation system applies the technology of automatic
positioning, computer technology and wireless Travel intelligent vehicle navigation system proposed in
communication technique, effectively solves the traffic this paper is according to user's personalized choices,
problems by using all kinds of high and new technology provides an optimal, practical road planning through
The mainstream vehicle navigation usually uses the improved Dijkstra algorithm and at the same time
Dijkstra algorithm for point path planning. friendly gives feedback to the user through the system.
Scholars have also carried out the thorough study of the According to the functional requirement of the vehicle
optimization of Dijkstra algorithm, such as zhang Yan navigation system, the system is divided into the
from Wuhan University studied the characteristics of following hierarchical structure, as is shown in Figure 1.
road network based on GIS technology, put forward his Intelligent vehicle navigation system is divided into two
own optimal path search algorithm, significantly modules: man-machine interface module and core
increased in the process of the optimal path search. application module.
Zhang Fuhao of The China Academy of Surveying and
Mapping Science proposed adjacent point optimization 2.2 Human-computer interface module
algorithm. In this module, the system provides the function of the
978-1-4799-4719-5114/$31.00 2014 IEEE
559
Proceedings ojCCIS2014
r- Destination Search
r- Route Planning
-1 r-
HUman computer
Information Query
interface module
Multimedia Play
f--
I
Intelligent vehicle
navigation system
Find the beginning
and end of the
corresponding
,--- Map Matching
picture ement
core appllcation
module
f- Map Upgrade
f- Map Download
Figure 2 Flow chart of the car navigation
f- Map Display
Map Manage
the best route from starting point to that point in the
node, the rest of the nodes is T. the core process of the
Figure 1 Overall architecture of vehicle navigation system
algorithm is to transform the qualifying node T to node p.
2.3 Vehicle navigation system module In the figure of N nodes, a two-dimensional array W [N]
[N] is used to describe the best path of node I to node j.
The system is based on Eclipse development tools and If there is an edge between node I to node j, then Wei, j)
electronic maps API. The following details introduce the is the weight of the edge, otherwise, the value of W(i,j)
realization of the function of path planning process. is infinity. Specific processes are as shown below.
Vehicle path planning needs to load electronic map,
Set all K no des to T nodes; set
provides the basis for the topology relationship AL. The WiKl iKl as i ni 1. i al value'
system will automatically join electronic map of each
layer in data sets, to look up these abrupt objects through Set P node as st ar t ing no de ; r eset
weight of" P node t o 0
the finding and searching method of data sets. Based on
topological relation, the distance of primitive objects to For each node
node order, the traffic path is displayed on the electronic can hecome P no de =::>-----'
560
Proceedings ojCCIS2014
(1) The traditional algorithm uses adjacency matrix to heap, each time adds node with the minimum cost. The
describe the network nodes and the characteristics of the complexity of operation deletemin is O(logn). Then
arc, leading to data redundancy and waste of time. adjust the distances of other vertex to the tree based on
(2) The algorithm complexity is too high, it is not the added node, mainly use operation decresekey(log n).
suitable for large-scale network shortest path search. Operation decrease costs O(mlogn), because operation
(3) In the real-time way, the traffic impedance needs to decrese is up to m times. Operation deletemin executes n
be considered, in order to improve the accuracy of times, it takes O(nlogn) time. They take a total of
calculation. O((m+n)logn) time. The complexity of its initial part
(4) The traditional algorithm uses greedy strategy to will not be more than it, so the complexity of algorithm
keep local optimum at each stage, and from the global is O((m+n)logn).
perspective, the overall result may not be optimal.
(3) The traffic impedance analysis
3.3 Improved algorithm
Traffic impedance is the resistance value of the
(1) Use adjacency table to store road network topology transportation. Time and distance are proportional to the
relationship while vehicles are driven without traffic
Because in the Dijkstra algorithm, the node topology block, but in the actual traffic roads, vehicles can not be
operation is to search adjacent nodes according to the unimpeded. So time and distance can not simply use
topology structure of road network, using adjacency proportional function, the relationship among its running
table can reduce the number of the loop. Compared with time and distance and flow is a kind of load function.
the traditional adjacency matrix, the efficiency is raised. The relationship function among unit length, time and
In this structure, each node directly records its neighbor traffic flow are as follows:
nodes and the weight of the neighboring nodes, therefore,
I
when doing this cycle, the cycle number equals to the t =-
f(q) (1)
v
number of its neighboring nodes (as the out degree d).
For the entire algorithm, the average cycle time (as d) of t: The time required to for the unit road.
this cycle equals to the out degrees of map. To do so, we
can reduce the times of inner loop 1 from N to d. As for v: The speed of vehicles on the road accessibility.
system GIS, N is far greater than d, therefore, the cycle q: The traffic on the unit road.
time will be efficiently shortened and the adjacency list
reduces much redundant space. 1: Length of the road.
(2) Use binary heap as a priority queue For the expression of road traffic impedance function,
BPR function is the most widely used function, the
The key in algorithm Dijkstra is to find minimum cost function expressions are known as:
code in each loop. Traditional method uses traverse. But
f3
it will be inefficient when encountering a large amount
of data. The most effective way isto arrange nodes T=t[l+a(q) 1 (2)
561
Proceedings ojCCIS2014
562
Proceedings ojCCIS2014
Assume that the source node is nl, destination is nlO, if Figure 7 Network child diagram
uses the Dijkstra algorithm directly can obtain the
shortest path of n1-n2-n4-n6-n10, it shows the (3)The performance test
traditional Dijkstra algorithm is feasible, but the path
searching process needs to search for 108 times. With Table I shows the experimental results in different actual
the improved Dijkstra algorithm, according to the row load and in different time.
molecular graph method, we connect the straight line
between nl and nlO, put n4 and n5 as breakpoints. So Table I Test of system load stress
the network diagram is divided into two child figure, as
shown in figure 6 and 7. Then calculate on two child Training sample Peak request Success rate of
figure respectively with the algorithm of Dijstra, finally number rate(%) peak operation(%)
get the shortest path for n1-n2-n4-n6-n10, but the whole of each type
process are only 40 times. Experimental analysis show 15 100 100
that the path search number of improved Dijkstra 60 98 98
decreased significantly, thus the improved algorithm of 150 95 94
Dijkstra improved the efficiency of processing and speed 500 85 82
of system operation.
Table 2 shows the test results of GIS intelligent
navigation system.
563
Proceedings ojCCIS2014
we need to increase the number of nodes. In most cases, 20II VOL.38( l 1 ) 35-37
the performance of the improved algorithm is better than [2] JIANG Fenghui, LI Shujun, JIANG Fengjiao, GAO
market, and has various optimization and improvement algorithm[J]. Joumal of Chengdu University(Natural
Science Edition). 201O.VOL.26(4) 311-313
to the traditional shortest path algorithm Dijkstra, greatly
[5] Xu Wei. The research and application on the key
improving the real-time and accuracy of the navigation
technologies of energy-saving system and intelligent
map. We will do further refinement on the basis of this traffic system based on internet of things[D]. Nanjing
paper, increase user habits personalized map navigation, University of Posts and Telecommunications. 2013.4
receive information based on user feedback, and [6] Wu Ping. Intelligent public transport scheduling research
Improve navigation map information distribution based on genetic algorithm[D]. Xi'an University of
system. Electronic Science and Technology. 2012.3
[7] Gao Ruijie. Design and implementation of intelligent
Acknowledgements navigation system based on GIS[D]. University of
electronic science and technology ofChina. 2013.5
This work is supported by the National Key Technology
[8] Cui Yuyong. Research on moving object detection and
Research and Development Program of the Ministry of Science
tracking for intelligent traffic monitoring[D]. Huazhong
and Technology ofChina(2013BAHI3FOO,2013BAHI3F03).
university of science and technology. 2012.5
[9] Lu Dandan. Research and implementation on data
References
mining technology of community smart service
[I] YAN Baozhong , LIU Jun, ZHANG Bo. Application and oriented[D]. Xi'an University of Electronic Science and
simulation of improved Dijkstra algorithm in a vehicle Technology. 2013.1
navigation system[J]. Applied Science and Technology.
564