Journal of Frontiers of Computer Science and Technology ›› 2013, Vol. 7 ›› Issue (2): 160-168.DOI: 10.3778/j.issn.1673-9418.1206026

Previous Articles     Next Articles

Raster Generation of Voronoi Diagram under MapReduce

JIN Pengfei1, CAO Han1+, YU Jing1, CUI Yunfei2   

  1. 1. College of Computer Science, Shaanxi Normal University, Xi’an 710062, China
    2. Company of Postgraduate Management, Academy of Equipment Command and Technology, Beijing 101416, China
  • Online:2013-02-01 Published:2013-02-01

MapReduce模型下Voronoi图栅格生成算法

靳朋飞1,曹  菡1+,余  婧1,崔云飞2   

  1. 1. 陕西师范大学 计算机科学学院,西安 710062
    2. 装备指挥技术学院 研究生管理大队,北京 101416

Abstract: For the efficiency of the raster generation of Voronoi diagram on a planar point set composed of massive points, after its embarrassingly parallel abstract, this paper proposes the raster generation of Voronoi diagram based on the Euclidean distance. The algorithm is designed with three MapReduce Jobs. During the first MapReduce Job, the rasters are classified by the attached code. During the second MapReduce Job, the new data are classified according to its corresponding line number. During the third MapReduce Job, the partial Voronoi diagrams are generated in parallel, and they maintain a global order, then the final Voronoi diagram is generated by connecting the partial Voronoi diagrams. The experiments on different sizes of datasets on the Hadoop platform demonstrate that the algorithm under MapReduce shows good performance on speedup and scaleup.

Key words: Voronoi diagram, MapReduce, Hadoop platform, raster generation algorithm

摘要: 针对“海量”点组成的平面点集Voronoi图栅格生成算法的效率问题,对其进行易并行性抽象,提出了一种MapReduce模型下基于欧氏距离的Voronoi图栅格生成算法,该算法采用三个MapReduce Job来实现。在第一个MapReduce Job中,将栅格按照隶属代码进行归属分类。在第二个MapReduce Job中,将新数据按照其对应的行号进行归类。在第三个MapReduce Job中,并行生成全局有序的Voronoi图部分文件,并连接各个部分文件,生成最终的Voronoi图。在多个不同大小数据集上的实验结果表明,这种MapReduce模型下的算法部署在Hadoop集群上运行具有较好的加速比和扩展性。

关键词: Voronoi图, MapReduce, Hadoop平台, 栅格生成算法