Switch to full style
Java2 codes,problems ,discussions and solutions are here
Post a reply

Take tree nodes then create new tree with another root

Mon Apr 04, 2011 2:59 am

I need to create a Java program that:

Takes as input a rooted tree T and a node c of T and converts T to another tree with the same set of node adjacency but now rooted at v.

any suggestions to start off?



Re: Help please?

Mon Apr 04, 2011 4:59 pm

hi ,
this code will help you alot , you will just need to add function to cut a tree at specific node to another tree , right
Binary Tree

Post a reply
  Related Posts  to : Take tree nodes then create new tree with another root
 JTree Usage example , Tree nodes     -  
 decision tree     -  
 java tree problem     -  
 Spanning Tree Algorithm     -  
 Binary search tree C++     -  
 Java Binary Tree     -  
 need help for creatinb binary tree in php     -  
 java code for decision tree algorithm     -  
 Display data from database as Tree Structure in JSP     -  
 Transformations in 3D (Simple EX. Rotated Tree (J2SE)     -