The Artima Developer Community
Sponsored Link

Java Answers Forum
Binary Tree

3 replies on 1 page. Most recent reply: Oct 16, 2004 11:58 AM by Charles Bell

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 3 replies on 1 page
Mele2004m

Posts: 10
Nickname: nenny
Registered: Sep, 2004

Binary Tree Posted: Oct 6, 2004 8:02 PM
Reply to this message Reply
Advertisement
Please can you help to draw a Binary tree because I can't understand what it's goin on So here is an assignment question for the binary tree
Assignment 11
Draw the tree that will result if you insert these nodes in this order:
50
40
45
30
35
43
47
20
21
60
55
53
54
57
70
65
80
Give the node order that will result if we user inorder traversal
Give the node order that will result if we user preorder traversal
Give the node order that will result if we user postorder traversal
Draw the tree that will result if we delete node 20 from the tree drawn in #1.
Draw the tree that will result if we delete node 45 from the tree drawn in #1.
Draw the tree that will result if we delete node 40 from the tree drawn in #1.
Draw the tree that will result if we delete node 50 from the tree drawn in #1.


Charles Bell

Posts: 519
Nickname: charles
Registered: Feb, 2002

Re: Binary Tree Posted: Oct 7, 2004 10:14 AM
Reply to this message Reply
Where is your java code for the binary tree?

There are no standard java classes for this that I am aware of.

There is a TreeSet class:

java.util.TreeSet

and a JTree class:

javax.swing.JTree

Mele2004m

Posts: 10
Nickname: nenny
Registered: Sep, 2004

Re: Binary Tree Posted: Oct 10, 2004 7:13 PM
Reply to this message Reply
It's mean to draw not coded

Charles Bell

Posts: 519
Nickname: charles
Registered: Feb, 2002

Re: Binary Tree Posted: Oct 16, 2004 11:58 AM
Reply to this message Reply
Still do not understand your java programming question.

Flat View: This topic has 3 replies on 1 page
Topic: SWT and MAC Previous Topic   Next Topic Topic: Session beans

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use