Self-Balancing Trees Insertion (Self-Balancing Trees Insertion)

From Algorithm Wiki
Revision as of 11:25, 15 February 2023 by Admin (talk | contribs) (Created page with "{{DISPLAYTITLE:Self-Balancing Trees Insertion (Self-Balancing Trees Insertion)}} == Description == Insert a given element into a self-balancing tree. == 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 |- | Hopcroft 2-3 Tree || 1970 || $O(lo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Description

Insert a given element into a self-balancing tree.

Parameters

n: size of tree

Table of Algorithms

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

Time Complexity graph

Self-Balancing Trees Insertion - Time.png

Space Complexity graph

Self-Balancing Trees Insertion - Space.png

Pareto Decades graph

Self-Balancing Trees Insertion - Pareto Frontier.png