swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Followup about binary trees


From: Marcus G. Daniels
Subject: Re: Followup about binary trees
Date: 02 Dec 1998 08:56:33 -0800

>>>>> "PJ" == Paul E Johnson <address@hidden> writes:

PJ> Why does a delete function need
PJ> to know the compare_function?  The compare_function has one detail
PJ> in it that works great when adding nodes but it causes a lot of
PJ> trouble when it comes time to delete nodes.

To delete a node, it first must be found, and a comparison function
is needed to do that.  Perhaps you could use a second compare function?

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]