首页 > 其他 > 详细

About The Algorithm Simplification

时间:2014-09-25 19:47:38      阅读:271      评论:0      收藏:0      [点我收藏+]

For mode 1, you have to ergod all the data in the files. So the key point to solve this problem is to save the words.

I realized that using the Dictionary function in C# is very convinient. So I tried to learn it from the internet. As a result, the "Dictionary" has done me a favor.

 

At the beginning of mode 2, I thought about something i learned from the "Introduction To Big Data " course.

Purify the data, choose what i need.The most frequent 2-word‘s word gruop must from the most frequent words.

Since i have got the frequenct of all words from mode1, maybe i can finish mode 2 by this idea.

BUt I have to ergod all the text again and againg to analyse the most frequent words to the least.This must cost me a lot of time!

The idea from mode 1 can easily be transfered to that adapt to mode 2, and the fact that the time it costs is just a lit bit more than mode 1.

So i abandoned my first thinking,chose the method of mode 1.

About The Algorithm Simplification

原文:http://www.cnblogs.com/jinbo123/p/3993446.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!