- For individual users
- Instant access to solutions
- Ask your tech questions
- Start your 30-day Free Trial
Main Topics
Browse All TopicsHi experts,
I am working on a keyword retrieval project. Here is an example.
Assume that the following is a keyword file.
Serial Number Keywords
10 this
11 this is
33 this is notebook
38 This
68 Yahoo com
70 yahoo is this
Now I have a query string like this:
"This is yahoo com"
Then I should get all the keywords in the keyword file except "This is notebook". The principle is that the keyword(s) is/are retrieved if and only if it/they occur in the query string. Case is ignored. "Yahoo" and "yahoo" are all treated as the same.
Now my question is:
How to design such a data structure and algorithm so that I can retrieve the keywords quickly. This system has a really high requirement for the retrieval time. So the faster is the better.
Please spend some time to consider this question and your answer before you reply. I used hashtable and chaining list but the running time is too long to afford.
Thanks so much.
This question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership