Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Splay tree
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Disadvantages == The most significant disadvantage of splay trees is that the height of a splay tree can be linear.<ref name="BrinkmannDegraerDeLoof" />{{rp|1}} For example, this will be the case after accessing all ''n'' elements in non-decreasing order. Since the height of a tree corresponds to the worst-case access time, this means that the actual cost of a single operation can be high. However the [[amortized]] access cost of this worst case is logarithmic, O(log ''n''). Also, the expected access cost can be reduced to O(log ''n'') by using a randomized variant.<ref>{{harvnb|Albers|Karpinski|2002}}.</ref> The representation of splay trees can change even when they are accessed in a 'read-only' manner (i.e. by ''find'' operations). This complicates the use of such splay trees in a multi-threaded environment. Specifically, extra management is needed if multiple threads are allowed to perform ''find'' operations concurrently. This also makes them unsuitable for general use in purely functional programming, although even there they can be used in limited ways to implement priority queues. Finally, when the access pattern ''is'' random, the additional splaying overhead adds a significant constant factor to the cost compared to less-dynamic alternatives.
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Splay tree
(section)
Add topic