Login   Register  
PHP Classes
elePHPant
Icontem

Binary Tree: Manage hierarchic trees of objects

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2005-11-18 (8 years ago) RSS 2.0 feedNot enough user ratingsTotal: 2,834 This week: 1All time: 1,217 This week: 1,393Down
Version License Categories  
btree 1.0GNU General Public Lice...Data types
Description Author  

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)

Picture of JOn
Name: JOn <contact>
Classes: 1 package by
Country: United States United States
Age: 30
All time rank: 1011131 in United States United States
Week rank: 1051 Down116 in United States United States Up

  Files folder image Files  
File Role Description
Plain text file btree.class.php Class Binary tree Class with example

 Version Control Unique User Downloads Download Rankings  
 0%Total:2,834All time:1,217
 This week:1This week:1,393Down
 User Comments (1)  
 
Excellent
4 years ago (kishore kumar)
60%StarStarStarStar