Re: print.e and Other Questions

new topic     » goto parent     » topic index » view thread      » older message » newer message

Chris wrote:

>   I don't se how EumsHash() could be useful for the Contest problem.

It depends on how you've coded your solution. My word scoring code looks 
something like this:

   if find( word, dictionary ) then
      return <score based on word size>
   else
      return <score based on partial match>
   end if

50,000 is a lot of words to do that initial find on. A hash-based search 
would speed things up quite a bit.

Searching for a partial match would also benefit from a hash table. For 
example, I encode the word "DOLLAR" under the key "ABCCDE". Replacing the 
search for the key with a hash would speed things up (although storing the 
index is a better long-term solution).

-- David Cuny

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu