home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.programming
- Path: sparky!uunet!usc!sol.ctr.columbia.edu!ira.uka.de!rz.uni-karlsruhe.de!usenet
- From: S_TITZ@iravcl.ira.uka.de (Olaf Titz)
- Subject: Re: AVL trees - Re: Why Are Red-Black Trees Obscure?
- In-Reply-To: ok@goanna.cs.rmit.oz.au's message of 1 Sep 92 10: 39:13 GMT
- Message-ID: <1992Sep1.142904.430@rz.uni-karlsruhe.de>
- Sender: usenet@rz.uni-karlsruhe.de (USENET News System)
- Organization: Fachschaft Informatik, Uni Karlsruhe
- References: <1992Aug26.183817.7371@reed.edu> <1992Aug27.115551.7958@daimi.aau.dk> <1992Aug28.154713.3125@rz.uni-karlsruhe.de> <14298@goanna.cs.rmit.oz.au>
- Date: Tue, 1 Sep 1992 14:29:04 GMT
- X-News-Reader: VMS NEWS 1.23
- Lines: 35
-
- In <14298@goanna.cs.rmit.oz.au> ok@goanna.cs.rmit.oz.au writes:
-
- > Thank you. You just convinced me to switch to red-black trees or splay
- > trees as soon as I understand the relative merits of each. Quicksort is
- > _not_ good for teaching because students learn "use Quicksort", which is
- > not a lesson I hope any competent teacher would _want_ them to learn.
- > (Merge sort is easier to explain, easier to code correctly, easier to
- > analyse, and significantly faster.)
-
- Depends on *how* it's taught. If students learn a number of algorithms
- to do the same thing, they can judge which one to use if a real
- application is under construction. IMO Heapsort is often neglected
- because of its being 'hard to understand' but it has efficiency
- advantages over Quicksort, most notably it can *cleanly* be
- implemented without recursion.
-
- Another example are Bayer trees, which should be presented to the
- students as thorough as the AVL (or red-black, if you want it) trees
- just because they are the tree structure that suits best to a
- block-structured storage device.
-
- > There is a curious thing about red-black trees, which is that algorithm
- > texts that describe them often leave out the deletion code.
-
- And Bayer tree descriptions leave out deletion either, as do AVL tree
- descriptions, for the reason that it were 'too complicated' :-(
-
-
- MfG,
- Olaf
- --
- Olaf Titz - comp.sc.student - Univ of Karlsruhe - s_titz@iravcl.ira.uka.de -
- uknf@dkauni2.bitnet - praetorius@irc - +49-721-60439 - did i forget something?
- The only use I can find for vi is editing the emacs sources
- while porting them to a new machine. - Larry Campbell
-