hi,
 no there is no gaurantee that their will exactly two childs for every member (some 
members may have one child only).well i store data in database and in my program when 
traverse thro tree i will get data from data base . Iam getting following  exception

java.sql.SQLException: [Atinav][JDBC SQL Server Driver] No buffer space available 
(maximum connections reached?): JVM_Bind 


On Wed, 12 Dec 2001 [EMAIL PROTECTED] wrote :
> First a couple of questions.  Does everyone except for 
> the bottom leaves always 
> have two 'children'?  Do you have the bottom leaves all 
> on the same level (or 
> close to)?  If so you can actually just do a simple 
> math problem to find out 
> how many children you have.  There are a lot of other 
> common math statements 
> that will tell you a lot about binary trees (which is 
> exactly what you have).  
> Just pick up a simple algorithms book and it should be 
> with in the first two or 
> three chapters.
> 
> Other than that let us know if the above questions are 
> true and I or someone 
> else can help you out quickly.
> 
> If you actually do have to traverse the tree then I 
> don't see why you're 
> running out of memory.  Just traverse the tree and for 
> every leaf increment a 
> counter.  You shouldn't have to save anything in memory 
> except for a temporary 
> node object.  If you are then you're not doing it 
> efficiently.  
> 
> Let me know if you need anything else.
> 
> Matt
> 
> 
> Quoting shashi kanth goud <[EMAIL PROTECTED]>:
> 
> > 
> > hi all out there,
> >             This is the peculiar problem iam facing 
> with java story goes
> > like this...............
> > 
> > iam working on a application in which one person will 
> have two members
> > under him(one on his left and one on his right) and 
> again those two
> > members will have two members under them, this goes 
> on like chain.
> > now my problem is i should count how many child are 
> there on either side
> > of each member. iwrote a program which was working 
> well when there were
> > 14,000+ members but when it comes to 20,000+ iam 
> getting exception:
> > 
> > 
> >  saying buffer not available JVM_BIND Exception 
> > 
> > when do i get such exception what to do overcome such 
> exceptions. when i
> > try same logic in vb it worked well and updated 
> without any problem. Do
> > u people feel that i should change my application 
> into vb leaving java
> > iam not getting what to do????
> > 
> > Help will be appreciated
> > Shashi 
> > 
> > 
> > ______________________________________________________-
> _____________________
> > To unsubscribe, send email to [EMAIL PROTECTED] 
> and include in the
> > body
> > of the message "signoff SERVLET-INTEREST".
> > 
> > Archives: http://archives.java.sun.com/archives/servle-
> t-interest.html
> > Resources:
> > http://java.sun.com/products/servlet/external-resource-
> s.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.-
> html
> > 
 


Regards
Shashi

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to