Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^4: Longest String Matching

by hdb (Prior)
on Apr 08, 2013 at 12:17 UTC ( #1027483=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Longest String Matching
in thread Longest String Matching

Adding the empty string to the lexikon allows the following shortening:

$lookup{''} = 1; substr($word, 0, 1) = "" while !exists $lookup{$word};


Comment on Re^4: Longest String Matching
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2015-07-31 04:15 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 (274 votes), past polls