Newsgroups: comp.lang.c Path: utzoo!utgpu!watserv1!maytag!watdragon!violet.waterloo.edu!cpshelley From: cpshelley@violet.waterloo.edu (cameron shelley) Subject: hash function for text in C Message-ID: <1990Oct16.184951.513@watdragon.waterloo.edu> Sender: daemon@watdragon.waterloo.edu (Owner of Many System Processes) Organization: University of Waterloo Date: Tue, 16 Oct 90 18:49:51 GMT Lines: 22 (Greeting(time == morning? Goodmorning: ( time == afternoon? Goodafternoon: Goodevening) ) ); I have been (futily :<) experimenting with hash functions to hash english words into a large array. No book I can find around here gives the topic more than cursory discussion. Does anyone out there know of a good, simple one? They must exist, and I'm getting a little tired of mine... (er, function that is, I can't afford another data structures book right now :). I'll be happy to post mine if anyone needs a good laugh, btw. Cam -- Cameron Shelley | "Saw, n. A trite popular saying, or proverb. cpshelley@violet.waterloo.edu| So called because it makes its way into a Davis Centre Rm 2136 | wooden head." Phone (519) 885-1211 x3390 | Ambrose Bierce