Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site hp-pcd.UUCP Path: utzoo!linus!decvax!harpo!floyd!clyde!ihnp4!zehntel!hplabs!hp-pcd!hp-dcde!jack From: jack@hp-dcde.UUCP Newsgroups: net.lang Subject: Re: So you need a hash function - (nf) Message-ID: <2078@hp-pcd.UUCP> Date: Fri, 14-Oct-83 03:29:36 EDT Article-I.D.: hp-pcd.2078 Posted: Fri Oct 14 03:29:36 1983 Date-Received: Sun, 16-Oct-83 08:31:41 EDT Sender: notes_gateway@hp-pcd.UUCP Organization: Hewlett-Packard, Fort Collins, CO Lines: 17 #R:csu-cs:-242200:hp-dcde:19700002:000:386 hp-dcde!jack Oct 11 16:04:00 1983 Unfortunately, this very function: h(word) = leng(word) + value(firstletter(word)) + value(lastletter(word)) fails if the input is 68000 opcodes, which is my need for hashing. In particular, BNE, BLE, & BGE all have length=3, firstletter=B, lastletter=E. Oh well. I'm sure I can come up with another function. -Jack Applin (hplabs!hp-dcd!jack)