Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Hash versus substitutation efficiency?

by TedPride (Priest)
on Oct 11, 2004 at 19:40 UTC ( [id://398258]=note: print w/replies, xml ) Need Help??


in reply to Hash versus substitutation efficiency?

Option 1, especially if you can eliminate some words (a simple ranking of words by frequency will show you which ones to eliminate - such as "a", "an", "the", etc). Both methods are going to use a significant amount of memory and processor time to construct the hash and array, however, so this sort of thing should only be done as a batch process rather than a page by page run of your script. Some more details on what exactly you're trying to do and why might be helpful.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://398258]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-03-29 01:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found