zoukankan      html  css  js  c++  java
  • About The Algorithm Simplification

    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.

  • 相关阅读:
    mvc原理和mvc模式的优缺点
    Paxos算法详细图解
    环境搭建
    elasticsearch 安装
    redis rdb文件解析
    eclipse 远程调试
    java 解析xml
    理想化 redis
    redis 内存
    工作圈redis 使用
  • 原文地址:https://www.cnblogs.com/jinbo123/p/3993446.html
Copyright © 2011-2022 走看看