I have the 3 traversal(s) of a tree (inorder, preorder, postorder) given in 3 arrays, and I want to have the adjacency matrix of it. The problem is I don't have any idea on how to start.
The tree is not a binary tree.
I have the 3 traversal(s) of a tree (inorder, preorder, postorder) given in 3 arrays, and I want to have the adjacency matrix of it. The problem is I don't have any idea on how to start.
The tree is not a binary tree.
Last edited by m3th0dman; 05-16-2010 at 03:57 AM.