Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Hash function that returns the same value to an 'almost similar' objects

807605Jun 26 2007 — edited Jun 26 2007
Hi all.
I'm looking for a hash function, that will return the same value to two strings, that are almost similar to each other.
what do I mean?
for example, if I have a source code (as a string) of a that function:

'void f() {a += 1;}'

and that function:

'void f() {b += 1;}'

the Hash value of that strings will be the same.
someone know something that can help me with that?

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 24 2007
Added on Jun 26 2007
7 comments
341 views