- Apr 6, 2002
- 7,141
- 1
- 0
Question the first:
Is there a more efficient way to see if two strings are equal than $x eq $y?
Question the second:
It seems that the smaller two strings are, the faster the comparison would be. Is it feasible to hash two large (>500 character) strings and compare the hashes to determine if the original strings were equal? What would be a good algorithm for doing this?
Thanks in advance.
Is there a more efficient way to see if two strings are equal than $x eq $y?
Question the second:
It seems that the smaller two strings are, the faster the comparison would be. Is it feasible to hash two large (>500 character) strings and compare the hashes to determine if the original strings were equal? What would be a good algorithm for doing this?
Thanks in advance.