<legend id='CL6Ah'><style id='CL6Ah'><dir id='CL6Ah'><q id='CL6Ah'></q></dir></style></legend>

      • <bdo id='CL6Ah'></bdo><ul id='CL6Ah'></ul>
      <i id='CL6Ah'><tr id='CL6Ah'><dt id='CL6Ah'><q id='CL6Ah'><span id='CL6Ah'><b id='CL6Ah'><form id='CL6Ah'><ins id='CL6Ah'></ins><ul id='CL6Ah'></ul><sub id='CL6Ah'></sub></form><legend id='CL6Ah'></legend><bdo id='CL6Ah'><pre id='CL6Ah'><center id='CL6Ah'></center></pre></bdo></b><th id='CL6Ah'></th></span></q></dt></tr></i><div id='CL6Ah'><tfoot id='CL6Ah'></tfoot><dl id='CL6Ah'><fieldset id='CL6Ah'></fieldset></dl></div>

      <tfoot id='CL6Ah'></tfoot>
    1. <small id='CL6Ah'></small><noframes id='CL6Ah'>

    2. 在包含 1 亿个字符串的大型文本文件中进行高效的子字符串搜索(无重复字符串)

      Efficient substring search in a large text file containing 100 millions strings(no duplicate string)(在包含 1 亿个字符串的大型文本文件中进行高效的子字符串搜索(无重复字符串))

        1. <tfoot id='eWp5x'></tfoot>
            <bdo id='eWp5x'></bdo><ul id='eWp5x'></ul>

              1. <i id='eWp5x'><tr id='eWp5x'><dt id='eWp5x'><q id='eWp5x'><span id='eWp5x'><b id='eWp5x'><form id='eWp5x'><ins id='eWp5x'></ins><ul id='eWp5x'></ul><sub id='eWp5x'></sub></form><legend id='eWp5x'></legend><bdo id='eWp5x'><pre id='eWp5x'><center id='eWp5x'></center></pre></bdo></b><th id='eWp5x'></th></span></q></dt></tr></i><div id='eWp5x'><tfoot id='eWp5x'></tfoot><dl id='eWp5x'><fieldset id='eWp5x'></fieldset></dl></div>
                  <tbody id='eWp5x'></tbody>

              2. <small id='eWp5x'></small><noframes id='eWp5x'>

                <legend id='eWp5x'><style id='eWp5x'><dir id='eWp5x'><q id='eWp5x'></q></dir></style></legend>
                本文介绍了在包含 1 亿个字符串的大型文本文件中进行高效的子字符串搜索(无重复字符串)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我有一个包含 1 亿个字符串(没有重复字符串)的大型文本文件(1.5 Gb),并且所有字符串在文件中逐行排列.我想在java中制作一个wepapplication,以便当用户给出关键字(子字符串)时,他可以获得包含该关键字的文件中存在的所有字符串的计数.我已经知道一种技术 LUCENE..还有其他方法可以做到这一点吗??我希望在 3-4 秒内得到结果.我的系统有 4GB 内存和双核配置....需要在仅限 JAVA"中执行此操作

                I have a large text file(1.5 Gb) having 100 millions Strings(no duplicate String) and all the Strings are arranged line by line in the file . i want to make a wepapplication in java so that when user give a keyword(Substring) he get the count of All the strings present in the file which contains that keyword. i know one technique LUCENE already..is there any other way to do this.?? i want the result within 3-4 seconds. MY SYSTEM HAS 4GB RAM AND DUAL CORE configuration.... need to do this in "JAVA ONLY"

                推荐答案

                由于您的 RAM 大于文件的大小,您也许可以将整个数据作为结构存储在 RAM 中并快速搜索.A trie 可能是一个很好的数据结构;它确实有快速的前缀查找,但不确定它对子字符串的执行情况.

                Since you have more RAM than the size of the file, you might be able to store the entire data as a structure in the RAM and search it very quickly. A trie might be a good data structure to use; it does have fast prefix finding, but not sure how it performs for substrings.

                这篇关于在包含 1 亿个字符串的大型文本文件中进行高效的子字符串搜索(无重复字符串)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)
                How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)
                Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
                Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)
                How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)
                How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)
              3. <tfoot id='q4Lyn'></tfoot><legend id='q4Lyn'><style id='q4Lyn'><dir id='q4Lyn'><q id='q4Lyn'></q></dir></style></legend>

                  • <bdo id='q4Lyn'></bdo><ul id='q4Lyn'></ul>

                          <i id='q4Lyn'><tr id='q4Lyn'><dt id='q4Lyn'><q id='q4Lyn'><span id='q4Lyn'><b id='q4Lyn'><form id='q4Lyn'><ins id='q4Lyn'></ins><ul id='q4Lyn'></ul><sub id='q4Lyn'></sub></form><legend id='q4Lyn'></legend><bdo id='q4Lyn'><pre id='q4Lyn'><center id='q4Lyn'></center></pre></bdo></b><th id='q4Lyn'></th></span></q></dt></tr></i><div id='q4Lyn'><tfoot id='q4Lyn'></tfoot><dl id='q4Lyn'><fieldset id='q4Lyn'></fieldset></dl></div>

                          <small id='q4Lyn'></small><noframes id='q4Lyn'>

                            <tbody id='q4Lyn'></tbody>