
doi: 10.1007/bf01935047
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.
recurrence relations, Analysis of algorithms and problem complexity, average case complexity, threaded binary tree, Trees, analysis of algorithms, data structures, parent of a node, worst case complexity, Graph theory (including graph drawing) in computer science, binary trees
recurrence relations, Analysis of algorithms and problem complexity, average case complexity, threaded binary tree, Trees, analysis of algorithms, data structures, parent of a node, worst case complexity, Graph theory (including graph drawing) in computer science, binary trees
| selected citations These citations are derived from selected sources. This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically). | 0 | |
| popularity This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network. | Average | |
| influence This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically). | Average | |
| impulse This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network. | Average |
