PHP Classes

Classes of JOn

Recommend this page to a friend!
  All class groups  >  All authors  >  Classes of JOn (1)  >  Mission progress status  >  Reputation  
Picture of JOn
Name: JOn <contact>
Classes: 1
Country: United States United States
Age: 40
All time rank: 1083154 in United States United States
Week rank: 220 Up20 in United States United States Up
All time users: 2983
Week users: 0
 
  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z  
  Files folder image Binary Tree  
Manage hierarchic trees of objects
This class can be used to manage an hierarchies of objects within a binary.

Each object of the class is a node that may have a reference two descendent objects: the right and the left nodes.

Each tree node object may contain a data variable of an arbitrary type.

The class provides functions for adding nodes given the left and right descendent nodes (oif any), as well to traverse the tree and print the data value of the nodes and count the number of nodes in the tree. (PHP5)


  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z