Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Words in Words

by LanX (Canon)
on Oct 01, 2011 at 09:22 UTC ( #929016=note: print w/ replies, xml ) Need Help??


in reply to Re: Words in Words
in thread Words in Words

index is normally slower then a simple regex, because regex are optimized by pre-calculating jump tables ... ( I forgot the name of the algorithm ...).

Cheers Rolf

UPDATE: see Boyer–Moore_string_search_algorithm

UPDATE2: choroba found it, too! :)


Comment on Re^2: Words in Words
Replies are listed 'Best First'.
Re^3: Words in Words
by choroba (Canon) on Oct 01, 2011 at 09:31 UTC
    Something like Boyer-Moore?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2015-07-08 05:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (94 votes), past polls