一种基于云计算MapReduce框架的关联规则Apriori算法
原站著录信息
摘要
一种基于云计算MapReduce框架的关联规则Apriori算法 摘 要 针对传统的Apriori算法的不足,将云计算MapReduce框架进行了适当改进并帮写论文在此基础上编写了Apriori算法,以解决Apriori算法扩展性差的弱点。实验证明,该算法能有效提高Apriori算法的性能。 关键词 MapReduce;数据挖掘:关联规则;Apriori算法 Research on An apriori-based algorithm of Association Rules with MapReduce of s…
一种基于云计算MapReduce框架的关联规则Apriori算法
摘 要 针对传统的Apriori算法的不足,将云计算MapReduce框架进行了适当改进并帮写论文在此基础上编写了Apriori算法,以解决Apriori算法扩展性差的弱点。实验证明,该算法能有效提高Apriori算法的性能。
关键词 MapReduce;数据挖掘:关联规则;Apriori算法
Research on An apriori-based algorithm of Association Rules with MapReduce of software framework
Abstract For the shortage of the apriori-based algorithm, MapReduce of software framework is improved and corresponding apriori-based algorithm is proposed, to enhance the expansibility of the apriori-based The experiments show that the algorithm is able to improve the execution efficiency of the traditional apriori-based algorithm.
Keywords MapReduce; Data Mining; Association Rules; apriori-based algorithm
1. 引言
数据挖掘是数据库中知识的发现,它能把存储在数据库或者其它信息仓库中的隐含、潜在、未知的信息提取出来提供给用户。关联规则挖掘是数据挖掘的一个重要分支,它通过收集数据库中大量的事物记录进行分析,查找海量数据中有趣的关联关系,是数据挖掘的一个重要功能。Apriori算法是关联规则中最经典的一个算法,传统的Apriori算法需要多次扫描数据库,产生大量的候选集,导致了算法的可扩展性差,虽然有众多改进的算法,但是很多采用的都是近似算法,计算精度较低。
随着计算机技术的飞速发展,云计算已成为分布式计算未来发展方向,由Google提出的MapReduce编程框架是云计算中的代表性技术,它适用于分布式处理大规模数
据集,计算效率极高。然而经典的MapReduce编程框架只能处理单个数据集,不能直接支持对多个相关数据集的处理,而关联规则Apriori算法又必然要面对多个相关数据集的处理问题
本文针对传统Apriori算法可扩展性差的特点,同时将MapReduce编程框架针对传统Apriori算法的特点进行改进,提出了一种新的基于云计算MapReduce框架的关联规则Apriori算法,利用“云”的强大计算处理能力来弥补传统Apriori算法扩展性的不足,提高Apriori算法的运算效率。实验证明,该算法能有效提高Apriori算法的运算效率。
2. 关联规则Apriori算法
Apriori算法是一种挖掘关联规则频繁项集的算法,它基于频繁项集的先验知识,采用如下的逐层搜索迭代方法:首先,找出频繁1-项集之集合,将之记为L1,L1是用来查找频繁2-项集之集合L2的,L2用来查找频繁3-项集之集合L3,以此类推,直到找不到频
参考文献
[1]. 韩家炜. 数据挖掘:概念与技术. 北京:机械工业出版社 2004.8 137-147
[2]. 陈康,郑纬民.云计算:系统实例与研究现状.软件学报,2009(5) 1337-1348
[3]. http://hadoop.apache.org
[4]. 郑启龙,房明,汪胜,等.基于MapReduce模型的并行科学计算.微电子学与计算机,2009,26(8):13-17
[5]. Lammel R. Google’s MapReduce programming model-Revisited. Science Computer Programming, 2008,70(1):1-30.
[6]. Gillick D, Faria A, DeNero J. MapReduce: Distributed Computing for Machine Learning. UC Berkeley's computer science department, 2006.
[7]. Lin J, Metzler D, Elsayed T, and Wang L. Of Ivory and Smurfs: Loxodontan MapReduce Experiments for Web Search. In: The 18th Text REtrieval Conference. Gaithersburg, Maryland, November 2009.
