home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!goanna!ok
- From: ok@goanna.cs.rmit.oz.au (Richard A. O'Keefe)
- Newsgroups: comp.programming
- Subject: Re: AVL trees - Re: Why Are Red-Black Trees Obscure?
- Message-ID: <14298@goanna.cs.rmit.oz.au>
- Date: 1 Sep 92 10:39:13 GMT
- References: <1992Aug26.183817.7371@reed.edu> <1992Aug27.115551.7958@daimi.aau.dk> <1992Aug28.154713.3125@rz.uni-karlsruhe.de>
- Organization: Comp Sci, RMIT, Melbourne, Australia
- Lines: 19
-
- In article <1992Aug28.154713.3125@rz.uni-karlsruhe.de>, S_TITZ@iravcl.ira.uka.de (Olaf Titz) writes:
- > Because AVL trees are really a wonderful non-trivial example for
- > teaching data structures and algorithm design, which has the advantage
- > that it is of use in the Real World too.
-
- > Other examples of this useful teaching stuff are Quicksort and the
- > classic FFT.
-
- 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.)
-
- There is a curious thing about red-black trees, which is that algorithm
- texts that describe them often leave out the deletion code.
- --
- You can lie with statistics ... but not to a statistician.
-