Author |
Topic: wildcard searching in dictionary (Read 442 times) |
|
cuckoo
Junior Member
Gender:
Posts: 57
|
|
wildcard searching in dictionary
« on: Sep 4th, 2007, 2:41am » |
Quote Modify
|
I am doing research on string processing and come up the following problem: D is fixed dictionary of words, you can preprocessing it to build some data structure as you like. Now in the query phase, you are given a wildcard pattern, and you are asked to return all words in D that match with the pattern. For example, if the wildcard pattern is "h**o", then you must return all words in D begin with 'h' and end with 'o'. "hello" is such a candidate. Generally, you should build "index" on dictionary, not on the query pattern, since the latter changing from time to time. Looking forward an elegant solution!
|
« Last Edit: Sep 4th, 2007, 2:45am by cuckoo » |
IP Logged |
|
|
|
|