I have a tree Node whose data is a string.
class node{
private:
string data;
node *left,*right;
}
And now i have an array of tree nodes where I have appended the contents of multiple file into the an array of Binary Tree.
Now I want to perform a Binary Search of a key Paralyze. Is it possible ?? As I'm aware that only the address of the root is stored in the elements of the array. Is it possible to copy the contents of the tree to the Device.?? Please do suggest me a search algorithm that is efficient than 2D array linear search . If i copy the whole array of tree would it still be efficient?