PHP Classes

Binary Tree: Manage hierarchic trees of objects

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 45%Total: 2,983 All time: 1,247 This week: 560Up
Version License Categories
btree 1.0.0GNU General Publi...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: 40
All time rank: 1083155 in United States United States
Week rank: 187 Up27 in United States United States Up

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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,983
This week:0
All time:1,247
This week:560Up
User Ratings User Comments (1)
 All time
Utility:75%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:45%StarStarStar
Rank:3384
 
Excellent
15 years ago (kishore kumar)
60%StarStarStarStar