首页 | 官方网站   微博 | 高级检索  
     

基于Spark的FP_Growth算法的并行与优化
引用本文:石陆魁,张 欣,师胜利.基于Spark的FP_Growth算法的并行与优化[J].计算机工程与应用,2018,54(13):52-58.
作者姓名:石陆魁  张 欣  师胜利
作者单位:1.河北工业大学 计算机科学与软件学院,天津 300401 2.河北师范大学 信息技术学院,石家庄 050024
摘    要:PFP_Growth算法是FP_Growth算法在Hadoop平台上基于MapReduce的并行化,该算法在分组过程中没有考虑负载均衡问题,导致各个节点完成任务时间不一致,甚至相差很大,从而降低了算法的执行效率。为了提高算法的执行效率,提出了一种基于Spark的RPFP算法,该算法对PFP_Growth算法在均衡分组和降低时间复杂度两方面进行优化,通过把负载大的项放在负载总和最小的组里面实现均衡分组,通过在链头表结构中加入一张哈希表达到快速访问元素地址的目的,从而降低时间复杂度。实验结果表明,RPFP通过优化PFP算法,有效提高了频繁项集的挖掘效率。

关 键 词:FP_Growth算法  频繁项集挖掘  负载均衡  链头表结构  Spark  

Parallelization and optimization of FP_Growth algorithm based on Spark
SHI Lukui,ZHANG Xin,SHI Shengli.Parallelization and optimization of FP_Growth algorithm based on Spark[J].Computer Engineering and Applications,2018,54(13):52-58.
Authors:SHI Lukui  ZHANG Xin  SHI Shengli
Affiliation:1. School of Computer Science and Software, Hebei University of Technology, Tianjin 300401, China 2. School of Information Technology, Hebei Normal University, Shijiazhuang 050024, China
Abstract:PFP_Growth algorithm is the parallelization of FP_Growth algorithm on the Hadoop platform based on MapReduce. The algorithm does not consider the balance of the load while grouping the transaction set, which causes the time inconsistency of different nodes to accomplish the tasks and even a bigger difference. Thus, it reduces the efficiency of the algorithm. To improve the efficiency of the algorithm, this paper proposes a Spark-based RPFP algorithm, which optimizes PFP_Growth algorithm through balancing the groups and reducing the time complexity. To balance the group, the large load is placed into the group with the smallest total load. The address of the element is fast accessed by adding a Hash table to the head table, which reduces the time complexity. Experimental results show that RPFP algorithm effectively improves the mining efficiency of the frequent itemsets.
Keywords:FP_Growth algorithm  frequent itemset mining  load balance  head table  Spark  
点击此处可从《计算机工程与应用》浏览原始摘要信息
点击此处可从《计算机工程与应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号