home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!mips!sdd.hp.com!caen!uvaarpa!vger.nsu.edu!g_harrison
- From: g_harrison@vger.nsu.edu (George C. Harrison, Norfolk State University)
- Newsgroups: comp.lang.pascal
- Subject: reHASHing of Reserved Words
- Message-ID: <2459.2a93e386@vger.nsu.edu>
- Date: 20 Aug 92 18:25:10 EDT
- Lines: 13
-
- I posted this about 10 days ago and had only ONE reply (which I appreciate but
- was incorrect). I am SURE that someone in the Pasqual world knows the answer:
-
- I want a perfect hash function for strings of Pascal reserved words. A perfect
- has function is a "simple function" normally using mod, div, length of string,
- and Ord of some of the characters. I want such a function to map directly from
- the 36 Pascal reserved words onto the numbers 0 .. 35 WITHOUT COLLISION.
-
- George
-
- George C. Harrison, Prof. of CS, Norfolk State University
- g_harrison@vger.nsu.edu
-
-