Quantcast
Viewing all articles
Browse latest Browse all 25

Answer by sergiol for Tweetable hash function challenge

tcl

#91 bytes, 6508 collisions

91 bytes, 6502 collisions

proc H s {lmap c [split $s ""] {incr h [expr [scan $c %c]*875**[incr i]]};expr $h&0xFFFFFF}

Computer is still performing a search to evaluate if there is a value that causes less collisions than the 147 875 base, which is still the recordist.


Viewing all articles
Browse latest Browse all 25

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>