Self-Balancing Trees Creation: Difference between revisions

From Algorithm Wiki
Jump to navigation Jump to search
(Created page with "{{DISPLAYTITLE:Self-Balancing Trees Creation (Self-Balancing Trees Creation)}} == Description == Create a self-balancing tree given a list of elements. == Parameters == <pre>n: size of tree</pre> == Table of Algorithms == {| class="wikitable sortable" style="text-align:center;" width="100%" ! Name !! Year !! Time !! Space !! Approximation Factor !! Model !! Reference |- | AVL Tree || 1962 || $O(nlogn)$ || $O(n)$ |...")
 
No edit summary
Line 6: Line 6:
== Parameters ==  
== Parameters ==  


<pre>n: size of tree</pre>
n: size of tree


== Table of Algorithms ==  
== Table of Algorithms ==  

Revision as of 13:03, 15 February 2023

Description

Create a self-balancing tree given a list of elements.

Parameters

n: size of tree

Table of Algorithms

Name Year Time Space Approximation Factor Model Reference
AVL Tree 1962 $O(nlogn)$ $O(n)$ Exact Deterministic
Guibas, Sedgewick Red-Black Tree 1972 $O(nlogn)$ $O(n)$ Exact Deterministic Time
Hopcroft 2-3 Tree 1970 $O(nlogn)$ $O(n)$ Exact Deterministic
Tarjan Splay Tree 1985 $O(nlogn)$ $O(n)$ Exact Deterministic
Bayer, McCreight B-Tree 1970 $O(n*b*log(n)$/log(b))? $O(n)$ Exact Deterministic
Scapegoat Tree 1989 $O(nlogn)$ $O(n)$ Exact Deterministic Time
Treap 1989 $O(nlogn)$ $O(n)$ Exact Randomized Time
Tango Tree 2004 $O(nlogn)$ $O(n)$ Exact Deterministic Time

Time Complexity graph

Self-Balancing Trees Creation - Time.png

Space Complexity graph

Self-Balancing Trees Creation - Space.png

Pareto Decades graph

Self-Balancing Trees Creation - Pareto Frontier.png