home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.programming
- Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!ux1.cso.uiuc.edu!m.cs.uiuc.edu!gillies
- From: gillies@m.cs.uiuc.edu (Don Gillies)
- Subject: Re: Balanced Trees (Re: Why Are Red-Black Trees Obscure?)
- Message-ID: <1992Aug28.075102.4026@m.cs.uiuc.edu>
- Organization: University of Illinois, Dept. of Comp. Sci., Urbana, IL
- References: <1992Aug26.183817.7371@reed.edu> <1992Aug27.115551.7958@daimi.aau.dk> <PSU.92Aug27104235@ptero.cs.duke.edu> <1992Aug27.215924.24525@reed.edu>
- Date: Fri, 28 Aug 1992 07:51:02 GMT
- Lines: 34
-
- orpheus@reed.edu (P. Hawthorne) writes:
-
- > Is it a flaw in my implementation, or are top-down splay trees supposed
- >to revert to a linked list when keys are inserted in order? Does a
- >bottom-up splay operation solve that problem? I've always wondered.
-
- No, there are many ways to get a linked list when inserting keys into
- a splay tree. The key is, if you continue to use splay(), the linked
- list quickly becomes a near-balanced-binary-tree. There are obscure
- access patterns to get the structure back to a linked list, but then
- from that organization, most access patterns will tend to rebalance
- the tree rather quickly.
-
- > I'm partial to Patricia trees, from what I've read. Their balance and
- >completeness look relatively good. I haven't seen any mention of a deletion
- >operation on them
-
- What are patricia trees? Please respond via email.
-
- > Given an ordered list of keys, what is the fastest way to tell whether or
- >not they have a uniform probability distribution and just for good measure,
- >where in the list it breaks down if at all?
-
- compute the entropy (see an information-theory textbook). For
- sequentially degeneracy (a repetitive sequence of keys), if they are
- 8-bit or 16-bit keys, you might try running them through "compress".
- If they compress well, the key ordering is probably degenerate.
-
-
-
- --
-
-
-
-