in reply to Check word presence WITHOUT hashes or grep
Kudos for mentioning up front that this is a learning exercise. That makes the somewhat odd requirements less of a distraction. It also means that my suggestion will apply to your current approach rather than trying to change it.
Since you've got the dictionary words alphabetized in an array, you could use a binary search to determine if a word in your corpus is in the array. You should be able to find some things around here on that pretty easily if you use Super Search and sprinkle with key words liberally.
Good luck
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Check word presence WITHOUT hashes or grep
by Your Mother (Archbishop) on Apr 30, 2008 at 05:31 UTC | |
by gojippo (Novice) on Apr 30, 2008 at 05:43 UTC | |
by Your Mother (Archbishop) on Apr 30, 2008 at 05:49 UTC | |
|
Re^2: Check word presence WITHOUT hashes or grep
by gojippo (Novice) on Apr 30, 2008 at 06:13 UTC | |
by stiller (Friar) on Apr 30, 2008 at 07:07 UTC | |
by gojippo (Novice) on Apr 30, 2008 at 07:16 UTC | |
by GrandFather (Saint) on Apr 30, 2008 at 08:37 UTC | |
by stiller (Friar) on Apr 30, 2008 at 07:51 UTC | |
by gojippo (Novice) on Apr 30, 2008 at 06:54 UTC |