From charlesreid1

(Created page with "==Important Facts== For any binary tree, number of internal nodes and number of external nodes are related as: E = I + 1 ==Flags== {{TreesFlag}} Category:Trees [...")
 
 
Line 5: Line 5:
E = I + 1
E = I + 1


==Scaling Complexity==


Tree implementations can be made very complicated, or very simple.


 
Complications:
 
* Interfaces, abstract classes, virtual methods
 
* Positions abstracted from nodes, array/linked either (flexible)
* Pre/post-method hooks
* Trees vs. binary trees
* Sorted vs. unsorted
* Bifurcations of methods that are needed, utility and modification


==Flags==
==Flags==

Latest revision as of 12:43, 12 June 2017

Important Facts

For any binary tree, number of internal nodes and number of external nodes are related as:

E = I + 1

Scaling Complexity

Tree implementations can be made very complicated, or very simple.

Complications:

  • Interfaces, abstract classes, virtual methods
  • Positions abstracted from nodes, array/linked either (flexible)
  • Pre/post-method hooks
  • Trees vs. binary trees
  • Sorted vs. unsorted
  • Bifurcations of methods that are needed, utility and modification

Flags