Name: Anonymous 2010-09-19 10:43
In order to efficiently inert/lookup/whatever values in a binary tree, they should be numbers. So, in order to use strings as values in a binary tree, they should be converted into integers through some means.
What's a nice way of doing that? I've thought about using a hash function, but with that comes the possibility of collisions, and then also you may as well just use a hash table.
What's a nice way of doing that? I've thought about using a hash function, but with that comes the possibility of collisions, and then also you may as well just use a hash table.