Computing parent nodes in threaded binary trees (Q1090107)
From MaRDI portal
| This is the item page for this Wikibase entity, intended for internal use and editing purposes. Please use this page instead for the normal view: Computing parent nodes in threaded binary trees |
scientific article; zbMATH DE number 4007721
| Language | Label | Description | Also known as |
|---|---|---|---|
| English | Computing parent nodes in threaded binary trees |
scientific article; zbMATH DE number 4007721 |
Statements
Computing parent nodes in threaded binary trees (English)
0 references
1986
0 references
We give three algorithms for computing the parent of a node in a threaded binary tree, and calculate the average case complexity of each. By comparing these to the unit cost of obtaining the parent of a node with an explicit parent-pointer field, it is possible to balance runtime and storage cost with respect to the task of finding parent nodes in binary trees. The results obtained shows that, although the worst case complexity for an n-node tree is obviously O(n) for all three algorithms, the average case complexity for two input distributions is asymptotic (from below) to either 3 or 2.
0 references
data structures
0 references
binary trees
0 references
analysis of algorithms
0 references
recurrence relations
0 references
parent of a node
0 references
threaded binary tree
0 references
average case complexity
0 references
worst case complexity
0 references