快速搜索算法 [英] Fast Search Algorithm

查看:102
本文介绍了快速搜索算法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,专家。



我只是制作搜索程序,用C ++语言搜索在Microsoft Visual Studio中查找文件等文件中提到的字符串。但是我的节目太慢了。



我已经实现了这样的搜索算法。



首先。查找匹配搜索过滤器的文件。

秒。逐个读取匹配的文件并搜索从读取文件输入的字符串。



嗯,它运行良好但是花了很多时间才能完成搜索。 />


有谁知道我怎样才能加快这个?



谢谢。

解决方案

从这里开始: hOOt - 全文搜索引擎 [ ^ ]

Hello, experts.

I've just make search program which search mentioned string from files like "Find in files on Microsoft Visual Studio" with C++ language. But my program is too slow.

I've implemented search algorithm like this.

First. Find files matched search filters.
Second. Read matched files one by one and search string which is inputted from read file.

Well, it works well but it took a lot of time to finish search.

Does anybody know how can I speed up this?

Thank you.

解决方案

Start here : hOOt - full text search engine[^]


这篇关于快速搜索算法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆