地球信息科学理论方法

基于MapReduce的多机并行DP算法与实验分析

展开
  • 1. 武汉大学卫星导航技术研究中心, 武汉 430079;
    2. 武汉大学资源与环境科学学院, 武汉 430079;
    3. 武汉大学地理信息系统教育部重点实验室, 武汉 430079
张栋海(1989-),男,河北承德人,硕士研究生,研究方向为DEM地图制图自动综合。E-mail:zdh_zhangdonghai@163.com

收稿日期: 2012-09-13

  修回日期: 2012-12-17

  网络出版日期: 2013-02-25

基金资助

国家自然科学基金项目(41101448,51008138);中央高校自主科研项目(274737);中国博士后科学基金项目(2011M501230)。

Research on Multi-machine Parallel DP Algorithm Based on MapReduce

Expand
  • 1. Research Center of GNSS, Wuhan University, Wuhan 430079, China;
    2. School of Resource and Environmental Science, Wuhan University, Wuhan 430079, China;
    3. Key Laboratory of Geographic Information System, Ministry of Education, Wuhan University, Wuhan 430079, China

Received date: 2012-09-13

  Revised date: 2012-12-17

  Online published: 2013-02-25

摘要

随着网络地图不断发展,个性化网络地图也得到快速发展。个性化网络地图需要以矢量数据为数据基础,以满足人们对地图色彩、符号等个性化要求,所以需要实时、快速进行大量数据化简。本文以经典Douglas-Peucker算法作为曲线化简算法,利用开源云计算平台Hadoop建立多机协作的曲线并行化简服务框架,设计和实现了多机并行Douglas-Peucker算法,并在集群上进行实验分析,验证算法的效率和适用性。算法核心是设计数据的逻辑分片,利用MapReduce计算原理,将分片分配到集群中,实现并行运算。实验分别分为两个方面:(1)比较在固定阈值不同数据量情况下,传统DP算法与多机并行DP算法效率;(2)比较在相同数据量不同阈值情况下,传统DP算法与多机并行DP算法效率。实验表明,在大数据量和高复杂度情况下,多机并行DP算法的效率更高。

本文引用格式

张栋海, 黄丽娜, 刘晖, 唐健 . 基于MapReduce的多机并行DP算法与实验分析[J]. 地球信息科学学报, 2013 , 15(1) : 55 -60 . DOI: 10.3724/SP.J.1047.2013.00055

Abstract

Real time and rapid simplification of large-scale data, required by personalized WebGIS service which is based on vector data, becomes more and more important. The study was based on Douglas-Peucker, one of classical curve simplification algorithms, but in the view of its low performance, it can hardly simplify large-scale data in real time and rapidly. At the same time, the development of cloud-computing offers new storage technologies and computational methods for real time and rapid simplification of large-scale data. So this study made use of hadoop, one of the open source cloud computing platforms, to design and realize multi-machine parallel Douglas-Peucker algorithm. In the algorithm, we deigned the logic slices of data, and assigned the slices to the clusters by MapReduce computing model, achieved parallel simplification. In order to verify the efficiency of the algorithm, we designed the experiments and compared the efficiency of traditional DP algorithm and multi-machine parallel DP algorithm in tow aspects: 1) the same threshold and different amount of data; and 2) the fixed amount of data and different thresholds. The result of the experiments showed: the multi-machine parallel DP algorithm was more efficient than tradition DP algorithm for large-scale data and high-complexity computing. In this case, the data processing time was much longer than the data allocated in the inter-cluster and the transmission time, and every node was involved in a certain operation, improved the efficiency of operations. But for small scale data and low-complexity computing, the advantage of multi-machine parallel DP algorithm was non-obvious. Mainly due to a part of the nodes didn't participate in the operation, the computing potential of the cluster was not full play, while the data processing required time was very short, so the data allocation and transmission time impacted obviously. And, in order to meet the real time and rapid simplification of large-scale data, the multi-machine parallel DP algorithm should choose the appropriate simplification method for different amount of data and complexity computing in future.

参考文献

[1] 蔡晓桦.云计算及其在地理信息系统中的应用[J].江西测绘,2012(1):39-41.

[2] 郭庆胜.线状要素图形综合的渐进方法研究[J].武汉测绘科技大学学报,1998,23(1):52-56.

[3] Li Z L, Openshaw S. 基于客观综合自然规律的线状要素自动综合的算法[J].武测译文,1994(1):49-58.

[4] Buttenfield B P. Digital definitions of scale-dependent structure[J].Auto-Carto,1986,497-506.

[5] 艾廷华,郭仁忠,刘耀林.曲线弯曲深度层次结构的二叉树表达[J].测绘学报,2001(4): 343-348.

[6] 应申,李霖.基于约束点的曲线一致性化简[J].武汉大学学报·信息科学版,2003(4):488-491.

[7] 任海艳,陈飞翔.一种基于遗传算法的曲线化简方法[J].测绘通报,2012(10):32-35.

[8] Douglas D H, Peucker T K. Algorithms for the reduction of the number of points required to represent a digitized line or its character[J]. The Canadian Cartographer,1973,10(2):112-123.

[9] 毋河海.基于多叉树结构的曲线综合算法[J].武汉大学学报·信息科学版,2004(6):479-483.

[10] 张胜,朱才连,钟世明. Douglas-Peucker算法的改进及应用[J].武汉理工大学学报·交通运输与工程版,2005(5):671-674.

[11] 陈轶,彭认灿,郑义东,等.基于Douglas双侧多叉树的曲线综合算法研究[J].测绘学报,2010(3):310-315.

[12] 马劲松,沈婕,徐寿成.利用Douglas-Peucker并行算法在多核处理器上实时综合地图线要素[J].武汉大学学报·信息科学版,2011(12):1423-1426.

[13] Lin C, Snyder L. Principles of parallel programming[M]. Addison Wesley Longman,2008.

[14] Andrade D, Fraguela B, Brodman J, et al. Task-parallel versus data-parallel library-based programming in multicore systems [C]. Euromicro International Conference on Parallel, 2009.

[15] White T. Hadoop: The definitive huide (Second Edition)[M]. O'REILLY@, 2011.

[16] Lam C.Hadoop in action[M].Manning Publications, 2010.

[17] Dean J, Ghemawat S. MapReduce: Simplified data processing on large clusters [C]. OSDI, 2004.

[18] 王鹏.走近云计算[M].北京:人民邮电出版社,2009.

[19] Wu S T, Marquez M R G, A non-self-intersection Douglas-Peucker algorithm [C]. Proceedings of the Sixteenth Brazilian Symposium on Computer Graphics and Image Processing (SIBGRAPI), Brazil, 2003,60-66.

[20] 张传明,潘懋,吴焕萍,等.保持拓扑一致性的等高线化简算法研究[J].北京大学学报(自然科学版),2007(2):216-222.

文章导航

/