home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!jvnc.net!yale.edu!ira.uka.de!rz.uni-karlsruhe.de!usenet
- From: S_TITZ@iravcl.ira.uka.de (Olaf Titz)
- Newsgroups: comp.programming
- Subject: AVL trees - Re: Why Are Red-Black Trees Obscure?
- Message-ID: <1992Aug28.154713.3125@rz.uni-karlsruhe.de>
- Date: 28 Aug 92 15:47:13 GMT
- References: <1992Aug26.183817.7371@reed.edu> <1992Aug27.115551.7958@daimi.aau.dk> <PSU.92Aug27104235@ptero.cs.duke.edu>
- Sender: usenet@rz.uni-karlsruhe.de (USENET News System)
- Organization: Fachschaft Informatik, Uni Karlsruhe
- Lines: 36
- In-Reply-To: psu@cs.duke.edu's message of 27 Aug 92 14: 42:35 GMT
- X-News-Reader: VMS NEWS 1.23
-
- In <PSU.92Aug27104235@ptero.cs.duke.edu> psu@cs.duke.edu writes:
-
- > Pet Peeve Time:
- >
- > All of the following are easier than AVL trees:
- >
- > splay trees, red-black trees, skip-lists, randomized binary trees,
- > etc.
- >
- > Why do people insist on teaching AVL trees?
- >
-
- 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. The same holds for Bayer
- trees, but AVL are even more beautiful. The operations to perform on
- AVL trees are not *that* complicated; they achieve good (well,
- asymptotically optimal) performance results; they are yet used in many
- places (not really an argument, but...); and they show the principles
- of recursion and induction. (Have I left out any advantages?) On the
- other hand, I see no real disadvantages of AVL trees.
-
- Other examples of this useful teaching stuff are Quicksort and the
- classic FFT. There are many, many other algorithms around equally well
- suited for teaching, but you have to choose which ones you use, and
- if AVL trees suit your needs and taste, why not?
-
-
- 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?
- OS/360 devotes 26 bytes of the permanently resident date-turnover routine
- to the proper handling of Dec.31 on leap years. That might have been
- left to the operator. - Fred Brooks (1975)
-