If you know the size of the input, then you can use the Hash Table. But if you are finding it hard to make some Hash Function, then go for Binary Search Tree. So, if your Hash Function is such that it uniformly distributes the keys, then you should go with the Hash Table. Hash Function: Hash functions are the most important part of the Hash Table.
0 Comments
Leave a Reply. |