public static void main(String args[]){
        int inorder[] = {4,13,1,7,6,3,19};
        int preorder[] = {13,4,6,7,1,3,19};
        ConstructTreeFromInOrderPreOrder ctf = new ConstructTreeFromInOrderPreOrder();
        Node root = ctf.createTree(inorder, preorder);
        LargestIndependentSetInTree lis = new LargestIndependentSetInTree();
        System.out.println(lis.largestSet(root));
    }
http://www.geeksforgeeks.org/largest-independent-set-problem/
src/com/interview/tree/LargestIndependentSetInTree.java