码迷,mamicode.com
首页 > 其他好文 > 详细

About The Algorithm Simplification

时间:2014-09-25 20:39:47      阅读:171      评论:0      收藏:0      [点我收藏+]

标签:io   os   ar   for   sp   cti   on   c   ad   

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

标签:io   os   ar   for   sp   cti   on   c   ad   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!