Hash_values?

From: <>
Date: Tue Feb 14 12:06:25 -0500 2006

The example hash function given in the assignment uses two arrays:
char_values and hash_values. Is that correct or is hash_values
wrong?

  It's wrong; it should be

    return str.size()
           + char_values[tolower(first_char)]
           + char_values[tolower(last_char)];

  I've fixed the assignment page; thanks for pointing it out.
Received on Tue Feb 14 2006 - 12:06:25 EST

This archive was generated by hypermail 2.2.0 : Tue Mar 21 2006 - 10:28:01 EST