?
Solved

Binary Trees

Posted on 2005-05-02
18
Medium Priority
?
1,199 Views
Last Modified: 2012-05-05
I need a tool that could help me to draw a binary tree with input more than 64 elements...user gives the elements and it has to generate the tree for the elements entered.

Very urgent...A tool or software or a template....

0
Comment
Question by:jagadeesh_motamarri
  • 7
  • 5
  • 3
  • +2
17 Comments
 
LVL 19

Expert Comment

by:RanjeetRain
ID: 13916821
Hey mate, I got some good hits from this search query http://www.google.com/search?hl=en&ie=ISO-8859-1&q=software%20engineering%20visual%20tool%20generate%20binary%20tree

Why don't you start digging while we look for something for you in parallel ;)
0
 
LVL 19

Expert Comment

by:RanjeetRain
ID: 13917000
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 10

Author Comment

by:jagadeesh_motamarri
ID: 13917158
i need a software....
0
 
LVL 19

Expert Comment

by:RanjeetRain
ID: 13917200
Hopefully you will come across one
0
 
LVL 10

Author Comment

by:jagadeesh_motamarri
ID: 13917236
i should...i need that
0
 
LVL 10

Expert Comment

by:Andrew Beers
ID: 13918064
You are looking to find a tool to draw them such as a Visio like tool only automated to draw the circles and links or are you looking for dynamic code to generate a BST?

~Aqua
0
 
LVL 10

Author Comment

by:jagadeesh_motamarri
ID: 13921717
i'm looking for a tool.....i just wanna given my input(sequence od numbers) and the has to generate me the binary tree.

The input can be even in decimal values.....please try to find out a tool guys.
0
 
LVL 10

Expert Comment

by:Andrew Beers
ID: 13929509
It isn't hard to write my man...  Binary Trees would be very easily written for to dynamically generate.  Think about it... number of inputs then map them in a doubly linked list.

I mean, heck... Java even already has a data type to do it!!!

Instead of looking for a tool and wasting many many days asking us to look for one, why not try to write one and ask a question that we are more suited to answer.  (Writing it would take at most 2 hours for a novice programmer)

~Aqua
0
 
LVL 10

Author Comment

by:jagadeesh_motamarri
ID: 13929847
Thank You for your wise suggestion.....~Aqua

All i have to say is....i already have a program for the same ....but it could only generate the table of the binary tree as follows....


Left_Child       Root        Right_Child
NULL            0.233           .34
0.27            0.34              0.44443
.....
.....
.....
.....

ANd so on.....


Now every time i cannot draw a tree structure for my documentation part which include a set of more 300 elements every time....becoz i have several such sets.....Hope u understand my problem

I would appreciate if u can respond  me ACCORDINGLY.

~KIRAN

0
 
LVL 10

Expert Comment

by:Andrew Beers
ID: 13930152
java has an api to draw rectangles and lines.. calculate the root node and the leaves and you can draw it yourself as well.  I'm sure there is a template out there for the code but it is simple enough to just write on your own.

http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Rectangle.html
^---Rectangle
http://java.sun.com/j2se/1.4.2/docs/api/java/awt/geom/Line2D.html
^---Line

There is your answer for drawing to the screen.

~Aqua
0
 
LVL 10

Author Comment

by:jagadeesh_motamarri
ID: 13932544
Thankz for the advice...but thatz not the correct answer i guess...
0
 
LVL 10

Author Comment

by:jagadeesh_motamarri
ID: 14103564
none of them gave a proper answer.........please remove the question.....thanku
0
 
LVL 10

Author Comment

by:jagadeesh_motamarri
ID: 14258586
Please Delete the question...!!

Thank You.
0
 
LVL 19

Expert Comment

by:RanjeetRain
ID: 14263697
Vena,

This thread contains useable information. My closure recommendation on this would be: PAQ with refund.
0
 
LVL 20

Expert Comment

by:Venabili
ID: 14263724
Sure :)

Changed recommendation: PAQ-REFUND
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 14291827
PAQed with points refunded (500)

modulo
Community Support Moderator
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
Simple Linear Regression
Introduction to Processes

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question