Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Help > Re: Please help...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 8 Topic 15884 of 16566
Post > Topic >>

Re: Please help for a LinkBinaryTreeInJava

by Basanta <mainhoonanjaane@[EMAIL PROTECTED] > Mar 16, 2008 at 11:04 AM

On Mar 16, 10:52 pm, Mark Space <marksp...@[EMAIL PROTECTED]
> wrote:
> Basanta wrote:
> > I am new in this group,I don't know how far it would help me.
> > I tried to make a linked based binary tree following the book "data
> > structures and algorithms in java" By goodRich and tamassia.I did all
> > but I wanted to implement a function to determine whether a particular
> > node exists or not.All I want to implement a function boolean
> > exists(node n).Can anyone help??My program is as follows:-
>
> > im****t java.io.*;
>
> > interface Node {
> >         Object getData();
> >         int getID();
> >                }
>
> This is kind of interesting.  Does your book explain why nodes have both
> a data element and an ID?  Why not just use the data?
>
> I feel this may make your tree special in some regard, and affect the
> answer to your question.  More info would help here. How do you search?
>   Do you look for data? ID? both?

I look only for ID.
 




 8 Posts in Topic:
Please help for a LinkBinaryTreeInJava
Basanta <mainhoonanjaa  2008-03-16 10:42:29 
Re: Please help for a LinkBinaryTreeInJava
Mark Space <markspace@  2008-03-16 10:52:12 
Re: Please help for a LinkBinaryTreeInJava
Basanta <mainhoonanjaa  2008-03-16 11:04:18 
Re: Please help for a LinkBinaryTreeInJava
Mark Space <markspace@  2008-03-16 18:26:35 
Re: Please help for a LinkBinaryTreeInJava
HelpMe <ShahilAkhtar@[  2008-03-16 11:46:10 
Re: Please help for a LinkBinaryTreeInJava
Andrew Marcus <mainhoo  2008-03-16 11:50:04 
Re: Please help for a LinkBinaryTreeInJava
Andrew Marcus <mainhoo  2008-03-16 11:53:18 
Re: Please help for a LinkBinaryTreeInJava
Lew <lew@[EMAIL PROTEC  2008-03-16 15:38:41 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 15:15:11 CST 2008.