Ordered hashing: search
function search( key : typekey; var r : dataarray ) : integer; var i, inc, last : integer; begin i := hashfunction( key ) ; inc := increment( key ) ; last := (i+(n-1)*inc) mod m; while (i<>last) and (not empty(r[i])) and (r[i].k
Pascal
source (337.srch.p)
©
Addison-Wesley
Publishing Co. Inc.