home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / pascal / 4968 < prev    next >
Encoding:
Internet Message Format  |  1992-08-21  |  891 b 

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