上一页 1 ··· 17 18 19 20 21
摘要: -cacheFile 分发,文件事先上传至Hdfs上,分发的是一个文件 1.找一篇文章The_Man_of_Property.txt: He was proud of him! He could not but feel that in similar circumstances he himsel 阅读全文
posted @ 2018-04-03 16:45 bioamin 阅读(499) 评论(0) 推荐(0) 编辑
摘要: 1.冒泡排序(从大到小):交换发生在内部循环 稳定的排序 冒泡排序的平均时间复杂度是O(n2),最好的时间复杂度是O(n),最坏的时间复杂度是O(n2),空间复杂度为O(1) 冒泡排序的优化在于didswap变量 ,通过这个变量的设置,实现冒泡排序的最好时间复杂度是O(n) #!usr/bin/py 阅读全文
posted @ 2018-04-03 00:25 bioamin 阅读(675) 评论(0) 推荐(0) 编辑
摘要: 统计某几个词在文章出现的次数 -file参数分发,是从客户端分发到各个执行mapreduce端的机器上 1.找一篇文章The_Man_of_Property.txt如下: He was proud of him! He could not but feel that in similar circu 阅读全文
posted @ 2018-04-02 21:50 bioamin 阅读(533) 评论(0) 推荐(0) 编辑
上一页 1 ··· 17 18 19 20 21