tag:blogger.com,1999:blog-2314459346745910857.post8653344771731605241..comments2022-12-04T22:55:54.070-08:00Comments on Scalide: Possible Collision Issue with Product.hashCodeBen Jackmanhttp://www.blogger.com/profile/11000882649989928707noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-2314459346745910857.post-44453180252881784952010-01-06T00:24:07.387-08:002010-01-06T00:24:07.387-08:00follow up: http://scalide.blogspot.com/2010/01/fol...follow up: http://scalide.blogspot.com/2010/01/follow-up-to-producthashcode-collisions.htmlBen Jackmanhttps://www.blogger.com/profile/11000882649989928707noreply@blogger.comtag:blogger.com,1999:blog-2314459346745910857.post-57433108417939075982010-01-05T22:47:26.767-08:002010-01-05T22:47:26.767-08:00I wonder if it would be possible to add a collisio...I wonder if it would be possible to add a collisionRate method to hash tables to see how many of their keys are colliding.Ben Jackmanhttps://www.blogger.com/profile/11000882649989928707noreply@blogger.comtag:blogger.com,1999:blog-2314459346745910857.post-15814202316006374402010-01-05T22:36:21.252-08:002010-01-05T22:36:21.252-08:00Here are some hashes of strings:
scala> "a...Here are some hashes of strings:<br />scala> "a".hashCode<br />res20: Int = 97<br /><br />scala> "b".hashCode<br />res21: Int = 98<br /><br />scala> "\00".hashCode<br />res22: Int = 0<br /><br />scala> "\01".hashCode<br />res23: Int = 1<br /><br />scala> "\00\00".hashCode<br />res24: Int = 0<br /><br />scala> "\00\01".hashCode<br />res25: Int = 1<br /><br />scala> "\00b".hashCode <br />res26: Int = 98Ben Jackmanhttps://www.blogger.com/profile/11000882649989928707noreply@blogger.comtag:blogger.com,1999:blog-2314459346745910857.post-45467588339503221242010-01-05T22:09:27.728-08:002010-01-05T22:09:27.728-08:00Here is the post I added to the Scala debate maili...Here is the <a href="http://old.nabble.com/Possible-Collision-Issue-with-Product.hashCode-to27026790.html" rel="nofollow">post</a> I added to the Scala debate mailing listBen Jackmanhttps://www.blogger.com/profile/11000882649989928707noreply@blogger.com