Total members 11890 |It is currently Fri Apr 19, 2024 12:49 am Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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?




Author:
Newbie
User avatar Posts: 1
Have thanks: 0 time

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

_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time

For this message the author DrRakha has received gratitude : cscalkin
Post new topic Reply to topic  [ 2 posts ] 

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









Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com