home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.programming
- Path: sparky!uunet!mcsun!Germany.EU.net!ubrinf!ubrinf!holly
- From: holly@wowbagger.pc-labor.uni-bremen.de (Holger Duerer)
- Subject: Re: Balanced Trees (Re: Why Are Red-Black Trees Obscure?)
- In-Reply-To: orpheus@reed.edu's message of 27 Aug 92 21:59:24 GMT
- Message-ID: <HOLLY.92Sep1181058@wowbagger.pc-labor.uni-bremen.de>
- Sender: news@informatik.uni-bremen.de (NEWS Service)
- Nntp-Posting-Host: wowbagger.pclabor.uni-bremen.de
- Organization: PC-Labor der Universitaet Bremen
- References: <1992Aug26.183817.7371@reed.edu> <1992Aug27.115551.7958@daimi.aau.dk>
- <PSU.92Aug27104235@ptero.cs.duke.edu> <1992Aug27.215924.24525@reed.edu>
- Date: Tue, 1 Sep 1992 17:10:58 GMT
- Lines: 44
-
- >>>>> On 27 Aug 92 21:59:24 GMT, orpheus@reed.edu (P. Hawthorne) said:
-
-
- >> psu@cs.duke.edu (Peter Su) laments:
- >> : 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?
-
- >> (If I reveal some of my profound ignorance here, be gentle with me, huh?
- >> I've never had the pleasure of discussing data structures with others
- >> before, and some of my isolation may show through.)
-
- >> Maybe it's because AVL trees are always watching out for and correcting
- >> imbalance. The structures you mention are probabilistic solutions, not hard
- >> and fast guarantees. If you are particularly neurotic about computational
- >> cost and the cost of key compares outweighs the cost of path bookkeeping
- >> and tree rotations, I could see using AVL trees rather than the many "sure
- >> thing" alternatives. Plus, they're exotic Cold War souvenirs!
-
- I myself am not very knowledgable about this stuff but red-black trees
- DO give guarantees. They are just not as strict as for AVL trees. So
- red-black trees are at most twice as bad as AVL. You are right that
- this may be of importance in some case. However these should be far
- to rare to warrant the attention given to AVLs.
-
- >> I'll agree though, there isn't enough material available on those
- >> structures for the many circumstances in which they are the better
- >> alternatives. Ever tried to find an introduction to Fibonacci heaps or
- >> source for them that isn't in a mishmash of C++ and German?
-
- I believe there is a chapter about Fib heaps in Cormen, Rivest,
- Leiserson: "Algorthms". I haven't read that chapter but liked all the
- ones I DID read. It's a nice book.
-
- >> [stuff deleted]
-
- >> Theus (orpheus@reed.edu)
-
- Holger
- --
- ----------------------------------------------------------------------
- Holger D"urer <holly@pc-labor.uni-bremen.de>
- "Infinity is a notion best contemplated within four
- walls with sheets tucked snugly around one's feet" -- Oliver Wendell Jones
-