Jon Schull's Weblog





Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.


Tuesday, July 8, 2003
 


Webserver in 7 lines of code...and it seems to work

 


comments? [] 1:37:08 PM    

Suffix Tree SubstringDict


This looks interesting

Suffix Tree SubstringDict

>>> import SubstringDict
>>> d = SubstringDict.SubstringDict()
>>> d['foobar'] = 1 
>>> d['barfoo'] = 2
>>> d['forget'] = 3

>>> d['arfbag'] = 4
>>> d['a']
[1, 2, 4]
>>> d['arf']
[2, 4]
>>> d['oo']
[1, 2]
>>> d['food']
[]


comments? [] 1:36:13 PM    


Click here to visit the Radio UserLand website. © Copyright 2004 Jon Schull.
Last update: 1/21/04; 9:28:59 AM.
July 2003
Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
Jun   Aug