Utilizing Restricted Direction Strategy and Binary Heap Technology to Optimize Dijkstra Algorithm in WebGIS

Similar documents
Application of GIS best path algorithm in Harbin Roads. Sui Min, *Wang Wei-fang

The Analysis and Research of IPTV Set-top Box System. Fangyan Bai 1, Qi Sun 2

The Analysis of the Loss Rate of Information Packet of Double Queue Single Server in Bi-directional Cable TV Network

Research on Full-text Retrieval based on Lucene in Enterprise Content Management System Lixin Xu 1, a, XiaoLin Fu 2, b, Chunhua Zhang 1, c

Design and Implementation of unified Identity Authentication System Based on LDAP in Digital Campus

Bijou Detouring - A Dynamic Node Level Routing Algorithm

Storage Model of Graph Based on Variable Collection

The RTP Encapsulation based on Frame Type Method for AVS Video

Serial Communication Based on LabVIEW for the Development of an ECG Monitor

Keywords: truck frame, parametric modeling, cross-section.

The Design of Distributed File System Based on HDFS Yannan Wang 1, a, Shudong Zhang 2, b, Hui Liu 3, c

Research on Design and Application of Computer Database Quality Evaluation Model

Research Of Data Model In Engineering Flight Simulation Platform Based On Meta-Data Liu Jinxin 1,a, Xu Hong 1,b, Shen Weiqun 2,c

Accuracy of Matching between Probe-Vehicle and GIS Map

Research on the Application of Digital Images Based on the Computer Graphics. Jing Li 1, Bin Hu 2

Construction of the Library Management System Based on Data Warehouse and OLAP Maoli Xu 1, a, Xiuying Li 2,b

FACET SHIFT ALGORITHM BASED ON MINIMAL DISTANCE IN SIMPLIFICATION OF BUILDINGS WITH PARALLEL STRUCTURE

Algorithm Analysis Graph algorithm. Chung-Ang University, Jaesung Lee

Application of Three-dimensional Visualization Technology in Real Estate Management Jian Cui 1,a, Jiju Ma 2,b, Dongling Ma 1, c and Nana Yang 3,d

Solving the Shortest Path Problem in Vehicle Navigation System by Ant Colony Algorithm

Development of a Rapid Design System for Aerial Work Truck Subframe with UG Secondary Development Framework

A Compatible Public Service Platform for Multi-Electronic Certification Authority

Research of 3D parametric design system of worm drive based on Pro/E. Hongbin Niu a, Xiaohua Li b

Study on 3D Geological Model of Highway Tunnels Modeling Method

3 The standard grid. N ode(0.0001,0.0004) Longitude

Shortest Paths. CSE 373 Data Structures Lecture 21

Simulation Technology of Light Effect Based on Catia and Workbench Software HongXia Hu

Improvement of SURF Feature Image Registration Algorithm Based on Cluster Analysis

Constructing an University Scientific Research Management Information System of NET Platform Jianhua Xie 1, a, Jian-hua Xiao 2, b

BioTechnology. An Indian Journal FULL PAPER. Trade Science Inc. Research on motion tracking and detection of computer vision ABSTRACT KEYWORDS

Research Institute of Uranium Geology,Beijing , China a

CS711008Z Algorithm Design and Analysis

Study on One Map Organizational Model for Land Resources Data Used in Supervision and Service

The Design of Electronic Color Screen Based on Proteus Visual Designer Ting-Yu HOU 1,a, Hao LIU 2,b,*

, ,China. Keywords: CAN BUS,Environmental Factors,Data Collection,Roll Call.

A Path Planning Method for Substation Laser Inspection Robot Based on Improved Ant Colony Algorithm

The principle of a fulltext searching instrument and its application research Wen Ju Gao 1, a, Yue Ou Ren 2, b and Qiu Yan Li 3,c

An Investigation of Dijkstra and Floyd Algorithms in National City Traffic Advisory Procedures

Improved DDA Algorithm and FPGA Implementation Yi-Xuan WANG a, Quan-Gang WEN b, He YIN c, Zhi-Gang HAO, Xin-Zheng DONG

Application Research of Wavelet Fusion Algorithm in Electrical Capacitance Tomography

Radar Data Processing Software System Design Based on COM Technology Zhongzhi Li

A method of three-dimensional subdivision of arbitrary polyhedron by. using pyramids

Road Network Traffic Congestion Evaluation Simulation Model based on Complex Network Chao Luo

Research Article. Three-dimensional modeling of simulation scene in campus navigation system

An Extended Shortest Path Problem with Switch Cost Between Arcs

Three Fastest Shortest Path Algorithms on Real Road Networks: Data Structures and Procedures

Design and Implementation of LED Display Screen Controller based on STM32 and FPGA Chi Zhang 1,a, Xiaoguang Wu 1,b and Chengjun Zhang 1,c

A SOCIAL NETWORK ANALYSIS APPROACH TO ANALYZE ROAD NETWORKS INTRODUCTION

Research on Power Quality Monitoring and Analyzing System Based on Embedded Technology

The Research of Collision Detection Algorithm Based on Separating axis Theorem

Model the P2P Attack in Computer Networks

CS711008Z Algorithm Design and Analysis

Approximation Method to Route Generation in Public Transportation Network

THE ADJACENT VEHICLES QUERY ALGORITHM OF MICROSCOPIC TRAFFIC SIMULATION

The Application of Floyd Algorithm for Returning Path Algorithm with

A New Evaluation Method of Node Importance in Directed Weighted Complex Networks

A Heuristic Bidirectional Hierarchical Path Planning Algorithm Based on Hierarchical Partitioning

Algorithm Design (8) Graph Algorithms 1/2

PBW 654 Applied Statistics - I Urban Operations Research. Unit 3. Network Modelling

A Test Sequence Generation Method Based on Dependencies and Slices Jin-peng MO *, Jun-yi LI and Jian-wen HUANG

Shape Optimization Design of Gravity Buttress of Arch Dam Based on Asynchronous Particle Swarm Optimization Method. Lei Xu

Math/Stat 2300 Modeling using Graph Theory (March 23/25) from text A First Course in Mathematical Modeling, Giordano, Fox, Horton, Weir, 2009.

Design and Implementation of CNC Operator Panel Control Functions Based on CPLD. Huaqun Zhan, Bin Xu

Three dimensional highway real-time visual system design and application

AN WIRELESS COLLECTION AND MONITORING SYSTEM DESIGN BASED ON ARDUINO. Lu Shaokun 1,e*

Study on the Quantitative Vulnerability Model of Information System based on Mathematical Modeling Techniques. Yunzhi Li

The Design of CAN Bus Communication System Based on MCP2515 and S3C2440 Jinmei Liu, Junhong Wang, Donghui Sun

Research on the Wood Cell Contour Extraction Method Based on Image Texture and Gray-scale Information.

Deadlock Avoidance Based on Graph Theory

STUDY OF THE DEVELOPMENT OF THE STRUCTURE OF THE NETWORK OF SOFIA SUBWAY

A New Quick Algorithm for Finding the Minimal Spanning Tree

Realization of Automatic Keystone Correction for Smart mini Projector Projection Screen

Design of Liquid Level Control System Based on Simulink and PLC

Study on Gear Chamfering Method based on Vision Measurement

Dynamic Balance Design of the Rotating Arc Sensor Based on PSO Algorithm

AUTOMATIC DIVISION OF CENSUS DISTRICT BASED ON CONSTRAINT DELAUNAY TRIANGULATION

Comparison of Dijkstra's Algorithm with other proposed algorithms

Design and Implementation of Archives Query System Based on B/S Structure Lianfeng Zhao

Open Access Research on the Prediction Model of Material Cost Based on Data Mining

An Adaptive Histogram Equalization Algorithm on the Image Gray Level Mapping *

Half-edge Collapse Simplification Algorithm Based on Angle Feature

Department of Civil and Environmental Engineering, University of California, Irivne, CA Corresponding author

Description of The Algorithm

A Genetic Approach for Solving Minimum Routing Cost Spanning Tree Problem

MST & Shortest Path -Prim s -Djikstra s

Reliable Mobile IP Multicast Based on Hierarchical Local Registration

Customizing dynamic libraries of Qt based on the embedded Linux Li Yang 1,a, Wang Yunliang 2,b

The Application of Programmable Controller to Chip Design. Shihong Lan 1, Jian Zhang 2

M. Yamuna* et al. International Journal of Pharmacy & Technology

A Training Simulator for PD Detection Personnel

Sensor Modeling Realization Based on Fruit Fly Optimization Algorithm

Keywords: Vehicle, Accident, Reconstruction, Deformation, Finite element method

Research on Improvement of Structure Optimization of Cross-type BOM and Related Traversal Algorithm

DRA AUDIO CODING STANDARD

The Internet of Things for Petroleum Transportation

Path Planning with Motion Optimization for Car Body-In-White Industrial Robot Applications

Multi-Source Spatial Data Distribution Model and System Implementation

Applied Mechanics and Materials Vol

CSC2100-Data Structures

Marine fuel boiler system design platform. Hou Ying-ying

Transcription:

Key Engineering Materials Online: 2009-10-08 ISSN: 1662-9795, Vols. 419-420, pp 557-560 doi:10.4028/www.scientific.net/kem.419-420.557 2010 Trans Tech Publications, Switzerland Utilizing Restricted Direction Strategy and Binary Heap Technology to Optimize Dijkstra Algorithm in WebGIS Li Rui Shenzhen Institute of Information Technology, Shenzhen 518029, China lir@sziit.com.cn Keywords: WebGIS; restricted direction strategy; shortest path; binary heap; Dijkstra algorithm Abstract. Shortest path is the core issue in application of WebGIS. Improving the efficiency of the algorithm is an urgent requirement to be resolved at present. By the lossy algorithm analyzing, which is the current research focus of the shortest path algorithm to optimize, utilizing adjacency table of storage structures, restricted direction strategy and binary heap technology to optimize the algorithm, thereby reduce the scale of algorithm to improve the operating efficiency of algorithm. This scheme has been applied in the simulation of the data downloaded from the Guangdong Provincial Highway Network Information System and satisfactory results have been obtained. Introduction With the popularization of Internet, Web Geography Information System (WebGIS) is being widely applied day by day due to its powerful function. As one of the most main functions of WebGIS, network analysis plays an important role on such aspects as traffic & transportation, program on urban pipeline network and management on land resource. The most basic issue in network analysis is the Shortest Path. As the basis for selecting the optimum in many fields, the Shortest Path has an important status in traffic network analysis system. The research of it has important theoretical value and application value. At present, there are many researches involving in the algorithms of searching the Shortest Path based on WebGIS. Among these researches, the Dijkstra s algorithm is one of the algorithms that are most suitable for searching the Shortest Path between two nodes in topological network. On the basis of the algorithm thought, people deduced several dozens of different optimized algorithms. The algorithms with excellent effect include DKA (the Dijkstra s algorithm implemented with approximate buckets), TQQ (graph growth with two queues), DKD (the Dijkstra s algorithm implemented with double buckets) [1-3], etc. The optimized algorithm on the Shortest Path raised in the paper is a hotspot of research at present, network feature is restricted by restricted direction search strategy. This algorithm lays emphasis on increasing time efficiency mostly. On the basis of the adjacency list storage structure, restricted direction strategy and binary heap technology are applied to optimize Dijkstra algorithm, in addition, the optimized algorithm is simulated by test, the two indices including memory and speed all attain satisfactory effects. Optimized path of Dijkstra algorithm Optimizing storage structure by applying adjacency list. For the data in road network, if the shortest path needs to be calculated, these data must be first abstracted into some data structure as per the relation between node and side, this is called establishing the topological relation of network in GIS. Because the network topology relation is generally abstracted into graph in the field of mathematics and computer, its basis is the storage representation of graph. The comparison of several storage ways on the merits and demerits are shown in Table 1 [4]. All rights reserved. No part of contents of this paper may be reproduced or transmitted in any form or by any means without the written permission of Trans Tech Publications, www.ttp.net. (ID: 130.203.136.75, Pennsylvania State University, University Park, USA-06/03/16,07:41:17)

558 Advanced Design and Manufacture II Name matrix list Orthogonal list multilist Table 1 Comparison of several storage ways Realization method Merits Demerits Easily judging the relation Two-dimens Occupying large between both, easily ional array space finding vertex degree Saving space, easily Uneasily judging Linked list attaining the out-degree of the relation vertex between two points Linked list Small required space, With complex easily finding the in & out structure degree of vertex Linked list Saving space, easily With complex judging the relation structure between two points Time complexity O(n 2 + m n) or (m+n) or O( m+n) or O( m+n) According to the comparison on the above several storage structures, the algorithm applies the storage structure of adjacency list. By applying the structure, space may be saved, the out-degree of vertex may be attained, in addition, much time used for structural processing may be saved. Optimizing search scope by applying restricted direction strategy. According to Dijkstra algorithm and the characters of the road network itself, on the basis of analyzing the merits and localization of the Shortest Path algorithm in Refs. [5], [6] and [7], this paper uses restricted direction search algorithm. The core thought of the algorithm: Under the condition that the researched network may be approximately regarded as a plane network, taking the sum of the shortest path between the temporarily marked node and the source point plus the straight line distance between the temporarily marked node and the target node as one attribute value of the temporarily marked node, and this attribute value will be taken as the basis for selecting permanently marked node from the set of temporarily marked nodes, i.e. the method for selecting the temporary node with the smallest attribute value as the permanently marked node. As shown in Fig.1, R 1 and R n are temporary nodes, S 1, S n, C 1 and C n are respectively the straight line distances from the corresponding temporary nodes to source point and terminus, the linking line between R 1 and R n is D. Judgment principle of the original Dijkstra algorithm: if S 1 >S n, R n will be taken as the permanent marking node, subsequently, R n is taken as the source point for the next round of search; inversely, R 1 will be taken as the permanent marking node, and then R 1 is taken as the source point for the next round of search. Judgment method of Dijkstra search algorithm with restricted direction: if S 1 +C 1 >S n +C n, R n will be taken as the permanent marking node; if S 1 +C 1 <S n +C n, R 1 will be taken as the permanent marking node. Fig.1 The Dijkstra algorithm of restricted direction optimized strategy By comparison, it may be seen that the search scope in Dijkstra search algorithm with restricted direction is smaller than that in the original Dijkstra algorithm, because the search process of the original Dijkstra algorithm is similar to a series of concentric circles with source point as circle center; the Dijkstra search process with restricted direction is similar to a series of concentric circle

Key Engineering Materials Vols. 419-420 559 with source and terminus as focus. According to the principle of algorithm with restricted direction, its search process apparently tends to the terminus. Therefore, the efficiency of algorithm has been apparently increased. Optimizing priority queue by applying binary heap technology. It may be seen from the above algorithm that the core step in the process of realizing Dijkstra algorithm with restricted direction is to select a temporary node with the smallest attribute value. This is a process of cyclic comparison. In order to solve the problem, the most effective method is to conduct stack sequencing for temporary marking nodes, take the shortest path of node as the keyword of stack sequencing, so to constitute priority queue with incremental side weighted value, thus the point that meets requirements may be attained in each cycle, the performing efficiency of algorithm may be greatly increased. In this paper, binary heap technology is applied for the realization of priority queue. The method includes the following four operations:1sift(h):adjusting orderless sequence h into binary heap. 2Insert(x,h): inserting the element x into the stack h. 3Min(h): taking the element with the smallest keyword from stack, calling Sift(h) and adjusting it as a binary heap. 4Decrease(h,x,value): replacing the value of element x in the stack with smaller value. Realization of optimized algorithm According to the above thought, the realization of optimizing Dijkstra algorithm is shown as follows: Supposed that the starting point is S, the terminus is E and the binary heap is OPEN, all nodes are divided into three kinds of states, i.e. unmarked node(on), temporary node(fn) and marked node(in). Each node has several symbols: D(J), D 1 (J), D 2 (J), P(J), in which, D(J) is an approximate estimate of the optimum path P from S to E and via node J; D 1 (J) is the shortest path from S to J; D 2 (J) is an enlightenment function, i.e. the straight line distance from J to E; P(J) is the tending pointer of J, it points to the previous point of J in the shortest path from S to J. The concrete calculation step of the algorithm for finding the optimum path from S to E is shown as follows: STEP1: Initializing. The starting point S is set as follows: 1 D(S)=0, D 1 (S)=0, D 2 (S)=d se, P(S) is hollow; 2 Marking the starting point S, taking K=S, as IN state; 3 The initial binary heap OPEN is hollow. 4 All other nodes are set to ON. STEP2: Judging the states of all adjacent nodes J of K. If the state of J is ON, then D 1 (J)=D 1 (K)+d kj, D(J)=D 1 (J)+D 2 (J), P(J)=K. Marking the state of node J as FN, performing operation Insert(J,OPEN), where d kj is the straight line linking the distance from K to J; if the state of J is FN and D 1 (J)>D 1 (K)+d kj, D 1 (J)=D 1 (K)+d kj, then D(J)=D 1 (J)+D 2 (J), decrease(open,j,d 1 (K)+d kj ). For the tending pointer of node J, P(J)=K. STEP3: Selecting the next point. Taking node I with the smallest D(J) value in the stack, I =Min (OPEN), the point I is selected as one point in the shortest path and set to IN state. STEP4: If I=E, then shifting to STEP5, traversing the pointer P from E, until the starting point S, then the shortest path may be attained; or else, taking K=I, shirting to STEP2 for continuing. STEP5: End of algorithm. Test simulation analysis and result Test simulation. Recurring to the traffic road network among the main cities in Guangdong, this algorithm and the traditional Dijkstra algorithm were simulated. Different road data were put in the

560 Advanced Design and Manufacture II same computer to simulate and find the distance between the same starting point and terminus for many times. Table 2 shows the contrast between the operation time of two algorithm. Table 2 Running result of two algorithms Road mark Quantity of Quantity of arc Present Dijkstra(S) nodes sections algorithm(s) SMALRODE1 518 1624 1.24 1.09 MIDRODE2 945 2913 2.86 1.17 LONRODE3 1814 4603 3.52 1.36 Test conclusion. It may be seen from the data in Table 2 that two algorithms have similar operation time and the efficiency difference is not apparent when the quantity of nodes in the network is little. However, with the increase of quantity of nodes in the network, in theory, Dijkstra algorithm will traverse all nodes in the network, therefore, the efficiency will decrease quickly, while for the algorithm raised in the paper, due to the addition of restricted direction strategy and the optimized information of binary heap technology, the search direction will extend toward target node. In the road network figure with a lot of nodes, the quantity of search nodes may be reduced and the efficiency of search may be increased. Conclusions The algorithm on the optimization of the shortest path discussed in this paper has such merits as little memory occupation of storage structure, simple realization of algorithm and large speed, it may be effectively applied for searching the shortest path of road network structure which approximates to a plane network, it is a breakthrough in the application of the algorithm on the shortest path in WebGIS field. Of course, the realization on the function of searching the shortest path in GIS still needs further optimization according to the concrete features of different application fields. On the basis of unifying time complexity, the operational efficiency of algorithm shall be increased as far as possible, so to attain the search function module with the best comprehensive performance, satisfy the performance of system at maximum degree. This will have important actual sense. References [1] Chen Hong-ying, Yang Yi-min and Mao Ge-fei: Computer Engineering and Application Vol. 3 (2005),p. 208-211 [2] Zhan F B: Journal of Geographic Information and Decision Analysis Vol. 1 (1997), p. 69-82 [3] Yan Wei-min, Wu Wei-min: Data Structure(Tsinghua University Press, Beijing 2001). [4] Si Lian-fa, Wang Wen-jing: Bulletin of Surveying and Mapping Vol. 8 (2005), p. 15-18 [5] Li Cong-xin, Meng Xiang-gang and Zhang Ying: Journal of Shaanxi Institute of Technology Vol. 2 (2005), p. 18-20 [6] Zhu Jing: Computer and Modernization Vol. 9 (2005), p. 19-24 [7] Hu Shu-wei, Zhang Xiu-ru and Zhao Yang: Computer Technology and Development Vol. 16 (2006), p. 49-54

Advanced Design and Manufacture II 10.4028/www.scientific.net/KEM.419-420 Utilizing Restricted Direction Strategy and Binary Heap Technology to Optimize Dijkstra Algorithm in WebGIS 10.4028/www.scientific.net/KEM.419-420.557