Computer Engineering and Applications ›› 2016, Vol. 52 ›› Issue (20): 86-91.

Previous Articles     Next Articles

Parallel frequence pattern mining algorithm based on Spark

CAO Bo1, NI Jiancheng2, LI Linlin1, YU Pingping1, YAO Binxiu1   

  1. 1.College of Information Science and Engineering, Qufu Normal University, Rizhao, Shandong 276800, China
    2.College of Software, Qufu Normal University, Qufu, Shandong 273100, China
  • Online:2016-10-15 Published:2016-10-14

基于Spark的并行频繁模式挖掘算法

曹  博1,倪建成2,李淋淋1,于苹苹1,姚彬修1   

  1. 1.曲阜师范大学 信息科学与工程学院,山东 日照 276800
    2.曲阜师范大学 软件学院,山东 曲阜 273100

Abstract: Under the environment of big data, the frequent pattern mining algorithm Apriori has some defects, including presetting minimum threshold and high time complexity when in data processing process. Therefore, the multistage mining strategy is adopted to realize the parallel frequent pattern mining algorithm(PTFP-Apriori). Firstly, the preprocessed data is stored in a pattern tree, and the optimal threshold is got by the most frequent [K] model. Subsequently, according to the threshold, the frequent pattern that can’t grow up to be frequent patterns could be removed to reduce the computing scale. The RDD is used to accomplish the task of itemsets support counting and candidate itemsets generating. The experimental results show that the algorithm has higher effectivity and scalability than the traditional algorithm.

Key words: big data, frequent pattern mining, Top-k, pattern tree, parallel computing

摘要: 在大数据环境下Apriori频繁模式挖掘算法在数据处理过程具有预先设定最小阈值、时间复杂度高等缺陷, 为此采用多阶段挖掘策略实现并行化频繁模式挖掘算法PTFP-Apriori。首先将预处理数据以模式树的形式存储,通过最为频繁的[k]个模式得到最优阈值。然后根据该值删除预期不能成长为频繁的模式以降低计算规模,并利用弹性分布式数据集RDD完成统计项集支持度计数、候选项集生成的工作。实验分析表明相比于传统的频繁模式挖掘算法,该算法具有更高的效率以及可扩展性。

关键词: 大数据, 频繁模式挖掘, Top-k, 模式树, 并行计算