| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1981 人关注过本帖
标题:The search technique what I thought
取消只看楼主 加入收藏
kai
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:52
帖 子:3450
专家分:59
注 册:2004-4-25
结帖率:100%
收藏
 问题点数:0 回复次数:10 
The search technique what I thought
Here I want introduce my search technique, I don't know whether this technique is already used by some search enginee. At all, I have never heard or never seen.

Now come to the subject. I think, everyone here has the experience by searching. For example search your shoe, or search your pencil, or something else, usually, it is always not successful by searching. I have also had such experience. And I then thought, It is better that I need not search, but they tell me where they are. That is the basic idea by this searching. Instead of searching, they should tell me where they are. But how?

Now I tell you how. First you should have an concept that, the files are not files, but objects, that mean, every file in your Computer are File object, that is more than file. Every file object has already an listener, that is fast an sensor, that mean, when you search something, every file object will be automatically actived, and try to ask himself, whether he is your search object, when yes, he will come to you automatcally. So it is simple.

Now you have know the search principle. Do you know why it should be so? First let's look at the usually search way. Usually we will create an search table, maybe a Hashtable, maybe it includes still a Hashtable. but at all, we look for something still one by one. That mean, when you see something, something are still waiting there for you. We can not touch two things in the same time. In principle, when you search something with software, you can never realize, touch two thing in the same time. But how to improve the search way? The answer is using hardware, using hardware you can really do two things, even more things at the same time. That mean, you get things not one by one, but more things at the same time. Now the questions is, how can we still improve search efficient through using software, the answer is, using File object, every object is a thread, that is in most time not actived, only when you make them actived, they work in concurrent wise. And when a file object is what you want, he will go to your result table, that mean, he create some text as link and write this in your result table.


搜索更多相关主题的帖子: technique thought The search 
2006-07-24 06:38
kai
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:52
帖 子:3450
专家分:59
注 册:2004-4-25
收藏
得分:0 
ysol,

you are right. Usually the search funktion will not be always used, But when we use it, we all want get the answer as quickly as possible. So it is well worth to pay some space for better search.

Today, google and baidu are the mostly used search engine. When the software is purely a search engine, then some payment for place is well worth. Do you think so?

I think, it is the first talk with you. Nice to meet you.

自由,民主,平等,博爱,进步.
中华民国,我的祖国,中华民国万岁!中华民国加油!
本人自愿加入中国国民党,为人的自由性,独立性和平等性而奋斗!
2006-07-24 22:36
kai
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:52
帖 子:3450
专家分:59
注 册:2004-4-25
收藏
得分:0 
myajax95,

a listener is just an extern object, and every file object just add the listener. code like this.

For example you have tree structure for your file system. I name it fileTree

MySearchListener msl = new MySearchListener();
fileTree.add(msl);

// code for search

fileTree.doSearch( your search content );

自由,民主,平等,博爱,进步.
中华民国,我的祖国,中华民国万岁!中华民国加油!
本人自愿加入中国国民党,为人的自由性,独立性和平等性而奋斗!
2006-07-25 00:59
kai
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:52
帖 子:3450
专家分:59
注 册:2004-4-25
收藏
得分:0 
myajax95,

ich kann wirklich sehr schnell in Deutsch schreiben. Mein Deutschkenntnis is viel besser als Englisch.

I can really very quickly write in german. My german is much better than english.

自由,民主,平等,博爱,进步.
中华民国,我的祖国,中华民国万岁!中华民国加油!
本人自愿加入中国国民党,为人的自由性,独立性和平等性而奋斗!
2006-07-25 01:02
kai
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:52
帖 子:3450
专家分:59
注 册:2004-4-25
收藏
得分:0 
ysol,
not 4, but just 3 arts Language.

自由,民主,平等,博爱,进步.
中华民国,我的祖国,中华民国万岁!中华民国加油!
本人自愿加入中国国民党,为人的自由性,独立性和平等性而奋斗!
2006-07-25 02:23
kai
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:52
帖 子:3450
专家分:59
注 册:2004-4-25
收藏
得分:0 
myajax95,

think about the date structure from Tree, a tree has a root, the root can be null, or can also be an object. root stands in level 0, then in level1 are the childreen of roots, any child can also has his child, they stand in his next level. Only the object that has no child more, is leaf. In a file system, the leaf is the object, that consists of a file, the others are the objects, that consist of more objects(his children), it could be so that, there were leafs in his children or nonleaf fileobject in his children.

summerization:
A file system consists of file object, a file object could be a leaf or nonleaf. A leaf in file system is a file object, that has a file. My Idea is, every file object will have a listener, that mean a listener will be added in a file object. Searching in a file system, will like something, water go through all pipes. In level one a listener will some response, that mean, he will ask himself, if he is leaf, when yes, then search the file, when no, then search his children, and the his children make the same thing. Pay attention here, when a file object is not a leaf, he will make all his children active, because every file object is a thread, active a file object then this file object will do search. So in a very quickly time, All file object in this file system will be actived and start their searching work, so that many searching works will be done in the same time, that is concurrent.

I will implement it recently in java.

自由,民主,平等,博爱,进步.
中华民国,我的祖国,中华民国万岁!中华民国加油!
本人自愿加入中国国民党,为人的自由性,独立性和平等性而奋斗!
2006-07-25 09:39
kai
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:52
帖 子:3450
专家分:59
注 册:2004-4-25
收藏
得分:0 
ku yi a. me wen ti.

自由,民主,平等,博爱,进步.
中华民国,我的祖国,中华民国万岁!中华民国加油!
本人自愿加入中国国民党,为人的自由性,独立性和平等性而奋斗!
2006-07-25 11:03
kai
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:52
帖 子:3450
专家分:59
注 册:2004-4-25
收藏
得分:0 
which problem have you?

自由,民主,平等,博爱,进步.
中华民国,我的祖国,中华民国万岁!中华民国加油!
本人自愿加入中国国民党,为人的自由性,独立性和平等性而奋斗!
2006-07-25 13:45
kai
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:52
帖 子:3450
专家分:59
注 册:2004-4-25
收藏
得分:0 
ren jia hui da diao la. wo jiu bu chong fu la. wo de cheng xu zhong bu hui chu xian zhe zhong dai ma de.

自由,民主,平等,博爱,进步.
中华民国,我的祖国,中华民国万岁!中华民国加油!
本人自愿加入中国国民党,为人的自由性,独立性和平等性而奋斗!
2006-07-25 17:40
kai
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:52
帖 子:3450
专家分:59
注 册:2004-4-25
收藏
得分:0 
你这么说,那我懂的可就多了。

自由,民主,平等,博爱,进步.
中华民国,我的祖国,中华民国万岁!中华民国加油!
本人自愿加入中国国民党,为人的自由性,独立性和平等性而奋斗!
2006-07-25 23:43
快速回复:The search technique what I thought
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.054793 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved