[net.lang] So you need a hash function

rro@csu-cs.UUCP (10/06/83)

2), pp. 18-27.  In addition, I will post the last version
of  the  program reported on in that report, "LHASHD," to net.sources as
soon as I can extract it from the other VAX.

        Rod Oldehoeft
        Computer Science Department
        Colorado State University
        Fort Collins, CO  80523
        303/491-7017
        hplabs!csu-cs!rro

jack@hp-dcde.UUCP (10/14/83)

#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)