Talk About Network



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 > Eiffel > Re: BINARY_SEAR...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 890 of 917
Post > Topic >>

Re: BINARY_SEARCH_TREE

by Friedrich Dominicus <just-for-news-frido@[EMAIL PROTECTED] Oct 20, 2007 at 11:12 AM

Roman Töngi <roman.toengi@[EMAIL PROTECTED]
> writes:

> In class BINARY_SEARCH_TREE there is no "do_all"
> routine which can be invoked with an agent as in
> class LINKED_LIST.
Yes you are are right. What you can do is 
call to_linear or the like and there you can use the agents.
>
> One has to redefine routine "node_action" in a
> descendant of BINARY_SEARCH_TREE. But what if
> one needs more than one traversal routine.
Then you have to have different descendants....
>
> Is class BINARY_SEARCH_TREE not intended for direct
> use? But then it were a deferred class.
Well node_action has not implementation, but you can use all the rest.


Regards
Friedrich

-- 
Please remove just-for-news- to reply via e-mail.




 2 Posts in Topic:
BINARY_SEARCH_TREE
=?ISO-8859-1?Q?Roman_T=F6  2007-10-19 18:43:30 
Re: BINARY_SEARCH_TREE
Friedrich Dominicus <j  2007-10-20 11:12:12 

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 May 17 10:51:06 CDT 2008.