PHP Classes

Binary trees and linked lists - TTreeList package blog

Recommend this page to a friend!
  All package blogs All package blogs   TTreeList TTreeList   Blog TTreeList package blog   RSS 1.0 feed RSS 2.0 feed   Blog Binary trees and link...  
  Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)  

Author:

Viewers: 46

Last month viewers: 1

Package: TTreeList

It is quite often you stumble upon large lists that you must process over and over again within the same request.

Sometimes you need to search the list and sometimes you just need the iterate the list.

TTreeList manages both these matters.




Loaded Article

You populate a TTreeList and then build it. The only thing you need to do is to tell which "key" should be used to sort by.

When the TTreeList is built you have a sorted double linked list and a binary tree in one object.

Move up and down or left and right in any way you need. If you need to search for a key then just use the built-in search function to quickly find what you are looking for.

If a key is represented more than one time you can find the duplicates within the tree node thus making the tree smaller and quicker.




You need to be a registered user or login to post a comment

1,615,540 PHP developers registered to the PHP Classes site.
Be One of Us!

Login Immediately with your account on:



Comments:

No comments were submitted yet.



  Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)  
  All package blogs All package blogs   TTreeList TTreeList   Blog TTreeList package blog   RSS 1.0 feed RSS 2.0 feed   Blog Binary trees and link...