Binary Tree

Hello all,

I'm trying to make a code that search inside some files.. I did it in sequential way but it's very slow and not effeicient..

I want to do it using binary search tree.. how can I sort files (or strings) and then search within these strings..

with all my respect..

Message was edited by:

LOLO

[341 byte] By [LOLOa] at [2007-10-2 23:12:37]
# 1
If you are just searching for a few strings in your file then sorting first will probably be of no advantage since you will have to read the whole file into memory and you could do the whole search as you read the file. So, what do you want to do when you have found your targets?
sabre150a at 2007-7-14 6:26:45 > top of Java-index,Other Topics,Algorithms...