Doc
authormbp <>
Tue, 25 Nov 2003 15:29:42 +0000 (15:29 +0000)
committermbp <>
Tue, 25 Nov 2003 15:29:42 +0000 (15:29 +0000)
growwords.py

index 8c6ddf9e5fdfd5290522d30c138cea603b84c52a..67f16c59c12702eadd551ccf9704232a97fe92ea 100644 (file)
 # size.  So instead we read the words into buckets by length, then
 # join them up.
 
+# The bucket thing may be a bit more than O(n), because of the
+# possible cost of copying things as we join the buckets.  But it is
+# not very expensive compared to the actual search.  There are a
+# fairly small number of buckets anyhow -- just proportional to the
+# longest word.
+
 # Solution:
 
 # Seed is given as the command line argument; words are read from