Hi, im trying to create a small function which can create a binary tree
from the entries in a text file and after that we can perform all the
usual operations like search, insert and delete etc. Now i have entries
something like this
IPaddress Phone No
192.168.2.1 2223447689
192.168.2.2 3334449898
192.168.2.3 5667869089
Now a user gives a tuple like 192.168.2.2 3334449898 and the function
algortithm performs the binary search and returns the result (Found/not
found). I need to resolve two issues here
1. the criteria to instert a new tuple (IP Ph no) in to the binary
tree.
2.How to read the data from the text file, whether to read them all in
to the memory or there are some other method of performing the binary
search from the file itself . I dont know.
Can anyone give me some advice abt how to do it?? Thanks in advance..