Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

BST with strings

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.

Name: Anonymous 2010-09-19 20:24

I am a ``faggot''.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List