Professional Documents
Culture Documents
Rebuilding
Search balanced trees
• To rebuild them
• Rebuilding the entire tree takes(n)
Has logarithmic height; at all times, the height of the scapegoat tree does
not exceed
Insert operation
Before Insert
After Insert
n = q = 10
Scapegoat
Delete from a Scapegoat tree
n=q=10
n=9
n=8
n=7
n=6
n=q=10
n=5
n=4
5
6
6
6 5 7
8
5 7
Disclaimer
• These slides are not original and have been
prepared using various sources for teaching
purpose only
• References
• 8. Scapegoat Trees (opendatastructures.org)
• ScapeGoat Tree | Set 1 (Introduction and Insertion) –
GeeksforGeeks
• Scapegoat tree – Wikipedia
• Peter Brass. 2008. Advanced Data Structures (1st. ed.).
Cambridge University Press, USA.