Re: Efficient Text File Copy
From: CBFalconer (cbfalconer_at_yahoo.com)
Date: 01/31/04
- Next message: Robert W Hand: "Re: [C, C++] "(a=b) = c;" Illegal or Undefined?"
- Previous message: Malcolm: "Re: Efficient Text File Copy"
- In reply to: Richard Heathfield: "Re: Efficient Text File Copy"
- Next in thread: Richard Heathfield: "Re: Efficient Text File Copy"
- Reply: Richard Heathfield: "Re: Efficient Text File Copy"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 31 Jan 2004 11:05:51 GMT
Richard Heathfield wrote:
>
... snip ...
>
> For a hashing algorithm, either use K&R's (p144!) or Chris Torek's
> (with the 33 multiplier rather than 31).
Why do you recommend this? I have used 31 and 37 in the past.
This is to hash strings consisting (in the main) of ascii chars.
Frankly I took Kernighan & Pikes word for it, also noting that 31
and 37 are prime, while 33 is not.
-- Chuck F (cbfalconer@yahoo.com) (cbfalconer@worldnet.att.net) Available for consulting/temporary embedded and systems. <http://cbfalconer.home.att.net> USE worldnet address!
- Next message: Robert W Hand: "Re: [C, C++] "(a=b) = c;" Illegal or Undefined?"
- Previous message: Malcolm: "Re: Efficient Text File Copy"
- In reply to: Richard Heathfield: "Re: Efficient Text File Copy"
- Next in thread: Richard Heathfield: "Re: Efficient Text File Copy"
- Reply: Richard Heathfield: "Re: Efficient Text File Copy"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|